Silent updates for server - Advanced Installer Community
theBuildMan
Posts: 8
Joined: Sat Jan 31, 2015 9:52 pm

Silent updates for server

I've been searching the boards the help documentation to try to figure out how we can setup automated, silent updates for our servers. We have some tools that are used by both users with normal desktop interaction and by our servers for command line use. Updates on the user machines are working fine. But I'm having trouble trying to get the updater to properly install with a silent check and install.

Our setup uses the bootstrap EXE + MSI.

I have tried the following:
updater.exe /silentall -nofreqcheck
The main installer GUI still shows. Just the updater.exe GUI is minimized.

updater.exe /silentall -nofreqcheck -nogui
This properly hides the updater.exe GUI entirely, but the main installer GUI still is shown.

Added /exenoui /qn to my updates.txt file and used the above command lines and for all permutations the installer is shown.

I would have expected the /silentall to be fully silent check, download and install but apparently it is not. Is it possible to configure the updater so that I can do normal installs on user machines and fully silent installations on servers?

I know how to use /checknow and read the return value then launch my own command line "setup.exe /exenoui /qn". I was hoping to avoid writing the extra code and just let the updater.exe handle it all for me.

Thanks for any tips on this.
david
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent updates for server

Hi David and welcome to Advanced Installer forums.

In order to install your updates completely silent, you need to use the "/silentall" command for the updater and the "/exenoui /qn" commands for the installer (only "/qn" if it is an MSI package). The commands for the updater are set depending on the options that you check in the "Update Behavior" section from the "Updater" page and the commands for the installer can be set in the "Updates Configuration File" project.

If the installer requires elevation when you install it on the server, the installation will fail in silent mode because the UAC prompt is not displayed, so you can give it the necessary rights. In this case, you can use the method described in the "How to handle updates without elevation" tutorial.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
theBuildMan
Posts: 8
Joined: Sat Jan 31, 2015 9:52 pm

Re: Silent updates for server

Thanks Eusebiu for the quick reply.

How can I support silent install on my servers but normal GUI install for my users? Can I do that from 1 updater/update.txt file? At the moment I think I will need to do the following from my server:

1. updater.exe /justcheck
2. if update available manually call setup.exe /exenoui /qn

I wish that updater.exe /silentall would just do the update check and run the installation fully silently. Then I could use normal updater.exe runs for GUI users and updater.exe /silentall for servers.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent updates for server

Hi,

In order to achieve this, you need two "updater.txt" files and you can follow the steps below:
- create one "updater.txt" file from an "Update Configuration" project that has the "Install update without elevation" option checked
- duplicate that file and remove the following lines from one of them:
  • NoGUICommandLineSwitch = /exenoui /qn
    Flags = Advertises
- place both files on your server (you will have a different URL for them)
- in the "Updates configuration file URL" field from the "Updater" page of your project introduce the URL to the "updater.txt" file that does not contain the above lines (that will be accessed by the users to update your application with UI)
- check the "Install support services" option in the same page
- when you want to install updates on your server, you need to call the "updater.exe" file with the following command line: Let me know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
theBuildMan
Posts: 8
Joined: Sat Jan 31, 2015 9:52 pm

Re: Silent updates for server

Thanks. This makes sense. We will look at this solution vs. using two command lines updater.exe /justcheck followed by setup.exe /exenui /qn. We'll see which of these two approaches works best for us. Thanks again!

-david
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Silent updates for server

You're welcome David.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”