Archive: Windows start-up


Windows start-up
Hi,
I am trying to write an installer that can copy my executable file to windows start-up of different windows version. Sorry, if there is already ppl in the forum asking the same question. Any ideas would be appreciated.


There are various Posibilities to start a program at PC Startup. On modern Systems Win2K / WinXP you can create a Link to the Startup Folder for "All Users" using the following commands:

SetShellVarContext All
CreateShortCut "$Startup\Programm.lnk" "Location of Program to Start"

Or you Write a Key to the HKLM Software\Microsoft\Windows\CurrentVresion\Run

For both Methods you have to ensure that the installer has admin privileges


For the first example, shouldn't it be:

SetShellVarContext All
CreateShortCut "$SMSTARTUP\Programm.lnk" "Location of Program to Start"

?


Yes your right.

In the next line is a typo too. The correct line is:

Or you Write a Key to the HKLM Software\Microsoft\Windows\CurrentVersion\Run

regards
flizebogen