Page 1 of 1

Custom Package Creation - FortiClient

Published: April 28, 2022 - 1:44 PM
by admgautier
Good morning,

New to the WAPT field,

I am looking to configure a custom package in order to install the Forticlient_6.4.3.exe software.

I managed to launch the software from the PyScripter console (after modifying the code).
However, I can't figure out what code to add in order to accept the license terms that the software requires me to validate.

Is there some kind of magic code to validate this parameter and thus silently install the software?

Code setup.py:

Code: Select all

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

"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables

    # Installing the software
    print("Installing: %s" % control.package)
    install_exe_if_needed('FortiClientVPNSetup_6.4.3.1608_x64.exe',
        '/s',
        key='',
        min_version=control.get_software_version(),
    )
Thank you in advance for your feedback.
Anthony

Re: Creating a custom package - FortiClient

Published: April 28, 2022 - 4:21 PM
by sfonteneau
The documentation at https://docs.fortinet.com/document/fort ... ng-the-cli mentions an MSI file


. Alternatively, here's a document with an EXE file: https://silentinstallhq.com/forticlient ... -to-guide/

Hope this helps.

Re: Creating a custom package - FortiClient

Published: May 2, 2022 - 9:03 AM
by admgautier
Thank you for your feedback.

I'll test everything and get back to you if it doesn't work.

Best regards,
Anthony