Installing shorcut into Users Startup Folder - How to?

Got a problem you cannot solve? Try here.
Post Reply
MobileMark II
Posts: 19
Joined: Thu Nov 03, 2005 11:58 am
Contact:

Installing shorcut into Users Startup Folder - How to?

Post 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?
K-ballo
Posts: 15
Joined: Mon Oct 10, 2005 7:45 pm

Post by K-ballo »

You can retrieve that folder via "Get Folder Location", look for the option Start Menu->Startup Group.
Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Post 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.
Post Reply