Archive: Program run on start-up


Program run on start-up
  Hi there

I want a program to run on start-up/ boot (PC) and was wondering if there is something I need to include in the installer to do this....

many thanks!


WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Run" 

"ApplicationName" "PathToApplication\\Application.exe"

brilliant!! thanks very much...

but, where do I need to put this?

This is my first time creating an installer and have just used the wizard within HM NIS Edit.....

any ideas?

thanks again!


put in in any section or function, that should create this entry.
e.g.:


Section "Run application at startup" "raas"

>WriteaRegStr ...
>SectionEnd
>

I do it on this maner :

CreateShortCut "$SMSTARTUP\application.lnk" "$ANOTHER_DIR\appl\application.exe"

But i want with a radiobutton or checkbox that the user can choose for run on start-up or not.

So i tried on the FINISH_PAGE
!define MUI_FINISHPAGE_RUN_TEXT "Create desktop shortcut?"
!define MUI_FINISHPAGE_RUN_FUNCTION "createShortcutdesktop"

But like you see, i used it for createdesktop icon?

Is there another solution?