I found this useful C# class in this MSDN forum that provides an easy way to enable and disable an application auto-run in Windows.
With a little modification, I made it to be easily called by any project. What you need to do is just pass in the 'Key Name' and 'Assembly Location' parameters.
Here is the complete class:
With a little modification, I made it to be easily called by any project. What you need to do is just pass in the 'Key Name' and 'Assembly Location' parameters.
Here is the complete class: