Archive: Install Directory not getting the right Dir..


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! :)


Please attach large scripts.


Oh sry..

I'm very new to this..
kichik, can you help me whit this script?

Maybe someone could just tell me in what order and what commands I need to use, hen I try and figure it out. I really need some help on this, please. :igor:


Firstly, you have a few spelling mistakes :)
alowed = allowed
overwriten = overwritten
writen = written

Btw, starting a second post was not needed because my solution in the previous post was nearly complete to what you require...

Go back to othe rtopic, and I will finish of my script.

-Stu


Ok hehe I will :)