Whiterisk

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

A flash-based application for education about avalanches. Unfortunately the download version as currently a annoying activation mechanism that binds the use per activation not only to a single Computer ID but also to the logged in user. Each time another user wants to use the software needs to be disabled by the previous user. Nonetheless, at least it can be installed unattended:

Installling with WPKG >= 1.20

<?xml version="1.0" encoding="UTF-8"?> 
<packages
        xmlns:xsi="http://www.wpkg.org/packages"
        xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >

	<package
		id="whiterisk"
		name="Whiterisk"
		revision="2"
		reboot="false"
		priority="100">
		
		<variable name="PKG_SOURCE" value="%SOFTWARE%\w\whiterisk\whiterisk_d_1-0_windows_installer.exe" />
		
		<check type="uninstall" condition="exists" path="whiterisk-d" />
	
		<install cmd='"%PKG_SOURCE%" --mode unattended' />
		<install cmd='%ComSpec% /c del "%PUBLIC%\Desktop\whiterisk.lnk"' />
		
		<!-- Upgrade uses the same commands as install (there is no actual upgrade) -->
		<upgrade cmd='install' />

		<remove architecture="x86" cmd='"%ProgramFiles%\whiterisk-d\uninstall.exe" --mode unattended' />
		<remove architecture="x64" cmd='"%ProgramFiles(x86)%\whiterisk-d\uninstall.exe" --mode unattended' />
		
	</package>
</packages>