Changes

Greenshot

414 bytes added, 20:54, 16 September 2010
Use an install check that looks for a version rather than matching any version
Greenshot is a opensource open-source screen capture utility available at [http://getgreenshot.org/ http://getgreenshot.org/]
== Installation ==
 
Note that the installer from the website uses a dash in the version number (0.8.0-0627) and the file version uses a dot (0.8.0.0627) so you should rename the installer appropriately for consistency.
 
Also note that the uninstaller does not remove unins000.exe or the Greenshot folder, but this doesn't seem to cause any problems when reinstalling.
<source lang="xml">
<packages> <package id="greenshot" name="Greenshot" revision="1%version%" priority="0" reboot="false"> <check type="uninstall" condition="exists" path="Greenshot"/> <install cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-0.8.0-0627.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
<upgrade cmdvariable name="version" value='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-0.8.0-.0627.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
<remove cmdcheck type="file" condition="versionequalto" path='"%ProgramFilesPROGRAMFILES%\Greenshot\unins000Greenshot.exe" /SILENT' value="%version%" />
<install cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-%version%.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' /package <upgrade cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-%version%.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' />   <remove cmd='"%PROGRAMFILES%\Greenshot\unins000.exe" /packagesSILENT'/></package>
</source>
[[category:Silent Installers]]
117
edits