Archive: NSIS2 WA2/3 Version Detect for DSP


NSIS2 WA2/3 Version Detect for DSP
Hey crew,

I've been pulling my hair out all afternoon with a Winamp2/3 version detection issue. I know I'm dense, but I can't find a script anywhere to hack what I need to do, and I'm way too lame to roll my own.

I have poured over the winamp2/winamp3 thread about 15 times, but from what I understand, because what will be installed depends on which version of Winamp the user has installed, EL-VIS2's script won't work for me.

Specifically, what I want to install is a DSP output plugin. There are two different flavors of the plugin, one for Winamp2 and one for Winamp3. The best solution would be to have a NSIS installer that is smart enough to figure out what version (none, v2, v3, or both) is installed, and install the correct file(s) to the correct location(s). It's looking like it may be a billion times easier to have seperate Winamp2 and Winamp3 installers.

Any help would be greatly appreciated. Thanks!


EL-VIS2's .onInit function sets $INSTDIR. Just set another parameter with it that will tell you if you are installing into winamp 2 or 3 and you are set. In your install section use this variable to determine what to install.