Wimp

This is a silent installer and uninstaller for Wimp (AdobeAIR required), a Norwegian music streaming service. The most recent version can be found on the installation page.

This package definition is tailored for installing Wimp-1.5.47.air on 64-bit Windows 7, so if you're on a mixed platform you need to include logic for the 32-bit folder strudture.

Since the silent install doesn't provide an icon for Wimp, I put a shortcut in %software%\wimp\ and made the installer copy it to %PUBLIC%\Desktop.

<package id="wimp"
   name="Wimp"
   revision="%version%"
   priority="0">
   <variable name="version" value="1.5.47" />
   <check type="uninstall" condition="exists" path="Wimp %version%" />

   <install cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -silent -eulaAccepted %SOFTWARE%\wimp\Wimp-%version%.air'>
     <exit code="any" />
   </install>
   <install cmd='%COMSPEC% /c copy /b /v %SOFTWARE%\wimp\Wimp.lnk "%Public%\Desktop\"' />

<!--   <upgrade cmd='msiexec.exe /qn /norestart /x {}' /> to uninstall 1.5.47 when 1.5.48 is out -->
   <upgrade cmd='msiexec.exe /qn /norestart /x {EF34F237-B140-0C0A-DE20-FF3225B95154}' /> <!-- uninstall 1.5.46 if it exists -->
   <upgrade cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -silent -eulaAccepted %SOFTWARE%\wimp\Wimp-%version%.air'>
     <exit code="any" />
   </upgrade>
   <upgrade cmd='%COMSPEC% /c copy /b /v %SOFTWARE%\wimp\Wimp.lnk "%Public%\Desktop\"' />

   <remove cmd='msiexec.exe /qn /norestart /x {A51B7BE1-EB45-7088-7796-896F28760996}' /> <!-- 1.5.47 -->
   <remove cmd='%COMSPEC% /c del /f /q "%Public%\Desktop\Wimp.lnk"' />
</package>