Hello,
We have a situation that we need to install the FortiClient VPN to replace FortiClient (full bundre with AV, VPN, etc etc). We are changing the antivirus by opting the Comodo that was included in the deal I guess. Since everybody is working at home and that the company choose ITarian just 2 weeks before I was hired, it’s a nice occasion to use the full power of ITarian. The problem is I don’t know ITarian or Python at all.
I have a MSI or EXE installation file and a REG configuration one. The latter should be install first and the application after. I don’t want to touch the full client for now, it would be difficult to remove it and install the VPN one at the same time.  I can provide files and/or information, don’t hesitate.
So I need help since it’s a first for me with this kind of scripting…
Thank you in advance.
             
            
              
           
          
            
            
              Hi @Infinite_New1 ,
Thanks for your script request. We have asked our script developers to check and provide their feedback.
Kind Regards,
             
            
              
           
          
            
            
              
 Infinite_New1:
 
I have a MSI or EXE installation file and a REG configuration one. The latter should be install first and the application after. I don’t want to touch the full client for now, it would be difficult to remove it and install the VPN one at the same time. I can provide files and/or information, don’t hesitate.
 
 
Hi @Infinite_New1  ,
Our script developers request the installation file and configuration file to analyse more on this. Please provide the same.
Kind Regards,
             
            
              
           
          
            
            
              Can I check if this script is completed? I have similar needs
             
            
              
           
          
            
            
              Hi @asdadmin ,
We were not able to process this script request as we didn’t receive requested setup files.
Kind Regards,
             
            
              
           
          
            
            
              Sorry I never return to this discussion. We finally took down the FortiClient (full bundle) one by one (long story).
But making a script just for installing FortiClient VPN would be nice. If we can have a connection profile pre-configured would be even better.
I’ll check if it’s feasible by registry or conf file and return here when possible with more info. But not today…
Thank you.
             
            
              
           
          
            
            
              Hi @Infinite_New1 ,
Our script developers will be happy to provide script for your request. Please provide requested details, when you are free.
Kind Regards,
             
            
              
           
          
            
            
              Hi @Infinite_New1 
We are no longer using FortiClient, we used it until version 5.4.2.0860 and we have switched recently to a different VPN solution, but maybe this will be useful to you.
We used to deploy it with a CMD script in two steps. The first one did the usual unattended installation using msiexec with the parameters recommended in the FortiClient documentation:
msiexec /i "C:\Temp\FortiClient.msi" TRANSFORMS="C:\Temp\FortiClient.mst" USESWUID=1 ADMINMODE=1 /qn /L*v "C:\SetupLogs\FortiClient_5.4.2.0860_Setup.log"
The second step was used to import the connection configuration in xml format using the FCConfig tool included in FortiClient installation:
"C:\Program Files (x86)\Fortinet\FortiClient\FCConfig.exe" -f C:\Temp\FortiClient_BaseConfig.conf -m all -o import -q
"C:\Program Files (x86)\Fortinet\FortiClient\FCConfig.exe" -f C:\Temp\FortiClient_ConfigVPN.conn -m vpn -o importvpn -q
We did two imports because we had a common base configuration for all sites and a specific VPN for several sites, but you can just enter the VPN configuration in the main .conf file and do all the config in a single step.
Check the FortiNet documentation for further details and information: https://docs.fortinet.com/document/forticlient/6.0.2/xml-reference-guide/515041/back-up-and-restore-command-line-utility-commands-and-syntax 
Hope this will be helpful for you.
Regards,
             
            
              
           
          
            
            
              Hi PremJK,
In our case, we are using the forticlient VPN as listed in the web link below:
https://filestore.fortinet.com/forticlient/downloads/FortiClientVPNOnlineInstaller_6.4.exe 
This is the latest version for forticlient. First we need to uninstall the old version, install the new version and then load the conf.
Regards
             
            
              
           
          
            
            
              Hi @asdadmin ,
Thanks for providing setup file. We have asked our script developers to analyse and provide feedback.
Kind Regards,
             
            
              
           
          
            
            
              Hi @asdadmin ,
Please try this script prepared by our script developers and provide feedback
Uninstall FortiClient VPNhttps://scripts.itarian.com/frontend/web/topic/uninstall-forticlient-vpn 
Install FortiClient VPNhttps://scripts.itarian.com/frontend/web/topic/lnstall-forticlient-vpn 
Kind Regards,
             
            
              
           
          
            
            
              tHi everybody,
Your script is run but spesic settings cannot add reg file if this reg file is add very good
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Fortinet\FortiClient\S slvpn\Tunnels\COMPANY]vpn.company.com:443 ”
             
            
              
           
          
            
            
              Hi @sourloemon ,
Thanks for your request. Will ask our script developers to provide updated script.
Kind Regards,
             
            
              
           
          
            
            
              Hi @sourloemon ,
Please run this script prepared by our script developers in JSON format and provide your feedback
Kind Regards,
20210105-Install_FortiClient_Vpn_with_registry.json  (6.5 KB)
             
            
              
           
          
            
            
              I want cahange COMPANY vpn.company.com:443  how to change ??
             
            
              
           
          
            
            
              Hi @sourloemon ,
Please run this updated script in JSON format and check the attachment to change company in imported procedure.
Kind Regards,
20210105-Install_FortiClient_Vpn_with_registry (1).json  (6.13 KB)
             
            
              
           
          
            
            
              Hi @sourloemon ,
Please run this updated script and let us know the output
Check the attachment to change company in the imported procedure
Kind Regards,
20210105-Install_FortiClient_Vpn_with_registry.json  (6.13 KB)