Changes

Irfanview

263 bytes added, 16:37, 1 April 2011
Correct version number for installer executable and introduce variables for easier updating, preserving previous revision number pattern for main installer package definition
id="irfanview"
name="IrfanView"
revision="4280%shortversion%0"
reboot="false"
priority="0">
 
<variable name="version" value="4.2.8.0" />
<variable name="shortversion" value="428" />
<variable name="exesize" value="505856" />
 
<check type="file" condition="versionequalto" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="%version%" />
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="%exesize%" />
<check type="file" condition="versionequalto" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="4.2.8.0" /> <check type="file" condition="sizeequals" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="505856" /> <install cmd='%SOFTWARE%\irfanview\iview427_setupiview%shortversion%_setup.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=1 /assoc=1' />
<!-- bring in our INI file which forces Irfanview to use per-user configurations in %APPDATA% -->
<upgrade cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
<upgrade cmd='%SOFTWARE%\irfanview\iview427_setupiview%shortversion%_setup.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=1 /assoc=1' />
<remove cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
<source lang="xml">
<package id="irfanview_plugins" name="Irfanview Plugins" revision="1%shortversion%" reboot="false" priority="1">
<check type="file" condition="exists" path="%PROGRAMFILES%\IrfanView\plugins\IV_player.exe" />
<depends package-id="irfanview" />
  <variable name="shortversion" value="428" />  <install cmd='%SOFTWARE%\irfanview\irfanview_plugins_427_setupirfanview_plugins_%shortversion%_setup.exe /silent' /> <upgrade cmd='%SOFTWARE%\irfanview\irfanview_plugins_427_setupirfanview_plugins_%shortversion%_setup.exe /silent' />
<!-- This doesn't remove all plugins. Just ensure a false check for this package.
Hence, WPKG could mark irfanview_plugins package as removed and this allows
Anonymous user