Automated install

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
freeosk
500 Command not understood
Posts: 2
Joined: 2012-01-30 18:44
First name: John
Last name: Pitz

Automated install

#1 Post by freeosk » 2012-01-30 19:02

Hello,

I am working for a small company that would like to use FileZilla server on a windows 7 embedded machine and I was wondering if there is any way to automate the installation of FileZilla, either by using command line arguments to the installer, or if need be by copying the installation directory? If I need to copy the installation directory how do I get FileZilla to launch on each reboot?

By the way, we need to do this hundreds or thousands of times with each installation identical.

Thank you

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Automated install

#2 Post by botg » 2012-01-30 20:52

The server installer should support the /S argument which turns on silent installation.

freeosk
500 Command not understood
Posts: 2
Joined: 2012-01-30 18:44
First name: John
Last name: Pitz

Re: Automated install

#3 Post by freeosk » 2012-01-31 15:20

Thank you. I was trying /s. This is working much better.

soccerno16
500 Command not understood
Posts: 5
Joined: 2014-01-13 14:31

Re: Automated install

#4 Post by soccerno16 » 2014-01-13 14:37

Can the listening port be modified from the command line installer? or post installation programatically?

What about user account creation from the command line? or post installation programatically?

User avatar
boco
Contributor
Posts: 26912
Joined: 2006-05-01 03:28
Location: Germany

Re: Automated install

#5 Post by boco » 2014-01-13 20:20

Modify the "FileZilla Server.xml" file directly and call "FileZilla Server.exe /reload-config" afterwards.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

soccerno16
500 Command not understood
Posts: 5
Joined: 2014-01-13 14:31

Re: Automated install

#6 Post by soccerno16 » 2014-01-13 22:46

Thanks for the response, that should work nicely.

I assume that restarting the server (service) would similarly re-import the xml configuration?

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Automated install

#7 Post by botg » 2014-01-14 07:07

Yes.

soccerno16
500 Command not understood
Posts: 5
Joined: 2014-01-13 14:31

Re: Automated install

#8 Post by soccerno16 » 2014-01-14 20:50

When performing a "silent" install /S the Filezilla Sever Interface application is still executed. Is there a way to prevent this?

Additionally, I'm trying to write an automated uninstall. I've decided to use the approach document here:
http://www.codeproject.com/Tips/428199/ ... ly-with-WM

Note that I had to modify the reference code to search through Win32_Service rather than Win32_Product to find "Filezilla Server"

Code: Select all

Uninstall3Program("FileZilla Server");

//...

public static bool Uninstall3Program(string ProgramName)
{
    try
    {
        ManagementObjectSearcher mos = new ManagementObjectSearcher(
          "SELECT * FROM Win32_Service WHERE Name = '" + ProgramName + "'");
        foreach (ManagementObject mo in mos.Get())
        {
            try
            {
                if (mo["Name"].ToString() == ProgramName)
                {
                    object hr = mo.InvokeMethod("Uninstall", null);
                    return (bool)hr;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Failed to uninstall " + ProgramName + " - " + ex.Message);
                //this program may not have a name property, so an exception will be thrown
            }
        }

        //was not found...
        return false;

    }
    catch (Exception ex)
    {
        return false;
    }
}
However it appears that neither the installation executable FileZilla_Server-0_9_43.exe nor the FileZilla Server.exe have an invokable /uninstall class. Any suggestions?

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Automated install

#9 Post by botg » 2014-01-14 22:09

To uninstall the FileZilla Server service, call FileZilla Server.exe with the /uninstall parameter.

soccerno16
500 Command not understood
Posts: 5
Joined: 2014-01-13 14:31

Re: Automated install

#10 Post by soccerno16 » 2014-01-15 14:05

botg wrote:To uninstall the FileZilla Server service, call FileZilla Server.exe with the /uninstall parameter.
This function appears to uninstall the service only and not the application assuming the application is not currently running. I would like to uninstall the entire application including service and directory.

soccerno16
500 Command not understood
Posts: 5
Joined: 2014-01-13 14:31

Re: Automated install

#11 Post by soccerno16 » 2014-01-16 15:32

So silly me there's an uninstall.exe inside the FileZilla Server directory which I can call programatically. Since a Microsoft Installer isn't used, FileZilla isn't listed in the Win32_Product class and the previous method cannot be used. I went through the registry to find out how the uninstallation worked and found the following simply solution.

C:\Program Files (x86)\FileZilla Server\Uninstall.exe


I would still like to know if there is a way to prevent the FileZilla Server Interface application from opening upon installation if possible?

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Automated install

#12 Post by botg » 2014-01-16 21:17

If using silent install, only by modifying the registry after setup.

Kid_Deceiver
500 Command not understood
Posts: 2
Joined: 2014-02-17 11:27

Re: Automated install

#13 Post by Kid_Deceiver » 2014-02-17 11:41

I'm also trying to build automatic silent installer of FileZilla Server.

Has met the same problem as above during tests.

Running installer with /s option places also FIleZilla Server Interface (FZSI) to Autostart folder. It is not a problem to correct the setting in the Registry afterwards. But the installer also starts FZSI during installation ("Connect to server" dialog window appears).

This event obviously confuses the user, especially if installing FileZilla is only a part of a large installation sript (where user does not care about such "thin" details as "server IP" etc.).

So my questions are:
1. Is there a way to suppress FZSI startup during silent installation procedure?
2. Does FZS installer support /user=all command line option (have seen a mention about that somewhere in FZ forums, but not sure).

Thanks in advance.

User avatar
botg
Site Admin
Posts: 35507
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Automated install

#14 Post by botg » 2014-02-17 19:10

Kid_Deceiver: No and no. The second one applies to the client's installer.

Kid_Deceiver
500 Command not understood
Posts: 2
Joined: 2014-02-17 11:27

Re: Automated install

#15 Post by Kid_Deceiver » 2014-02-18 04:43

Thanks for the prompt answer.

I shall try to find out a kind of hack to get rid of FSZI, but have not too much hope to succeed. :)

Post Reply