Table of Contents

Filezilla Client

Scripts and guide by Soren Birk

Tested with:

Instructions:

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

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<FileZilla3>
    <Settings>
      <!-- 
      <Setting name="Config Location">$SOMEDIR/filezilla/</Setting>
      <Setting name="Kiosk mode">0</Setting> 
      -->
      <Setting name="Disable update check">1</Setting>
    </Settings>
    <!-- 
    <Servers>
        <Server>
            <Host>ftp.gnu.org</Host>
            <Port>21</Port>
            <Protocol>0</Protocol>
            <Type>0</Type>
            <Logontype>0</Logontype>
            <User>anonymous</User>
            <Pass>someone@example.com</Pass>
            <TimezoneOffset>0</TimezoneOffset>
            <PasvMode>MODE_DEFAULT</PasvMode>
            <MaximumMultipleConnections>0</MaximumMultipleConnections>
            <EncodingType>Auto</EncodingType>
            <Comments></Comments>
            <LocalDir></LocalDir>
            <RemoteDir></RemoteDir>Primary GNU download server
        </Server> 
    </Servers>
    -->
</FileZilla3>