====== Filezilla Client ======
//Scripts and guide by Soren Birk//
**Tested with:**
* OPSI 4.0.4.2
* Winst 4.11.3.11
* Windows 7, 64-Bit
**Instructions:**
* Create the fzdefaults.xml-file from the template at the bottom of the page.
* This will disable auto-update.
* You can also preconfigure FTP-connections from the template - just remove the comment-marks ().
**Tree:**
CLIENT_DATA
├ setup.ins
├ uninstall.ins
├ delsub.ins
├ filezillalogo.png
├ FileZilla_X.X.X_win32-setup.exe
└ fzdefaults.xml
==== setup.ins ====
; Author Soren Birk
[Actions]
requiredWinstVersion >= "4.11.2.6"
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir$
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
Set $ProductId$ = "filezillaclient"
Set $MinimumSpace$ = "25 MB"
Set $InstallDir$ = "%ProgramFiles32Dir%\FileZilla FTP Client"
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "There is not enough diskspace on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% is needed for " + $ProductId$
isFatalError "Not enough diskspace"
; Stop the process and set status as failed
else
comment "Display productlogo"
ShowBitmap "%ScriptPath%\filezillalogo.png" "Filezilla FTP Client"
if FileExists("%ScriptPath%\delsub32.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub32.ins"
endif
Message "Installing " + $ProductId$ + " ..."
comment "Start setup-program"
ChangeDirectory "%SCRIPTPATH%"
Winbatch_install
Sub_check_exitcode
comment "Copying files"
Files_install /32Bit
endif
[Winbatch_install]
"%ScriptPath%\FileZilla_X.X.X_win32-setup.exe" /S
[Files_install]
copy -s "%ScriptPath%\fzdefaults.xml" "$InstallDir$"
==== uninstall.ins ====
; Author Soren Birk
[Actions]
requiredWinstVersion >= "4.11.2.6"
DefVar $UninstallProgram$
DefVar $LogDir$
DefVar $ProductId$
DefVar $InstallDir$
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the folling values -
; ----------------------------------------------------------------
Set $ProductId$ = "filezillaclient"
Set $InstallDir$ = "%ProgramFiles32Dir%\FileZilla FTP Client"
; ----------------------------------------------------------------
comment "Display productlogo"
ShowBitmap "%ScriptPath%\filezillalogo.png" "Filezilla FTP Client"
Message "Uninstalling " + $ProductId$ + " ..."
if FileExists("%ScriptPath%\delsub32.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub32.ins"
endif
==== delsub.ins ====
; Author Soren Birk
Set $UninstallProgram$ = $InstallDir$ + "\uninstall.exe"
Message "Uninstalling " + $ProductId$ + " ..."
if FileExists($UninstallProgram$)
comment "Found the program for uninstallation, will start uninstall"
Winbatch_uninstall
sub_check_exitcode
endif
comment "Deleting files"
Files_uninstall /32Bit
[Winbatch_uninstall]
"$UninstallProgram$" /S
[Files_uninstall]
del -sf "$InstallDir$\"
==== fzdefaults.xml ====
1