ReadRegStr $R0 HKLM "Software\Pure Krypton\Winamp" "Install Location"
ReadRegStr $R1 HKLM "Software\Pure Krypton\Winamp3" "Install Location"
StrCmp $R0 "" 0 +3
StrCpy $INSTDIR $R1
Goto exit
StrCmp $R1 "" 0 +3
StrCpy $INSTDIR $R0
Goto exit
## $R0 = winamp2 instdir
## $R1 = winamp3 instdir
MessageBox MB_YESNO|MB_ICONQUESTION "Click YES to install into \
your Winamp 2.x directory.$\r$\nClick NO to install into your Winamp 3 directory." IDNO dir2
StrCpy $INSTDIR $R0
Goto exit
dir2:
StrCpy $INSTDIR $R1
exit:
FunctionEnd
Change
I was just wondering if someone could re-create this code to use winamp 2.x and the winamp 3 reg strings without the "s and the .exe's