Creating a shortcut in Startup group
I have used ClickOnce to deploy my application and everything works great. However, I really would like to create a shortcut in the Startup group so that my application will run when they startup.
I realize that this functionality isn't available on the install but I was thinking that I could write to the registry when the users click a checkbox in the Settings portion of the application, that would create a shortcut in that group (checkbox would be: Run program when Windows starts).
Great concept...however...the application is installed in the ClickOnce cache and not a specific folder (Program Files...).
So, my question is: how could I create a shortcut (via registry entry) from within my program? Keep in mind that I don't really know where it is installed. I know what registry key to write to, but I'm just not sure of what to put for the location of the program.
Any thoughts or comments would be greatly appreciated!
Thanks,
Greg

