richson21
26th August 2009 08:13 UTC
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
kichik
26th August 2009 09:13 UTC
$APPDATA\Winamp\winamp.ini.
richson21
26th August 2009 11:43 UTC
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 ?
kichik
26th August 2009 12:07 UTC
$SMPROGRAMS. The documentation contains a list of all of them.
richson21
26th August 2009 12:09 UTC
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.
pengyou
26th August 2009 12:25 UTC
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
DrO
26th August 2009 13:33 UTC
$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