Page 1 of 2

[SOLVED] Stormshield SSLVPN Client Package v3.2.1

Published: November 28, 2022 - 2:35 PM
by olaplanche
Good morning,

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')
Changelog from 01/02/23:
  • 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 :D
  • The same applies to impacted_process once it is entered in the "sslvpn_client" control file

Re: [SOLVED] Stormshield SSLVPN Client Package v3.1.1

Published: January 30, 2023 - 12:15 PM
by realynot
Thank you for the package

I have just adapted it for the latest version 3.2.0 by adding the uninstallation of previous versions.
Everything went perfectly with the WAPT package, uninstalling and installing was OK.

However, at the Stormshield client level, it then gets stuck on

Picture

Is it the same where you live?

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

# Defining variables
bin_name_string = 'Stormshield_SSLVPN_Client_%s_win10_fr_x64.msi'
vpn_server = 'xx.xxx.fr' # Set default vpn server fqdn to connect to

def install():
  for soft in installed_softwares('Stormshield SSL VPN Client'):
    if Version(soft['version']) < Version('3.2.0'):
                run(WAPT.uninstall_cmd(soft['key']))
    # Initializing variables
    package_version = control.get_software_version()
    bin_name = bin_name_string % package_version
    impacted_process = control.impacted_process.split(",")

    print('Installing %s' % bin_name)
    install_msi_if_needed(bin_name,killbefore=impacted_process)
    uninstallkey.remove('{A74BDC23-D51E-4EB2-9175-F1EC67EC37F0}')
    killalltasks('sslvpn_client.exe') # 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():
    run('msiexec.exe /x "{A74BDC23-D51E-4EB2-9175-F1EC67EC37F0}" /qn')
    remove_programs_menu_folder('Stormshield SSL VPN Client') 

Re: [SOLVED] Stormshield SSLVPN Client Package v3.1.1

Published: February 1, 2023 - 9:55 AM
by olaplanche
Hello,

I just updated my package and code because the uninstall key changes between each version of the software.
I had unnecessarily complicated things. I tested the installation, uninstallation, and update. Everything works on my test machine.

No issues with the local service.

Picture

Re: [SOLVED] Stormshield SSLVPN Client Package v3.2.0

Published: February 7, 2023 - 3:38 PM
by Didier
Hello and thank you! I happily used your codes :mrgreen:
I have the same problem as you @realynot, ("please wait while local service is being processed"...)
Were you able to get around the problem?

Alternatively, I added the option to launch it at client startup for all users:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

# Defining variables
bin_name_string = 'Stormshield_SSLVPN_Client_%s_win10_fr_x64.msi'
vpn_server = 'vpn.xxxxxxx.xx' # 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

    print('Installing %s' % bin_name)
    install_msi_if_needed(bin_name)
    killalltasks('sslvpn_client.exe') # 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')
    registry_set(HKEY_LOCAL_MACHINE,makepath('SOFTWARE','Microsoft','Windows','CurrentVersion','Run'),'stormshield-vpn','C:\Program Files\Stormshield\Stormshield SSL VPN Client\sslvpn_client.exe',type=REG_SZ)

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')
    if reg_key_exists(HKEY_LOCAL_MACHINE,r'Software\Microsoft\Windows\CurrentVersion\run\stormshield-vpn'):
        run('reg delete "Software\Microsoft\Windows\CurrentVersion\run\stormshield-vpn" /f')

Re: [SOLVED] Stormshield SSLVPN Client Package v3.2.0

Published: February 8, 2023 - 8:45 AM
by olaplanche
Hello,

is the local service "StormshieldSSLVPNService" properly started under the local system account?

Re: [SOLVED] Stormshield SSLVPN Client Package v3.2.0

Published: February 15, 2023 - 09:49
by jdziadek
olaplanche wrote: Feb 8, 2023 - 08:45 Hello,

Is the local service "StormshieldSSLVPNService" properly started under the local system account?
Hello, I have the same problem here, and the service is definitely started under the local system account

Re: [SOLVED] Stormshield SSLVPN Client Package v3.2.0

Published: February 15, 2023 - 11:01 AM
by olaplanche
And is the virtual network adapter correctly created in the Windows network adapters?

Picture

Re: [SOLVED] Stormshield SSLVPN Client Package v3.2.0

Published: February 16, 2023 - 09:01
by jdziadek
olaplanche wrote: Feb 15, 2023 - 11:01 And is the virtual network adapter properly created in the Windows network adapters?

Picture
Yes, everything is OK at that level as well. The update on a machine that already had the client installed works without any problems, but a fresh install does not

Re: [SOLVED] Stormshield SSLVPN Client Package v3.2.0

Published: February 17, 2023 - 09:41
by olaplanche
I just tested again on my dev VM and I can't reproduce your problem. Everything is fine on my end...
I also tested on my production machine, no issues.

For your information: both machines are running Windows 10 21H2 (haven't tested on Windows 11).

Could someone try manually uninstalling the VPN client (appwiz.cpl) and reinstalling it via Wapt?

Thanks

Re: [SOLVED] Stormshield SSLVPN Client Package v3.2.0

Published: February 17, 2023 - 10:00 AM
by jdziadek
olaplanche wrote: Feb 17, 2023 - 9:41 AM I just tested again on my dev VM and I can't reproduce your problem. Everything is OK on my end...
I also tested on my production machine, no issues.

For your information: both machines are running Windows 10 21H2 (not tested on Windows 11).

Could someone try manually uninstalling the VPN client (appwiz.cpl) and reinstalling it via wapt?

Thanks
Hello, the problem we're also encountering is that it doesn't appear in appwiz.cpl