Install Directory not getting the right Dir..
Ok my biggest problem is that I'm a very very newbie nsis coder, so I need some basic help here :weird:
This is my script:
attached below :down:
And this is where I'm stuck :
;--------------------------------
DirText \
"If HL / CS directory is not found, please choose the right directory :"
Function .onInit
ReadRegStr $INSTDIR HKCU "Software\Valve\Counter-Strike" InstallPath
StrCmd $INSTDIR
;--------------------------------
Since there are 2 versions of CS,
"Software\Valve\Counter-Strike" and
"Software\Valve\Half-Life"
I need it to do a checkup on the 2 strings and auto choose the one that is installed. If both games are installed, it should ask the user whish folder to install into. If non of the games are installed it should say to the user "Game is not installed!". But coding like this is way beyound my skill lvl right now, so any help is greatly appriciated! :)