Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:filezilla_client [2014/01/27 14:46]
bobzbobz created
userspace:filezilla_client [2014/01/27 14:57] (current)
bobzbobz
Line 21: Line 21:
   ├ FileZilla_X.X.X_win32-setup.exe   ├ FileZilla_X.X.X_win32-setup.exe
   └ fzdefaults.xml   └ fzdefaults.xml
 +</​code>​
 +
 +==== setup.ins ====
 +<code winst>
 +; 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$"​
 +
 +</​code>​
 +
 +==== uninstall.ins ====
 +<code winst>
 +; 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
 +</​code>​
 +
 +==== delsub.ins ====
 +<code winst>
 +; 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$\"​
 +</​code>​
 +
 +==== fzdefaults.xml ====
 +<code 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>​
 </​code>​ </​code>​

QR Code
QR Code userspace:filezilla_client (generated for current page)