PDA

View Full Version : Installer enabling DSP plugins for Single User and Multi User Installations


zoranlazarevic
12th January 2008, 10:39
Does anyone have a script for detecting whether Winamp is installed in a single-user or multi-user configuration?

I have an old installer that enables a Winamp DSP plugin by writing to "Winamp.ini"

WriteINIStr "$4\Winamp.ini" "Winamp" "dspplugin_name" "dsp_MY_PLUGIN.dll"

However, Winamp can now be installed in multi-user setup, so "Winamp.ini" can actually be in the user's "Documents and Settings" folder, not in "Program Files/Winamp". Now my installer modifies wrong "Winamp.ini" and does not enable the plugin. How can I enable the plugin whether the Winamp installation is single or multi-user?

Thanks,

Zoran

Anders
12th January 2008, 10:51
check (for) paths.ini first maybe

zoranlazarevic
27th January 2008, 05:37
After tinkering with NSIS, here is th solution to an installer that enables/activates a Winamp DSP plugin in both machine-wide and multi-user Winamp installations.

The installer looks for Winamp.ini (computer-wide Winamp installation).
Failing that it looks for Paths.ini.
Then it reads Paths.ini for determine the location of user-specific Winamp.ini.
Finally, it updates Winamp.ini to activate the DSP plugin.


Laza