Winamp

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Silent installer for WinAmp a media player. More infos from here.

Version 5.541 was downloaded 18/8/08 and installed successfully using the following installer:

<package id="winamp" name="Winamp (music player)" revision="2" priority="0" reboot="false">
 <check type="uninstall" condition="exists" path="Winamp" />
 <!-- Yes, there is a space in the version number here. -->
 <check type='registry' condition='equals' path='HKLM\software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp\DisplayVersion' value='5.541 ' />

 <install cmd='%SOFTWARE%\winamp\winamp5541_full_emusic-7plus_all.exe /S /install=SFQR' />
 <install cmd='cmd /c ping -n 60 localhost &amp;&amp; taskkill /im winamp.exe /f &amp;&amp; taskkill /im winampa.exe /f' ><exit code='128' /></install>
 <install cmd='"%ProgramFiles%\Winamp\eMusic\Uninst-eMusic-promotion.exe" /S' />
 <install cmd='cmd /c ping -n 30 localhost'/>
 <!-- remove mozilla firefox toolbar -->
 <install cmd='cmd /c "cd ""%UserProfile%\Application Data\Mozilla\Firefox\Profiles"" &amp;&amp; for /D %I in (*.*) DO if exist %I\extensions\{0b38152b-1b20-484d-a11f-5e04a9b0661f}\NUL rd /s /q %I\extensions\{0b38152b-1b20-484d-a11f-5e04a9b0661f}"'/>
 <install cmd='cmd /c "cd ""%UserProfile%\Application Data\Mozilla\Firefox\Profiles"" &amp;&amp; for /D %I in (*.*) DO if exist %I\WinampToolbarData\NUL rd /s /q %I\WinampToolbarData"' />
 <install cmd='"%ProgramFiles%\Winamp Toolbar\uninstall.exe" /S' />
 <install cmd='reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp Toolbar for Firefox" /f' />
 <!-- Shortcut in start menu, not on desktop thank you very much -->
 <install cmd='cmd /c move "%AllUsersProfile%\Desktop\winamp.lnk" "%AllUsersProfile%\Start Menu\Programs"' />

 <remove cmd='cmd /c if exist "%ProgramFiles%\Winamp\Plugins" del /s /q "%ProgramFiles%\Winamp\Plugins" ' />
 <remove cmd='%ProgramFiles%\Winamp\UninstWA.exe /S ' />
 <!-- Brain-dead developers at winamp -->
 <remove cmd='cmd /c ping -n 30 localhost'/>
 <remove cmd='cmd /c rm "%AllUsersProfile%\Start Menu\Programs\winamp.lnk"' />

 <upgrade cmd='cmd /c if exist %ProgramFiles%\Winamp\UninstWA.exe %ProgramFiles%\Winamp\UninstWA.exe /S' /> 
 <upgrade cmd='%SOFTWARE%\winamp\winamp5541_full_emusic-7plus_all.exe /S /install=SFQR' />
 <upgrade cmd='cmd /c ping -n 60 localhost &amp;&amp; taskkill /im winamp.exe /f &amp;&amp; taskkill /im winampa.exe /f' ><exit code='128' /></upgrade>
 <upgrade cmd='"%ProgramFiles%\Winamp\eMusic\Uninst-eMusic-promotion.exe" /S' />
 <upgrade cmd='cmd /c ping -n 30 localhost'/>
 <!-- remove mozilla firefox toolbar -->
 <upgrade cmd='cmd /c "cd ""%UserProfile%\Application Data\Mozilla\Firefox\Profiles"" &amp;&amp; for /D %I in (*.*) DO if exist %I\extensions\{0b38152b-1b20-484d-a11f-5e04a9b0661f}\NUL rd /s /q %I\extensions\{0b38152b-1b20-484d-a11f-5e04a9b0661f}"'/>
 <upgrade cmd='cmd /c "cd ""%UserProfile%\Application Data\Mozilla\Firefox\Profiles"" &amp;&amp; for /D %I in (*.*) DO if exist %I\WinampToolbarData\NUL rd /s /q %I\WinampToolbarData"' />
 <upgrade cmd='"%ProgramFiles%\Winamp Toolbar\uninstall.exe" /S' />
 <upgrade cmd='reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Winamp Toolbar for Firefox" /f' />
 <!-- Shortcut in start menu, not on desktop thank you very much -->
 <upgrade cmd='cmd /c move "%AllUsersProfile%\Desktop\winamp.lnk" "%AllUsersProfile%\Start Menu\Programs"' />
</package>

This is a silent installer and uninstaller for Winamp. Note that the /S flag is case-sensitive.

The install switches for Winamp:

 winamp501_full.exe /S /install=SFQDRA
  • S=start menu icons
  • F=file association
  • Q=quicklaunch icon
  • D=desktop icon
  • R=fake registration
  • A=run winamp agent/set default


Some switches are broken on new versions of Winamp.

 <package id="winamp" name="Winamp (music player)" revision="1" priority="0" reboot="false">
 <check type="uninstall" condition="exists" path="Winamp (remove only)" />
 <install cmd='%SOFTWARE%\winamp\winamp507-full.exe /S /install=SFQR' />
 <install cmd='"%ProgramFiles%\winamp\eMusic\Uninst-eMusic-promotion.exe"' />
 <upgrade cmd='%SOFTWARE%\winamp\winamp507-full.exe /S /install=SFQR' />
 <upgrade cmd='"%ProgramFiles%\winamp\eMusic\Uninst-eMusic-promotion.exe"' />
 <remove cmd='cmd /c cmd /c del /s /q "%ProgramFiles%\Winamp\Plugins"' />
 <remove cmd='%ProgramFiles%\Winamp\UninstWA.exe /S' />
</package>

Customization

REM   Remove the demo that some people consider offensive
DEL "%ProgramFiles%\winamp\demo.mp3

Open questions

  • How do you disable the system tray agent?

5.541 seems not to have such an agent. (rl201 18/8/08)

  • How do you set a web proxy?