Clicksrv.Packages.StartWithOSSettings 0.3.3

dotnet add package Clicksrv.Packages.StartWithOSSettings --version 0.3.3                
NuGet\Install-Package Clicksrv.Packages.StartWithOSSettings -Version 0.3.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Clicksrv.Packages.StartWithOSSettings" Version="0.3.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Clicksrv.Packages.StartWithOSSettings --version 0.3.3                
#r "nuget: Clicksrv.Packages.StartWithOSSettings, 0.3.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Clicksrv.Packages.StartWithOSSettings as a Cake Addin
#addin nuget:?package=Clicksrv.Packages.StartWithOSSettings&version=0.3.3

// Install Clicksrv.Packages.StartWithOSSettings as a Cake Tool
#tool nuget:?package=Clicksrv.Packages.StartWithOSSettings&version=0.3.3                

StartWithOSSettings

About

This package allows the user to configure start-up of an application with the OS. Apart from adding the entry to start-up, this package also supports Enabling or Disabling the Startup entry (as can be configured using Task Manager on Windows).

Usage

Instantiate StartupOptions from Clicksrv.StartWithOSSettings. An example piece of code below demonstrates how this package can be used.

    var startup = new StartupOptions("<AppName>", "<PathToExecutable>", "<AnyArgumentsToBeSupplied>", global: false);
    startup.CreateStartupEntry();
    startup.Enable();
    startup.Disable();
    startup.DeleteStartupEntry();

StartupOptions is an auto-platform class that creates the required instance underneath based on the execution platform. User can also use specific classes like WindowsStartupOptions to force a particular platform.

An example implementation with usage here.

Release Notes

<b><i>Roadmap</b></i>

  • Test for Admin mode
  • Add Support for Unix Machines
  • Add Support for other Operating Systems supported by .NET.
  • Expand compatibility to older versions of .NET.
  • More to come...
0.2.0
  • Fixes for Windows Startup
  • Restructure to src and test
  • Dev tested for use with User Level Startup, testing for Machine Level pending
  • Add Unit Tests
  • Included symbols for debugging by projects choosing to debug this package

<b><i>Known Issues</b></i> Admin Mode is currently untested

0.1.x
  • Initial Release, buggy, do not use

Contribution

Create a PR with details regarding what is being added and with what purpose. I'll be happy to review and merge it with the codebase if it suits the requirement.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.3 615 3/23/2022