Installing shorcut into Users Startup Folder - How to?

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

Installing shorcut into Users Startup Folder - How to?

Postby MobileMark II » Tue Nov 08, 2005 9:45 pm

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

Postby K-ballo » Wed Nov 09, 2005 12:15 am

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

Postby Gizm0 » Wed Nov 09, 2005 8:55 pm

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.


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 78 guests