OwnCloud

OwnCloud is a sync client for the OpenSource Cloud-Software ownCloud.

Clients can be downloaded here.

<package
	id="owncloud"
	name="ownCloud"
	revision="%version%"
	priority="10">
        <variable name="version" value="1.6.3.3721" />
        <variable name="PKG_DESTINATION"    value="%ProgramFiles(x86)%\ownCloud" architecture="x64"/>
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\ownCloud" architecture="x86"/>
        <check type='uninstall' condition='versiongreaterorequal' path='ownCloud' value='%version%'/>
 
	<install cmd='taskkill /f /im owncloud.exe'>
		<exit code='any' />
	</install>
        <install cmd='%COMSPEC% /C "%SOFTWARE%\ownCloud\ownCloud-%version%-setup.exe" /S'/>        

	<!-- Disabling automatic Updates -->
	<install cmd='reg add HKLM\Software\Policies\ownCloud\ownCloud /v "skipUpdateCheck" /d "1" /t REG_DWORD /f' /> 

        <upgrade include="install"/>
 
 	<remove cmd='taskkill /f /im owncloud.exe'>
		<exit code='any' />
	</remove>	
        <remove cmd='%COMSPEC% /C if exist "%PKG_DESTINATION%\uninstall.exe" "%PKG_DESTINATION%\uninstall.exe" /S'/>
        <remove cmd='%COMSPEC% /C if exist "%PKG_DESTINATION%" rmdir /S /Q "%PKG_DESTINATION%"'/>
		
</package>

This Package was tested with Windows 7 x32 and x64.