|
|
#1 | |
|
Junior Member
|
I'm currently makin a mappack for CS.
I need to know the exact path of the cstrike directory. So I've coded it that way : Quote:
I would like to turn this feature back on, so that people could be able to check if the detected path is right or not |
|
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
You should replace this:
code: with this: code: Notice that this part of the code is not located in any section. |
|
|
|
|
|
#3 |
|
Junior Member
|
InstallDir $INSTDIR
InstallDirRegKey HKLM SOFTWARE\DIF "Install_Dir" thanks, my parameters were wrong ![]() yours are too ![]() -->no "" for the string you want to read... InstallDirRegKey HKLM "software\Valve\Half-Life" InstallPath et not InstallDirRegKey HKLM "software\Valve\Half-Life" "InstallPath" |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
You do need quotes if you have spaces in the name. I accidently put space after InstallPath, that is what was wrong.
The InstallDir $INSTDIR is useless. With InstallDir you should set the default install dir if no other found by InstallDirRegKey. So it should be: code: |
|
|
|
|
|
#5 |
|
Junior Member
|
I realised that my instdir system was not implemented...
that's ok now...I've tested with a fake key : the program follow the changes, and if I delete the key, the default path is activated... |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|