netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Auto Updater /silentall no longer installs silently

Running the /silentall flag on the Updater with -nogui or -reducedgui does not run the patch in silent mode. The patch is a msp file. It is set on the Updater as a patch, not a full package. Instead I get the full wizard as if I directly double clicked on the patch. I have confirmed the following things.

1. The patch can be ran from Windows or from msiexec. This starts the installation wizard.
2. The patch can be ran in silent mode from msiexec if the command prompt is ran as an administrator. The wizard does not appear.
3. The patch can be ran from the Updater in /justcheck mode. This starts the installation wizard.
4. The patch can be ran from the Updater in /silentall mode. This starts the installation wizard instead of silently completing it as expected.
5. Have attempted to run the Updater on /silentall mode using a command prompt started as an administrator. Wizard still appears.

I am presently running v13.8.1, the last time I have tested that the behavior was working was when I was still running v13.5. I do not have the old environment anymore and neither do I still have the old installers saved.

Please advise on what are the possible things I can look out for to troubleshoot this. Thank you.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto Updater /silentall no longer installs silently

Hello,

The Updater will install the patch silently if you set in the updates configuration project -> "Updates" page -> "Updater Installer" tab -> "Command Line" field a silent command, for instance:

Code: Select all

/qn

As you already saw, to install the patch silently the installation process needs to run elevated.

A solution is to create a shortcut to your "Updater.exe" from "Files and Folders" page and check the "Run as administrator" checkbox in the "Shortcut Properties" Dialog. Another possible solution is to use our "Install without elevation" option when you are configuring the "Updates Configuration" project. You can find more details in our "Handle updates without elevation" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Re: Auto Updater /silentall no longer installs silently

Hi Daniel,

Finally had the time to try this out. Setting the following setting does indeed force the patch and full exe to install in silent mode.
The Updater will install the patch silently if you set in the updates configuration project -> "Updates" page -> "Updater Installer" tab -> "Command Line" field a silent command, for instance:

Code: Select all

/qn

However the "Install updates without elevation" setting is already checked on my updates project and the required supporter service is also installed as part of the main exe. Does this mean I have a misconfiguration somewhere or is there a bug?

2 side questions.
1. One of our clients has a policy where their admin account password changes daily. Will this affect the supporter service?
2. I have a small agent program that runs the updater exe and does some actions based on the return code. Instead of the codes specified in http://www.advancedinstaller.com/user-g ... dater.html being returned it is receiving a code of 12029 or 2EFD after conversion to hexadecimal. Is this a bug? What can I do to troubleshoot this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto Updater /silentall no longer installs silently

Hello,
However the "Install updates without elevation" setting is already checked on my updates project and the required supporter service is also installed as part of the main exe. Does this mean I have a misconfiguration somewhere or is there a bug?
No, there is no bug. It is a misconfiguration. When using the "Install updates without elevation" option it is mandatory to also set a silent command line, otherwise the above option will be ignored.
2 side questions.
1. One of our clients has a policy where their admin account password changes daily. Will this affect the supporter service?
No, this should make no difference.
2. I have a small agent program that runs the updater exe and does some actions based on the return code. Instead of the codes specified in http://www.advancedinstaller.com/user-g ... dater.html being returned it is receiving a code of 12029 or 2EFD after conversion to hexadecimal. Is this a bug? What can I do to troubleshoot this?
Please note that besides the Updater proprietary error codes the Updater also returns Windows system specific error codes. In your case the related exited error is the "ERROR_INTERNET_CANNOT_CONNECT" error.

Code: Select all

12029
The attempt to connect to the server failed.
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Re: Auto Updater /silentall no longer installs silently

Hi Daniel,

Thank you and noted on all of the above. My error was due to a broken HTTPS URL link in the installer which it is now returning the proper return code after it is resolved.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto Updater /silentall no longer installs silently

Thank you for your follow up.

I'm glad you got this solved.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”