Difference between revisions of "XnView"
From WPKG | Open Source Software Deployment and Distribution
m |
(Used 'architecture' keyword for XML cleanup) |
||
Line 22: | Line 22: | ||
reboot="false" | reboot="false" | ||
priority="10"> | priority="10"> | ||
+ | |||
+ | <variable name="PKG_VERSION" value="1.98.5" /> | ||
+ | |||
+ | <variable name="PKG_DESTINATION" value="%ProgramFiles%\XnView" architecture="x86"/> | ||
+ | <variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\XnView" architecture="x64"/> | ||
− | <check type="uninstall" condition="exists" path="XnView | + | <check type="uninstall" condition="exists" path="XnView .+" value="%PKG_VERSION%" /> |
− | <install cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' /> | + | <install cmd='%SOFTWARE%\XnView\XnView-win-%PKG_VERSION%.exe /norestart /verysilent' /> |
− | <upgrade cmd='%ComSpec% /c if exist "% | + | <upgrade cmd='%ComSpec% /c if exist "%PKG_DESTINATION%\unins000.exe" "%PKG_DESTINATION%\unins000.exe /verysilent"' > |
<exit code="1" reboot="false"/> | <exit code="1" reboot="false"/> | ||
</upgrade> | </upgrade> | ||
− | <upgrade cmd='%ComSpec% /c if exist "% | + | <upgrade cmd='%ComSpec% /c if exist "%PKG_DESTINATION%" del /Q "%PKG_DESTINATION%"' /> |
− | + | ||
− | + | <upgrade cmd='%SOFTWARE%\XnView\XnView-win-%PKG_VERSION%.exe /norestart /verysilent' /> | |
− | + | ||
− | + | ||
− | <upgrade cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' /> | + | |
− | <remove cmd='%ComSpec% /c if exist "% | + | <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%\unins000.exe" "%PKG_DESTINATION%\unins000.exe /verysilent"' > |
− | + | ||
− | + | ||
− | + | ||
<exit code="1" reboot="false"/> | <exit code="1" reboot="false"/> | ||
</remove> | </remove> | ||
− | <remove cmd='%ComSpec% /c if exist "% | + | <remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%" del /Q "%PKG_DESTINATION%"' /> |
− | + | ||
</package> | </package> |
Revision as of 23:15, 7 February 2012
This is a silent installer and uninstaller for XnView, an image converter and viewer. More infos from here.
This can be used to install 32-bit XnView on both 32-bit and 64-bit Windows.
<?xml version="1.0" encoding="UTF-8"?>
<!--
XnView Homepage
http://www.xnview.com/
XnView download :
http://download.xnview.com/XnView-win.exe
-->
<packages>
<package
id="xnview"
name="XnView"
revision="1"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value="1.98.5" />
<variable name="PKG_DESTINATION" value="%ProgramFiles%\XnView" architecture="x86"/>
<variable name="PKG_DESTINATION" value="%ProgramFiles(x86)%\XnView" architecture="x64"/>
<check type="uninstall" condition="exists" path="XnView .+" value="%PKG_VERSION%" />
<install cmd='%SOFTWARE%\XnView\XnView-win-%PKG_VERSION%.exe /norestart /verysilent' />
<upgrade cmd='%ComSpec% /c if exist "%PKG_DESTINATION%\unins000.exe" "%PKG_DESTINATION%\unins000.exe /verysilent"' >
<exit code="1" reboot="false"/>
</upgrade>
<upgrade cmd='%ComSpec% /c if exist "%PKG_DESTINATION%" del /Q "%PKG_DESTINATION%"' />
<upgrade cmd='%SOFTWARE%\XnView\XnView-win-%PKG_VERSION%.exe /norestart /verysilent' />
<remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%\unins000.exe" "%PKG_DESTINATION%\unins000.exe /verysilent"' >
<exit code="1" reboot="false"/>
</remove>
<remove cmd='%ComSpec% /c if exist "%PKG_DESTINATION%" del /Q "%PKG_DESTINATION%"' />
</package>
</packages>
If you're looking to bypass the initial Configuration Wizard popup for all users just create an empty xnview.ini file inside the installation dir:
echo. > "%PROGRAMFILES%\XnView\xnview.ini"