Bdevil
20th November 2006 14:37 UTC
InstallDirRegKey Question or Problem
Hi everybody, I have a problem with "InstallDirRegKey".I have a key where is stored an installation directory
ex c:\program files\hitoall\ )
I call this key , for setup location , using this string: InstallDirRegKey HKLM "SOFTWARE\Classes\Applications\hl2.exe\shell\open\command\" "SetupDir"
The result is : c:\program files\hitoall
and the Function works.
So ,
How can add a subdirectory using InstallDirRegKey?
Ex :
InstallDirRegKey HKLM "SOFTWARE\Classes\Applications\hl2.exe\shell\open\command\" "SetupDir"\Test
The results must will be
c:\program files\hitoall\test
I hope you understand my problem :)
And Sorry for my english .. but i'm italian ^_^ :D
Red Wine
20th November 2006 14:51 UTC
Simply you could use SetOutPath "$INSTDIR\Test"
or !define INST_SUBDIR "Test" and use it as:
SetOutPath "$INSTDIR\${INST_SUBDIR}"
Bdevil
20th November 2006 14:52 UTC
Tnks
I Will try ;)
Bdevil
20th November 2006 19:00 UTC
Originally posted by Red Wine
Simply you could use SetOutPath "$INSTDIR\Test"
or !define INST_SUBDIR "Test" and use it as:
SetOutPath "$INSTDIR\${INST_SUBDIR}"
Sorry but it is not that i would :(
Anyone can help me?
Bdevil
21st November 2006 15:24 UTC
Up :(
Red Wine
21st November 2006 15:34 UTC
Could you explain what exactly do you mean?
When your app is installed on a target then you want to add a subdir to the path? Is this the case?
Bdevil
21st November 2006 18:24 UTC
Originally posted by Red Wine
Could you explain what exactly do you mean?
When your app is installed on a target then you want to add a subdir to the path? Is this the case?
I try to explain with Screen Image ;)
http://www.bdevil.it/Dir.JPGhttp://www.bdevil.it/Dir2.JPGOk ? :)
I've just try with
InstallDirRegKey HKLM "SOFTWARE\Classes\Applications\hl2.exe\shell\open\command\" ""\test\123\abc\lol
without results :(
kichik
21st November 2006 18:48 UTC
Use:
http://nsis.sourceforge.net/Get_Stea...d_install_path
And modify $INSTDIR according to the result in .onInit.