Greenshot is a open-source screen capture utility available at [http://getgreenshot.org/ http://getgreenshot.org/]
== Greenshot 1.0 final (1.0.6.2228) ==
Here is my actual installation package. This is work in progress and any suggestions for enhancements are welcome. This is made by trial and error and collecting information of various forum feeds for an earlier version, but works with If you used the 1.0 Final. At the moment there is a [http://sourceforge.net/projects/greenshot/forums/forum/676082/topic/5727935|request running on the Greenshot Forum] to document the features needed for silent package previously listed here, know that this one adds 32-bit installation.In order to deploy the support and will copy default settings to the %appdataAPPDATA%\Greenshot I am looking for a way to do this with wpkg. At the moment I used an workaround with Active Directoryfolder.
<source lang="winbatch">
<package
id="greenshot" name="Greenshot" revision="%version%" priority="5" reboot="false"> <variable name="fileversion" value="1.01.65.22282643" /> <variable name="version" value="1.01.65.22282643" /> <check type="fileuninstall" condition="versionequaltoexists" path="%PROGRAMFILES(x86)%\Greenshot\Greenshot.exe" value="%version%" /> <commands> <command type="install" cmd='"%SOFTWARE%\greenshot\Greenshot-INSTALLER-%fileversion%.exe" /LOADINF="%SOFTWARE%\greenshot\greenshot.inf" /VERYSILENT /NORESTART --norun/NORUN' /> <!-- the file command type="install" cmd='%comspec% /c copy %SOFTWARE%\greenshot\Greenshot-defaults.ini will be deployed by active directory because I did not found a way to use wpkg to send Greenshot-defaults.ini to "%appdataAPPDATA%\Greenshot --\Greenshot.ini"' /> <command type="upgrade" include="install" /> <command type="remove" architecture='x86' cmd='"%PROGRAMFILES%\Greenshot\unins000.exe" /SILENT'> <exit code="1" /> <!-- Returns 1 even when uninstall succeeds --> </command> <command type="remove" architecture='x64' cmd='"%PROGRAMFILES(x86)%\Greenshot\unins000.exe" /SILENT'> <exit code="1" /> <!-- Returns 1 even when uninstall succeeds --> </command> </commands>
</package>
</source>