XnView

From WPKG | Open Source Software Deployment and Distribution
Revision as of 23:17, 7 February 2012 by Ejs (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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"
Retrieved from "http://wpkg.org/XnView"
Personal tools
Namespaces
Variants
Actions
Navigation
ideas?
Toolbox