PureVPN

Package for PureVPN - https://www.purevpn.com/

PureVPN prompts to install a network driver. Installing the certificate from the publisher prior the install resolves this. You can obtain the certificate by installing PureVPN manually first.

Run > certmgr.msc > Trusted Publishers > Certificates. Here you will find the certificates installed. You can find the serial number on the details tab when you open a certificate.

	
<package id="purevpn" name="PureVPN" priority="350" reboot="false" revision="0.1">
	<variable name="CERT" value="%SOFTWARE%\certificate.cer"/>
        <!-- Check if PureVPN is already installed -->
	<check type="uninstall" condition="exists" path="PureVPN" />
	<!-- Software needs network driver and prompt to trust publisher uppon install, installing cert resolves this -->
	<install cmd='%COMSPEC% /c certutil.exe -addstore TrustedPublisher %CERT%'/>
	<!-- install software -->
	<install cmd='%COMSPEC% /c %SOFTWARE%\purevpn_setup.exe /VERYSILENT /NORESTART'/>
	<!-- program laucnhes after install -->
	<install cmd='%COMSPEC% /c taskkill /IM purevpn.exe /F'/>
	<upgrade include="install"/>
	<!-- uninstall program -->
	<remove cmd='%COMSPEC% /c "%PROGRAMFILES%\PureVPN\unins000.exe" /SILENT' />
	<!-- removes cert -->
	<remove cmd='%COMSPEC% /c certutil.exe -delstore TrustedPublisher cert_serial_number ' />
</package>