Start Click Once Application on Windows startup

There are few ways to configure application to run on Windows startup, register application in Windows registry is one of the common used method using this key:

HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run
 
In CodeArtEng.Extensions library version 1.5.0, ApplicationExtensions is introduced to register / unregister running application in Windows Registry.

ApplicationExtensions.AddApplicationToStartup()
ApplicationExtensions.RemoveApplicationFromStartup()

These methods is useful to enable / remove click one application from Windows startup since installation path for click-once application is dynamic.

When click once application is updated to newer version, it execution path also changed. The registry key's value need to be updated in order for the auto startup to works again. With CodeArtEng.Extensions package, simply call method ApplicationExtensions.CheckAndUpdateApplicationStartupPath()
to update the registry key if application had been registered to run on Windows startup



Popular posts from this blog

(AGauge) WinForms Gauge Control - Discontinued

C# DSP Simulation - DSP Lab

WinForms Controls