|
|
#1 |
|
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"' |
|
|
|
|
|
#2 |
|
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: 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. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Sep 2005
Posts: 12
|
ok thanks man
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|