Old 14th October 2005, 01:04   #1
frank99
Junior Member
 
Join Date: Sep 2005
Posts: 12
registry key question

hi .. kind of a newbie question... im trying to make my installer write a registry key..

lets say my stuff extracts to C:\newfolder\

there is a file called this.exe and configurationfile.config

i want it to run in background so the string would be
this.exe -b configurationfile.config

this is what i have so far
HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" "svchosts" '"this.exe" -b "configurationfile.config"'

as you can see this is wrong because i dont know how to put in the directory "C:\newfolder\"

would the string be like this?
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" "svchosts" C:\newfolder\'"this.exe" -b "configurationfile.config"'
frank99 is offline   Reply With Quote
Old 14th October 2005, 07:27   #2
th_mi
Member
 
Join Date: Sep 2005
Location: Sitting next to my desk
Posts: 56
I guess you should do it this way:

Assumption: Your Setup dir is "C:\newfolder\" as you wrote you can do it this way:

code:

WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" "svchosts" "%$INSTDIR\this.exe" -b configurationfile.config"



If you check the registry you should find it this way under "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"

"svchosts" "C:\newfolder\this.exe" -b configurationfile.config"

This signature is currently on vacation!

Last edited by th_mi; 14th October 2005 at 08:23.
th_mi is offline   Reply With Quote
Old 14th October 2005, 12:57   #3
frank99
Junior Member
 
Join Date: Sep 2005
Posts: 12
ok thanks man
frank99 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