Difference between revisions of "Wimp"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Updated from version 1.5.33 to 1.5.36)
m (updated for Wimp version 1.5.47)
Line 9: Line 9:
 
<package id="wimp"
 
<package id="wimp"
 
   name="Wimp"
 
   name="Wimp"
   revision="1.5.36"
+
   revision="%version%"
 
   priority="0">
 
   priority="0">
   <check type="uninstall" condition="exists" path="Wimp 1.5.36" />
+
  <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-1.5.36.air'>
+
   <install cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -silent -eulaAccepted %SOFTWARE%\wimp\Wimp-%version%.air'>
 
     <exit code="any" />
 
     <exit code="any" />
 
   </install>
 
   </install>
 
   <install cmd='%COMSPEC% /c copy /b /v %SOFTWARE%\wimp\Wimp.lnk "%Public%\Desktop\"' />
 
   <install cmd='%COMSPEC% /c copy /b /v %SOFTWARE%\wimp\Wimp.lnk "%Public%\Desktop\"' />
  
   <upgrade cmd='msiexec.exe /qn /norestart /x {3DEC209E-37D3-866E-7B3F-3B2E876D1B4A}' />
+
<!--  <upgrade cmd='msiexec.exe /qn /norestart /x {}' /> to uninstall 1.5.47 when 1.5.48 is out -->
   <upgrade cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -silent -eulaAccepted %SOFTWARE%\wimp\Wimp-1.5.36.air'>
+
   <upgrade cmd='msiexec.exe /qn /norestart /x {EF34F237-B140-0C0A-DE20-FF3225B95154}' /> <!-- avinstaller 1.5.46 -->
 +
   <upgrade cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -silent -eulaAccepted %SOFTWARE%\wimp\Wimp-%version%.air'>
 
     <exit code="any" />
 
     <exit code="any" />
 
   </upgrade>
 
   </upgrade>
 +
  <upgrade cmd='%COMSPEC% /c copy /b /v %SOFTWARE%\wimp\Wimp.lnk "%Public%\Desktop\"' />
  
   <remove cmd='msiexec.exe /qn /norestart /x {3DEC209E-37D3-866E-7B3F-3B2E876D1B4A}' />
+
   <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"' />
 
   <remove cmd='%COMSPEC% /c del /f /q "%Public%\Desktop\Wimp.lnk"' />
 
 
</package>
 
</package>
 
</source>
 
</source>

Revision as of 06:04, 21 February 2012

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.36.air on 64-bit Windows, so if you're on a mixed platform you need to include logic for the 32-bit folder strudture. If you're running 32-bit only, just remove the (x86) part of %PROGRAMFILES(x86)%.

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}' /> <!-- avinstaller 1.5.46 -->
   <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>