Page 1 of 1

Automated install

Posted: 2012-01-30 19:02
by freeosk
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

Re: Automated install

Posted: 2012-01-30 20:52
by botg
The server installer should support the /S argument which turns on silent installation.

Re: Automated install

Posted: 2012-01-31 15:20
by freeosk
Thank you. I was trying /s. This is working much better.

Re: Automated install

Posted: 2014-01-13 14:37
by soccerno16
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?

Re: Automated install

Posted: 2014-01-13 20:20
by boco
Modify the "FileZilla Server.xml" file directly and call "FileZilla Server.exe /reload-config" afterwards.

Re: Automated install

Posted: 2014-01-13 22:46
by soccerno16
Thanks for the response, that should work nicely.

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

Re: Automated install

Posted: 2014-01-14 07:07
by botg
Yes.

Re: Automated install

Posted: 2014-01-14 20:50
by soccerno16
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?

Re: Automated install

Posted: 2014-01-14 22:09
by botg
To uninstall the FileZilla Server service, call FileZilla Server.exe with the /uninstall parameter.

Re: Automated install

Posted: 2014-01-15 14:05
by soccerno16
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.

Re: Automated install

Posted: 2014-01-16 15:32
by soccerno16
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?

Re: Automated install

Posted: 2014-01-16 21:17
by botg
If using silent install, only by modifying the registry after setup.

Re: Automated install

Posted: 2014-02-17 11:41
by Kid_Deceiver
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.

Re: Automated install

Posted: 2014-02-17 19:10
by botg
Kid_Deceiver: No and no. The second one applies to the client's installer.

Re: Automated install

Posted: 2014-02-18 04:43
by Kid_Deceiver
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. :)