The problem present in previous versions has been fixed in the latest version; system account installation finally works correctly!
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
# Defining variables
bin_name_string = 'Stormshield_SSLVPN_Client_%s_win10_fr_x64.msi'
vpn_server = 'xxx.yyy.zzz' # Set default vpn server fqdn to connect to
def install():
# Initializing variables
package_version = control.get_software_version()
bin_name = bin_name_string % package_version
# Installing the package
print('Installing %s' % bin_name)
install_msi_if_needed(bin_name)
killalltasks(control.impacted_process.split(",")) # Kill client process launched with system account
create_programs_menu_shortcut('Stormshield SSL VPN Client','C:\Program Files\Stormshield\Stormshield SSL VPN Client\sslvpn_client.exe',wDir='C:\Program Files\Stormshield\Stormshield SSL VPN Client\\',folder='Stormshield SSL VPN Client')
def session_setup():
# Initializing variables
currentuser = os.getlogin()
# Configuring user client default vpn server to connect to
registry_set(HKEY_CURRENT_USER,r'Software\\STORMSHIELD\\STORMSHIELD SSL VPN CLIENT','address',vpn_server,type=REG_SZ)
registry_set(HKEY_CURRENT_USER,r'Software\\STORMSHIELD\\STORMSHIELD SSL VPN CLIENT','automatic','true',type=REG_SZ)
registry_set(HKEY_CURRENT_USER,r'Software\\STORMSHIELD\\STORMSHIELD SSL VPN CLIENT','username',currentuser,type=REG_SZ)
def uninstall():
remove_programs_menu_folder('Stormshield SSL VPN Client')- The code has been updated because the uninstallkey changes between each version of the software; the install_msi_if_needed function handles it very well, so we might as well rely on it

- The same applies to impacted_process once it is entered in the "sslvpn_client" control file



