Page 1 of 1
Installing shorcut into Users Startup Folder - How to?
Posted: Tue Nov 08, 2005 9:45 pm
by MobileMark II
Is there a pre-defined variable for the "user's startup folder?" I want to install a shortcut into the user's Startup Folder so that my program launches whenever the user starts Windows? What's the best way to do this?
Posted: Wed Nov 09, 2005 12:15 am
by K-ballo
You can retrieve that folder via "Get Folder Location", look for the option Start Menu->Startup Group.
Posted: Wed Nov 09, 2005 8:55 pm
by Gizm0
Actually the best way to do this, is to put a Registry key on the "Run" key section of HKLM\\SOFTWARE\\Windows\\CurrentVersion\\ or HKLU\\SOFTWARE\\Windows\\CurrentVersion\\, depending if you want to start the program only to the user who installed it, or for all of them..Use "Write Registry" function.