USB Disk Security
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 6.5.0.0), because of this package create file with current version value.
<package
id="usbdisksecurity"
name="USB Disk Security"
revision="%PKG_VERSION%"
reboot="false"
priority="0">
<variable name="PKG_VERSION" value="6.7.0.0" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\USBDiskSecurity" />
<variable name="PKG_NAME" value="USBGuard%PKG_VERSION%.exe" />
<variable name="PKG_INSTALL_SWITCH" value="/SP- /VERYSILENT /NORESTART /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /NOICONS" />
<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%" />
</check>
<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>
<upgrade include="install" />
<remove cmd="taskkill /F /IM USBGuard.exe">
<exit code="0" />
<exit code="-1073741515" />
<exit code="128" />
</remove>
<remove cmd='%COMSPEC% /C del /S "%PKG_DESTINATION%\UninstallReason.url"'>
<exit code="any"/>
</remove>
<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"/>
</remove>
</package>