Archive: Winamp intalled directory


Winamp intalled directory
How do I get the winamp installed path to be in my InstallDir.

I have looked at the function GetWinampInstPath but cannot seem to get it work.:(

Please help a newbie out...:)

--------------------
LicenseData License.txt
outfile "MilkDrop 1.03 Setup.exe"
name "MilkDrop 1.03 Setup"

InstallDir "$PROGRAMFILES\Winamp"
LicenseText "MilkDrop 1.03 Setup" Continue...
SubCaption 0 ": Information"
Caption "MilkDrop 1.03 Setup"
DirText "The installer had determined that this is the path to Winamp. If it is not correct please change."
Icon milkdrop.ico

Section My_Stuff
SetOutPath $INSTDIR
File /r "\Milkdrop\Milkdrop Website\Downloads\All v103\Install\*.*"
SectionEnd

------------------

Cheers,

Rovastar


Try This

Name "MilkDrop 1.03 Setup"
OutFile "MilkDrop 1.03 Setup.exe"
LicenseData License.txt
LicenseText "MilkDrop 1.03 Setup" Continue...
SubCaption 0 ": Information"
Caption "MilkDrop 1.03 Setup"
DirText "The installer had determined that this is the path to Winamp. If it is not correct please change."
Icon milkdrop.ico

InstallDir "$PROGRAMFILES\Winamp"
InstallDirRegKey HKCU Software\Winamp ""

;The Rest Of the Installer Crap


That should help.
-Duane

Hmmm, Winamp in HKCU? I couldn't find this regentry. BTW, HKCU only works if the current user installed the program. So always try to use HKLM in cases where you need to find installed software. I attached a script (using GetWinampInstPath) to be sure you're doing the right thing. I tested it and it works correctly for Winamp 2!!! Winamp 3 should work in the same way (I do not know exactly the regentries, but I expect them to be (almost) the same), but then you need to perfrom a check on studio.exe instead of winamp.exe!

-Hendri.


Well, in my registry it is HKEY_Current_User Or HKCU. So, it depends on the computer type. But it is implied that a Winamp user would be downloading the plug-in. And in the HKLM folder .... There is no listing for Winamp. So, it MUST be Current User, but that is not known for sure.

-Duane


Strange, I searched for HKCU Software\Winamp but it does not exist. Do you have Winamp 3? I have Winamp 2. Maybe that's the cause of the difference.

-Hendri.