Skip to content

A cross-platform .NET library to register programs to run at computer startup.

License

Notifications You must be signed in to change notification settings

Bip901/RunOnStartup

Folders and files

NameName
Last commit message
Last commit date
Jul 24, 2023
Jul 24, 2023
Sep 22, 2023
Jul 24, 2023
Jul 24, 2023
Jun 22, 2024
Jul 24, 2023
Sep 22, 2023
Sep 22, 2023
Sep 22, 2023

Repository files navigation

RunOnStartup

NuGet version

A cross-platform .NET library to register programs to run at computer startup.

Usage

using RunOnStartup;

// Define a unique key - this string will identify your program to unregister later
const string UNIQUE_NAME = "cool-executable-42dad1492ea57616";

// Register an executable to run whenever the current user signs in
RunOnStartupManager.Instance.Register(UNIQUE_NAME, @"/path/to/executable", allUsers: false);

// To unregister:
RunOnStartupManager.Instance.Unregister(UNIQUE_NAME, allUsers: false);