Difference between revisions of "Greenshot"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(Use an install check that looks for a version rather than matching any version)
Line 1: Line 1:
Greenshot is a opensource screen capture utility available at [http://getgreenshot.org/ http://getgreenshot.org/]
+
Greenshot is a open-source screen capture utility available at [http://getgreenshot.org/ http://getgreenshot.org/]
  
 
== Installation ==
 
== 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">
 
<source lang="xml">
<packages>
+
<package
  <package
+
  id="greenshot"
    id="greenshot"
+
  name="Greenshot"
    name="Greenshot"
+
  revision="%version%"
    revision="1"
+
  priority="0"
    priority="0"
+
  reboot="false">
    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 cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-0.8.0-0627.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
+
  <variable name="version" value="0.8.0.0627" />
  
    <remove cmd='"%ProgramFiles%\Greenshot\unins000.exe" /SILENT'/>
+
  <check
 +
    type="file"
 +
    condition="versionequalto"
 +
    path="%PROGRAMFILES%\Greenshot\Greenshot.exe"
 +
    value="%version%" />
 
   
 
   
  </package>
+
  <install cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-%version%.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' />
  </packages>
+
 
 +
  <upgrade cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-%version%.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' />  
 +
 
 +
  <remove cmd='"%PROGRAMFILES%\Greenshot\unins000.exe" /SILENT'/>
 +
</package>
 
</source>
 
</source>
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 20:54, 16 September 2010

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.

<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'/>
</package>