[SOLVED] Stormshield SSLVPN Client Package v3.2.1

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

November 28, 2022 - 2:35 PM

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
Last edited by olaplanche on March 8, 2023 - 13:54, edited 4 times.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
realynot
Messages: 9
Registration: Oct 09, 2018 - 4:55 p.m.

January 30, 2023 - 12:15

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') 
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

February 1, 2023 - 9:55 AM

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
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
Didier
Messages: 4
Registration: August 11, 2015 - 4:52 PM

February 7, 2023 - 3:38 PM

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')
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

February 8, 2023 - 8:45 AM

Hello,

is the local service "StormshieldSSLVPNService" properly started under the local system account?
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

February 15, 2023 - 09:49

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
Debian 11
WAPT Version: 2.4.0.14143
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

February 15, 2023 - 11:01

And is the virtual network adapter correctly created in the Windows network adapters?

Picture
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

February 16, 2023 - 09:01

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
Debian 11
WAPT Version: 2.4.0.14143
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

February 17, 2023 - 09:41

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
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

February 17, 2023 - 10:00

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
Debian 11
WAPT Version: 2.4.0.14143
Locked