An open API service indexing awesome lists of open source software.

https://github.com/bip901/runonstartup

A cross-platform .NET library to register programs to run at computer startup.
https://github.com/bip901/runonstartup

autostart cross-platform dotnet dotnet-core linux startup-applications windows

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# RunOnStartup

[![NuGet version](https://img.shields.io/nuget/v/RunOnStartup.svg)](https://www.nuget.org/packages/RunOnStartup/)

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

# Usage

```csharp
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);
```