Difference between revisions of "XnView"
From WPKG | Open Source Software Deployment and Distribution
(update to work with 64-bit windows) |
|||
Line 1: | Line 1: | ||
This is a silent installer and uninstaller for XnView. | This is a silent installer and uninstaller for XnView. | ||
+ | |||
+ | This can be used to install 32-bit XnView on both 32-bit and 64-bit Windows. | ||
<source lang="xml"> | <source lang="xml"> | ||
Line 25: | Line 27: | ||
<install cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' /> | <install cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' /> | ||
− | <upgrade cmd='% | + | <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView\unins000.exe" "%ProgramFiles%\XnView\unins000.exe /verysilent"' > |
+ | <exit code="1" reboot="false"/> | ||
+ | </upgrade> | ||
+ | <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView\unins000.exe" "%ProgramFiles(x86)%\XnView\unins000.exe /verysilent"' > | ||
+ | <exit code="1" reboot="false"/> | ||
+ | </upgrade> | ||
+ | <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView" del /Q "%PROGRAMFILES%\XnView"' /> | ||
+ | <upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView" del /Q "%PROGRAMFILES(x86)%\XnView"' /> | ||
<upgrade cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' /> | <upgrade cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' /> | ||
− | <remove cmd='% | + | <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView\unins000.exe" "%ProgramFiles%\XnView\unins000.exe /verysilent"' > |
− | + | <exit code="1" reboot="false"/> | |
+ | </remove> | ||
+ | <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView\unins000.exe" "%ProgramFiles(x86)%\XnView\unins000.exe /verysilent"' > | ||
+ | <exit code="1" reboot="false"/> | ||
+ | </remove> | ||
+ | <remove cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView" del /Q "%PROGRAMFILES%\XnView"' /> | ||
+ | <remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView" del /Q "%PROGRAMFILES(x86)%\XnView"' /> | ||
+ | |||
</package> | </package> | ||
Revision as of 03:37, 19 October 2010
This is a silent installer and uninstaller for XnView.
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">
<check type="uninstall" condition="exists" path="XnView 1.97.8" />
<install cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' />
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView\unins000.exe" "%ProgramFiles%\XnView\unins000.exe /verysilent"' >
<exit code="1" reboot="false"/>
</upgrade>
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView\unins000.exe" "%ProgramFiles(x86)%\XnView\unins000.exe /verysilent"' >
<exit code="1" reboot="false"/>
</upgrade>
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView" del /Q "%PROGRAMFILES%\XnView"' />
<upgrade cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView" del /Q "%PROGRAMFILES(x86)%\XnView"' />
<upgrade cmd='%SOFTWARE%\XnView\XnView-win.exe /norestart /verysilent' />
<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView\unins000.exe" "%ProgramFiles%\XnView\unins000.exe /verysilent"' >
<exit code="1" reboot="false"/>
</remove>
<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView\unins000.exe" "%ProgramFiles(x86)%\XnView\unins000.exe /verysilent"' >
<exit code="1" reboot="false"/>
</remove>
<remove cmd='%ComSpec% /c if exist "%ProgramFiles%\XnView" del /Q "%PROGRAMFILES%\XnView"' />
<remove cmd='%ComSpec% /c if exist "%ProgramFiles(x86)%\XnView" del /Q "%PROGRAMFILES(x86)%\XnView"' />
</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"