qforce2
10th September 2005 21:57 UTC
Get Winamp dir
I know a lot of people use this to get winamp installation directory:
HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp" "UninstallString"
I myself however have used this command:
InstallDirRegKey HKCU Software\Winamp ""
Now I wonder if something's wrong with my method, since I've been using it for beta-testing a program with more than 5 beta-testers, and there were no problems so far.
Anders
10th September 2005 22:03 UTC
im not sure if HKCU\Software\Winamp is present in all configurations (try a lite install)
Yathosho
10th September 2005 22:20 UTC
maybe you can post your entire script? you probably provide the directory with the InstallDir command instead of InstallDirRegkey.
InstallDirRegkey
If this attribute is present, it will override the InstallDir attribute if the registry key is valid, otherwise it will fall back to the InstallDir default.
Joel
11th September 2005 04:14 UTC
HKLM
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp""UninstallString"
Is present in old Winamp versions... mostly this is what I used from plugins to external applications...
Plus, is a secure way..
qforce2
11th September 2005 09:51 UTC
@ Anders:
Doesn't matter if this works with lite version, because the installer's being used for an AVS pack ;)
@ Yathosho:
Here you are...:)
@ Joel:
Unfortunately, I'm not able to check out older Winamp versions, because I didn't keep them on my harddrive. Anyway, thanks for the hint! Seems like I have no choice...
qforce2
11th September 2005 18:10 UTC
Thanks! :D I definitely have to check out Winamp 0.20 *lol*