USB Disk Security

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

USB Disk Security is the best software to block threats that can damage your PC or compromise your personal information via USB storage.

USB Disk Security not store the current version (for 6.7, 6.6 and 6.5 - file version, because of this package create file with current version value.

	name="USB Disk Security"
	<variable name="PKG_VERSION"		value="" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\USBDiskSecurity" />
	<variable name="PKG_NAME"		value="USBGuard%PKG_VERSION%.exe" />
	<variable name="PKG_REMOVE_SWITCH"	value="/VERYSILENT /NORESTART" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\USB Disk Security" architecture="x86" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES(x86)%\USB Disk Security" architecture="x64" />

	<check type="logical" condition="and">
		<check type="uninstall" condition="exists" path="USB Disk Security" />
		<check type="file" condition="exists" path="%PKG_DESTINATION%\%PKG_VERSION%" />
	<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
	<install cmd='%COMSPEC% /C copy /Y /V NUL "%PKG_DESTINATION%\%PKG_VERSION%"' />

	<upgrade cmd="taskkill /F /IM USBGuard.exe"> 
		<exit code="0" /> 
		<exit code="-1073741515" /> 
		<exit code="128" />
	<upgrade include="install" />
	<remove cmd="taskkill /F /IM USBGuard.exe"> 
		<exit code="0" /> 
		<exit code="-1073741515" /> 
		<exit code="128" />
	<remove cmd='%COMSPEC% /C del /S "%PKG_DESTINATION%\UninstallReason.url"'>
		<exit code="any"/>
	<remove cmd='"%PKG_DESTINATION%\Unins000.exe" %PKG_REMOVE_SWITCH%' />

	<remove cmd='%COMSPEC% /C if exist "%PKG_DESTINATION%" rmdir /S /Q "%PKG_DESTINATION%"'>
		<exit code="any"/>