Archive: how to get path to winamp.ini ?


how to get path to winamp.ini ?
Hi,

How to get path to Winamp.ini ? It no longer exists at $INSTDIR\Winamp.ini. It worked for previous versions but now it seems that path is in C:\Users\Richard\AppData\Roaming\Winamp\winamp.ini...

Please help me to make universal function to get path to winamp.ini in XP, Vista, 2000. Before that I used $INSTDIR\Winamp.ini but now it doesn't work :(

Please help me to write function code in *.nsi file


$APPDATA\Winamp\winamp.ini.


Thanks, it work. Now need varaible which links to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
what is this ? How to remove
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Test\test.lnk ?


$SMPROGRAMS. The documentation contains a list of all of them.


Agree, the pboblem was with manifest... i didn't have rights.

How to get access to "C:\Users\Richard\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Test\" ? didn't find it in documentation.


From the NSIS Users Manual:

$SMPROGRAMS

The start menu programs folder (use this whenever you want $STARTMENU\Programs). The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
If you are running the installer from the "Richard" account then by default $SMPROGRAMS will point to C:\Users\Richard\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

$APPDATA\Winamp\winamp.ini isn't a guaranteed location. it's safer to parse paths.ini in the winamp directory to find the directory/inifile (usually {26}\Winamp which is expanded out to the full path). this thread documents the {..} thing in the ini file and some more info as well about the file. if paths.ini isn't present you can assume $INSTDIR\Winamp.ini

-daz