Old 10th September 2005, 20:57   #1
qforce2
Junior Member
 
qforce2's Avatar
 
Join Date: Aug 2005
Location: Germany
Posts: 33
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.
qforce2 is offline   Reply With Quote
Old 10th September 2005, 21:03   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
im not sure if HKCU\Software\Winamp is present in all configurations (try a lite install)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th September 2005, 21:20   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
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.
Yathosho is offline   Reply With Quote
Old 11th September 2005, 03:14   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
PHP Code:
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..


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 11th September 2005, 08:51   #5
qforce2
Junior Member
 
qforce2's Avatar
 
Join Date: Aug 2005
Location: Germany
Posts: 33
@ 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...
Attached Files
File Type: nsi installer_script.nsi (3.5 KB, 146 views)
qforce2 is offline   Reply With Quote
Old 11th September 2005, 16:12   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
http://oldversion.com/program.php?n=winamp
http://www.winampheaven.net/

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 11th September 2005, 17:10   #7
qforce2
Junior Member
 
qforce2's Avatar
 
Join Date: Aug 2005
Location: Germany
Posts: 33
Thanks! I definitely have to check out Winamp 0.20 *lol*
qforce2 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump