Difference between revisions of "Greenshot"
From WPKG | Open Source Software Deployment and Distribution
(Uninstaller returns 1 when successful, so avoid an error message in the event log) |
(Note about lack of .NET causing dialog that hangs WPKG) |
||
Line 6: | Line 6: | ||
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. | 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. | ||
+ | |||
+ | Greenshot requires .NET Framework 2.0. If it isn't installed, the installer will pop up a dialog asking if you want to install it. This will hang WPKG, so make sure .NET is installed first. | ||
<source lang="xml"> | <source lang="xml"> |
Revision as of 18:45, 21 January 2011
Greenshot is a open-source screen capture utility available at 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.
Greenshot requires .NET Framework 2.0. If it isn't installed, the installer will pop up a dialog asking if you want to install it. This will hang WPKG, so make sure .NET is installed first.
<package
id="greenshot"
name="Greenshot"
revision="%version%"
priority="0"
reboot="false">
<variable name="version" value="0.8.0.0627" />
<check
type="file"
condition="versionequalto"
path="%PROGRAMFILES%\Greenshot\Greenshot.exe"
value="%version%" />
<install cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-%version%.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' />
<upgrade cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-%version%.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' />
<remove cmd='"%PROGRAMFILES%\Greenshot\unins000.exe" /SILENT'>
<exit code="1" /> <!-- Returns 1 even when uninstall succeeds -->
</remove>
</package>