Difference between revisions of "XnView"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Used 'architecture' keyword for XML cleanup)
 
Line 1: Line 1:
 
This is a silent installer and uninstaller for XnView, an image converter and viewer. More infos from [http://www.xnview.com/ here].
 
This is a silent installer and uninstaller for XnView, an image converter and viewer. More infos from [http://www.xnview.com/ here].
  
This can be used to install 32-bit XnView on both 32-bit and 64-bit Windows.
+
This can be used to install 32-bit XnView on both 32-bit and 64-bit Windows XP, VISTA, 7.
  
 
<source lang="xml">
 
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
+
<!-- XnView -->
 
+
<package id="xnview" name="XnView" revision="11" reboot="false" priority="7000">
<!--  
+
XnView Homepage
+
<variable name="PKG_VERSION"    value="2.22" />
http://www.xnview.com/
+
<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\XnView"      architecture="x86"/>
 
+
<variable name="PKG_DESTINATION" value="%PROGRAMFILES(x86)%\XnView" architecture="x64"/>
XnView download :
+
http://download.xnview.com/XnView-win.exe
+
<check type="uninstall" condition="exists" path="XnView %PKG_VERSION%" />
-->
+
+
<install cmd='%SOFTWARE%\xnview\XnView-win-full-de%PKG_VERSION%.exe /norestart /verysilent' />
<packages>
+
<install cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%\unins000.exe" "%SOFTWARE%\xnview\einstellungen.cmd"' ><exit code="1"/></install>
 
+
<package
+
<upgrade cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%\unins000.exe" "%PKG_DESTINATION%\unins000.exe /verysilent"' ><exit code="1" reboot="false"/>
    id="xnview"
+
</upgrade>
    name="XnView"
+
<upgrade cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%" del /Q "%PKG_DESTINATION%"' />
    revision="1"
+
<upgrade cmd='%SOFTWARE%\xnview\XnView-win-full-de%PKG_VERSION%.exe /norestart /verysilent' />
    reboot="false"
+
    priority="10">
+
<remove cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%\unins000.exe" "%PKG_DESTINATION%\unins000.exe /verysilent"' ><exit code="1" reboot="false"/>
 
+
</remove>
        <variable name="PKG_VERSION"    value="1.98.5" />
+
<remove cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%" del /Q "%PKG_DESTINATION%"' />
 
+
        <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>
 
</package>
 
</packages>
 
 
</source>
 
</source>
  

Latest revision as of 12:07, 28 April 2014

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 XP, VISTA, 7.

<!-- XnView -->
	<package id="xnview" name="XnView" revision="11" reboot="false" priority="7000">
	 
		<variable name="PKG_VERSION"     value="2.22" />
		<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 %PKG_VERSION%" />
		 
		<install cmd='%SOFTWARE%\xnview\XnView-win-full-de%PKG_VERSION%.exe /norestart /verysilent' />
		<install cmd='%COMSPEC% /c if exist "%PKG_DESTINATION%\unins000.exe" "%SOFTWARE%\xnview\einstellungen.cmd"' ><exit code="1"/></install>
						 
		<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-full-de%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>

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"