Old 11th March 2004, 16:00   #1
fixxxer-uk
Junior Member
 
Join Date: Mar 2004
Posts: 2
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!
fixxxer-uk is offline   Reply With Quote
Old 11th March 2004, 16:11   #2
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
PHP Code:
WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Run" \\
"ApplicationName" "PathToApplication\\Application.exe" 
Comm@nder21 is offline   Reply With Quote
Old 11th March 2004, 16:14   #3
fixxxer-uk
Junior Member
 
Join Date: Mar 2004
Posts: 2
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!
fixxxer-uk is offline   Reply With Quote
Old 11th March 2004, 16:21   #4
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
put in in any section or function, that should create this entry.
e.g.:
PHP Code:
Section "Run application at startup" "raas"
WriteaRegStr ...
SectionEnd 
Comm@nder21 is offline   Reply With Quote
Old 11th March 2005, 10:22   #5
aj kwak
Member
 
Join Date: Mar 2005
Posts: 57
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?
aj kwak is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump