Newer
Older
<packages:packages xmlns:packages="http://www.wpkg.org/packages">
<package id="irfanview" name="Irfanview" revision="%version%.1" priority="0" reboot="false">
<variable name="version" value="4.54" />
<variable name="shortversion" value="454" />
<!-- NB this package is a merge of the main irfanview package and the separate plugins
package from wpkg.org; we may as well always have the plugins -->
<check type="logical" condition="and">
<!-- irfanview itself -->
<check type="uninstall" condition="exists" path="IrfanView %version% (32-bit)" />
<!-- and the plugins -->
<check type="file" condition="exists" path="%programfiles(x86)%\irfanview\plugins\iv_player.exe" />
</check>
<install cmd='%wpkgsoftware%\irfanview\iview%shortversion%_setup.exe /silent /desktop=0 /group=1 /allusers=1 /assoc=1' />
<install cmd='%wpkgsoftware%\irfanview\iview%shortversion%a_plugins_setup.exe /silent' />
<install cmd='cmd /c copy "%wpkgsharebase%\common-config\irfanview\i_view32.ini" "%programfiles(x86)%\irfanview"' />
<upgrade include="remove"/>
<upgrade include="install"/>
<remove cmd='cmd /c %WPKGSOFTWARE%\wpkg\tools\waitforprocess.cmd iv_uninstall.exe' />
<remove cmd='"%programfiles(x86)%\irfanview\iv_uninstall.exe" /silent' />
<remove cmd='cmd /c %WPKGSOFTWARE%\wpkg\tools\waitforprocess.cmd iv_uninstall.exe' />
<!-- the uninstaller leaves itself behind, so remove it -->
<remove cmd='cmd /c if exist "%programfiles(x86)%irfanview" rmdir /s /q "%programfiles(x86)%\irfanview"' />