Archive: Readregstr


Readregstr
I want that my installer first reads te register and if that key exists then it must display this..(see the code below) and if it doesnt then must my installer proceed... how do I do this


Function .OnInit

ReadRegStr $0 HKLM "SOFTWARE\AnimeSupremeCodecPack\20041104" "Version"
StrCpy $1 $0 4 3
MessageBox MB_YESNO|MB_ICONQUESTION "We see that CodecPack version : $0 allready is installed on your computer. Want to delete those Codecs first?" ;IDYES


; rest of script .......
; blblalblsaf
; blablalbslalblfla

FunctionEnd


I think that my function in the archive could be usefull for you.

Vytautas


got it but .. . it gives a error .....


!insertmacro: macro named "KeyExists" not found!
Error in script "C:\Documents and Settings\VegetaS an\Bureaublad\TEST.nsi" on line 143 -- aborting creation process


What now?


Never mind Fixed it .. thx Vytautas