XnView

From WPKG | Open Source Software Deployment and Distribution
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 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"