23 lines
797 B
Python
23 lines
797 B
Python
# -*- coding: utf-8 -*-
|
|
from setuphelpers import *
|
|
|
|
uninstallkey = []
|
|
|
|
def install():
|
|
print('installing cma17-sonicwall-global-VPN')
|
|
|
|
if iswin64():
|
|
install_msi_if_needed('GVCInstall64.msi', '/quiet /norestart', accept_returncodes='1618')
|
|
|
|
else:
|
|
install_msi_if_needed('GVCInstall32.msi', '/quiet /norestart', accept_returncodes='1618')
|
|
|
|
filecopyto('default.rcf',makepath(programfiles,'SonicWall\Global VPN Client'))
|
|
|
|
create_desktop_shortcut(r'VPN CMA17',traget=r'C:\Program Files\SonicWall\Global VPN Client\SWGVC.exe',arguments=r'/E "VPN CMA17"')
|
|
|
|
def remove():
|
|
print('uninstalling cma17-sonicwall-global-vpn')
|
|
|
|
run(r'msiExec.exe /X {7D7ED176-EA00-4B2B-B421-AA19A451F650} /q /norestart', timeout=2700, accept_returncodes=(0,1605))
|