Skip to content
⌘ NSIS Forum Archive

Program run on start-up

5 posts

fixxxer-uk#

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!
Comm@nder21#
WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Run" \\
"ApplicationName" "PathToApplication\\Application.exe" 
fixxxer-uk#
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!
Comm@nder21#
put in in any section or function, that should create this entry.
e.g.:
Section "Run application at startup" "raas"
WriteaRegStr ...
SectionEnd 
aj kwak#
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?