Skip to main content
rwpatterson
New Member
March 14, 2013
Question

Creating an icon for SSL VPN connection

  • March 14, 2013
  • 5 replies
  • 14915 views
I did it and thought it would be useful for others. It' s much easier (once in place) than having to open browsers and check for compatibility issues, etc. Install the SSL VPN client, then follow the instructions from below. I' ll include the icon target strings here so you can copy and paste if you wish. Setup icon:
" C:\Program Files (x86)\Fortinet\SslvpnClient\FortiSSLVPNclient.exe"  connect -h secure.company.com:10443
Disconnect icon:
" C:\Program Files (x86)\Fortinet\SslvpnClient\FortiSSLVPNclient.exe"  disconnect
Connect icon:
" C:\Program Files (x86)\Fortinet\SslvpnClient\FortiSSLVPNclient.exe"  connect -s " Company" 

    5 replies

    rwpatterson
    New Member
    March 27, 2013
    FYI, I also created an automated installer/uninstaller process for this which places start menu and desktop icon in the workstation. PM me if you' re interested in how it' s done.
    Newbie77
    New Member
    May 15, 2013
    could you provide me with the start menu and desktop icon installer/uninstaller process? Greatly appreciate it.
    rwpatterson
    New Member
    May 15, 2013
    Look here ;) I first created the missing directory (" Program Files x86" if using a 32 bit OS, or " Program Files" if using a 64 bit system), added the bogus SSL VPN directory and an empty file with the target name. I then created links on the desktop to those bogus files. (no way to create the links without the target being there. Doesn' t need to run though...) From that point, I created the batch file in the enclosed link. After I got this whole mess working, I created a self extracting .exe file using 7Zip and instructions from the Internet. Other files used: In the same directory as the installer are
  • Windows_x86 which contains (from the 40Net SSL VPN archive):
    cacheclean.jar CacheCleanerFF2.msi CacheCleanerFF3.msi forticachecleaner.cab fortihostcheck.cab hostcheck.jar SslvpnClient.exe version.h virtualdesktop.jar
  • Windows_x64 which contains (from the 40Net SSL VPN archive):
    cacheclean.jar CacheCleanerFF3.msi forticachecleaner.cab forticachecleaner64.cab fortihostcheck.cab fortihostcheck64.cab hostcheck.jar SslvpnClient.exe version.h virtualdesktop.jar
  • add registry entries.reg <- in other post
  • clear registry entries.reg
  • clear Fortinet registry entries.reg
  • SSL VPN connect_x64.lnk
  • SSL VPN connect_x86.lnk
  • SSL VPN disconnect_x64.lnk
  • SSL VPN disconnect_x86.lnk
  • install.bat <- in other post
  • uninstall.bat The uninstall program:
      REM uninstaller for SSL VPN written by Bob Patterson 03/21/2013    @ECHO off  CLS    IF EXIST " %ProgramFiles(x86)%\SSL VPN_uninstall.bat"  GOTO Remdir  IF EXIST " %ProgramFiles%\SSL VPN_uninstall.bat"       GOTO Remdir    REM COPY this file to above directory  IF NOT EXIST " %Program Files(x86)%\SSL VPN_uninstall.bat"  (      IF EXIST " %Program Files(x86)%\SSL VPN\uninstall.bat"  (          COPY " %ProgramFiles(x86)%\SSL VPN\uninstall.bat"  " %ProgramFiles(x86)%\SSL VPN_uninstall.bat"           REM ...and run it!          " %ProgramFiles(x86)%\SSL VPN_uninstall.bat"           EXIT      )  )    IF NOT EXIST " %ProgramFiles%\SSL VPN_uninstall.bat"  (      IF EXIST " %ProgramFiles%\SSL VPN\uninstall.bat"  (          COPY " %ProgramFiles%\SSL VPN\uninstall.bat"  " %ProgramFiles%\SSL VPN_uninstall.bat"           REM ...and run it!          " %ProgramFiles%\SSL VPN_uninstall.bat"           EXIT      )  )    :Remdir  REM Windows x64  REM REMove Desktop icons      DEL /F /Q " %SystemDrive%\Users\Public\Desktop\SSL VPN connect.lnk"       DEL /F /Q " %SystemDrive%\Users\Public\Desktop\SSL VPN disconnect.lnk"   REM REMove Program Files items  IF EXIST " %ProgramFiles(x86)%\SSL VPN\Windows"  (      DEL /F /Q " %ProgramFiles(x86)%\SSL VPN\Windows\*.*"       RMDIR  /Q " %ProgramFiles(x86)%\SSL VPN\Windows\"   )  IF EXIST " %ProgramFiles(x86)%\SSL VPN\uninstall.bat"  (  REM need to get outta the directory to REMove it!      CD \      DEL /F /Q " %ProgramFiles(x86)%\SSL VPN\*.*"       RMDIR  /Q " %ProgramFiles(x86)%\SSL VPN\"       CLS      ECHO:" %ProgramFiles(x86)%\SSL VPN\"  deleted      ECHO:      GOTO Next  )    REM Windows x86  REM REMove Desktop icons      DEL /F /Q " %SystemDrive%\Documents and Settings\All Users\Desktop\SSL VPN connect.lnk"       DEL /F /Q " %SystemDrive%\Documents and Settings\All Users\Desktop\SSL VPN disconnect.lnk"   REM REMove Program Files items  IF EXIST " %ProgramFiles%\SSL VPN\Windows"  (      DEL /F /Q " %ProgramFiles%\SSL VPN\Windows\*.*"       RMDIR  /Q " %ProgramFiles%\SSL VPN\Windows\"   )  IF EXIST " %ProgramFiles%\SSL VPN\uninstall.bat"  (  REM need to get outta the directory to REMove it!      CD \      DEL /F /Q " %ProgramFiles%\SSL VPN\*.*"       RMDIR  /Q " %ProgramFiles%\SSL VPN\"       CLS      ECHO:" %ProgramFiles%\SSL VPN\"  deleted      ECHO:      GOTO Next  )     :Next    REM REMove start menu items  IF EXIST     " %SystemDrive%\Documents and Settings\All Users\Start Menu\Programs\SSL VPN\"  (      DEL   /Q " %SystemDrive%\Documents and Settings\All Users\Start Menu\Programs\SSL VPN\*.*"       RMDIR /Q " %Drive%\Documents and Settings\All Users\Start Menu\Programs\SSL VPN\"       ECHO:Start menu items deleted      ECHO:  )    :End    ECHO:  ECHO: The SSL VPN shortcuts have been uninstalled. Please continue through to   ECHO:" Add/REMove Programs"  to remove the Fortinet " FortiClient SSLVPN"  software.  ECHO:  ECHO: Thank you  ECHO:  ECHO: Information Services Team ;-)                                         v1.3  ECHO:  PAUSE    appwiz.cpl    IF EXIST " %ProgramFiles(x86)%\SSL VPN_uninstall.bat"  DEL " %ProgramFiles(x86)%\SSL VPN_uninstall.bat"   IF EXIST " %ProgramFiles%\SSL VPN_uninstall.bat"       DEL " %ProgramFiles%\SSL VPN_uninstall.bat"   EXIT  
    The Clear registry entries file:
    Windows Registry Editor Version 5.00    [-HKEY_CURRENT_USER\Software\Fortinet\SslvpnClient\Tunnels\company]  " Server" =" secure.myserver.com(:port)"   " DATA1" =" "   " DATA2" =" "   " Description" =" Tunnel to my server"   " DATA3" =" "   " ServerCert" =" 1"     
    The Clear Fortinet registry entries file:
    Windows Registry Editor Version 5.00    [-HKEY_CURRENT_USER\Software\Fortinet\SslvpnClient\Tunnels\company]  " Server" =" secure.myserver.com(:port)"   " DATA1" =" "   " DATA2" =" "   " Description" =" Tunnel to my server"   " DATA3" =" "   " ServerCert" =" 1"     [-HKEY_CURRENT_USER\Software\Fortinet\SslvpnClient\Tunnels]    [-HKEY_CURRENT_USER\Software\Fortinet\SslvpnClient]  " ServerAddress" =" "   " Installed" =dword:00000001  " ServerPort" =" "   " KeepConnectionAlive" =" "   " DATA0" =" "   " DATA1" =" "   " DATA2" =" "   " DATA3" =" "   " DATA4" =" "   " DATA5" =" "   " DATA6" =" "   " DATA7" =" "   " DATA8" =" "   " DATA9" =" "   " ConnectionName" =" MyServer"     [-HKEY_CURRENT_USER\Software\Fortinet]    
  • Newbie77
    New Member
    May 16, 2013
    Wow......thanks. Let me get cracking. Thanks,
    rwpatterson
    New Member
    May 16, 2013
    Sorry it' s so long in the the tooth, but (in my opinion) it needed to be. I tried to make it idiot proof. Someone keeps building better idiots....
    Newbie77
    New Member
    May 16, 2013
    do you have a sample SSLVPN .lnk file?
    rwpatterson
    New Member
    May 16, 2013
    Create a link from the desktop, and paste in one of the lines from my first post. Be sure to change it to ' Program Files' if using a 32 bit OS.
    Newbie77
    New Member
    May 20, 2013
    Thanks Bob We have it working now.