Update Execution and Update Behavior? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Update Execution and Update Behavior?

Hello,

As in the title, what is the difference between the two? In Update Execution's Configure Task you can set the Schedule Task Daily with number of days. At the same time the Update Behavior's Silent mode update check frequency also has the number of days. What is the difference here? If I want the updater to run every 2 days silently, where do I have to give the number of days?

Furthermore, will the silent update automatically check for updates if the Update Execution was set to Manual?

:lol:
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update Execution and Update Behavior?

Hello,
As in the title, what is the difference between the two? In Update Execution's Configure Task you can set the Schedule Task Daily with number of days. At the same time the Update Behavior's Silent mode update check frequency also has the number of days. What is the difference here? If I want the updater to run every 2 days silently, where do I have to give the number of days?
In order to achieve that, you can go in the Schedule Settings tab and select for the Schedule Task Daily option every 2 days.
Also you can set 0 days for the Silent mode update check frequency option.
Furthermore, will the silent update automatically check for updates if the Update Execution was set to Manual?
No, silently check for updates option will not automatically check for the updates unless you launch the installed Updater file. Also, if the check frequency has not passed or there are no updates available, the Updater will exit immediately.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Update Execution and Update Behavior?

Hello,

Thanks for your support so far. This is the "updates.txt" file I am using,

Code: Select all

;aiu;

[MySoft]
Name = MySoft
URL = http://www.example.com/download/MySoft-setup.exe
Size = 20480
Description = This is the latest version of MySoft
FilePath = %AppData%\MySoft\MySoft_add-in.dotm
Version = 1.1.0
The file size is 2.39 MB. This does not seems to work. It downloads but does not install silently (do not install at all). I get the following error message,

Image

?
K
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Update Execution and Update Behavior?

Hello,

Based on my question above the updater worked when the file size is given in bytes rather than kilo-bytes. However, it is not running silently. When the new installer is executed, it shows its welcome page on screen rather than silently updating. How to make it silent?

Regards

Muhriz
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update Execution and Update Behavior?

Hello Muhriz,
How to make it silent?
In order to achieve that you can go in the Update Properties tab and in the Command Line from the Update Installer add the /qn parameter for a MSI update. This will make it install silently, without any UI. If you have an .EXE update then you can use /exenoui /qn command lines parameters.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Update Execution and Update Behavior?

Hello,

Thanks for the help.
In order to achieve that you can go in the Update Properties tab and in the Command Line from the Update Installer add the /qn parameter for a MSI update. This will make it install silently, without any UI. If you have an .EXE update then you can use /exenoui /qn command lines parameters.
Will this be always silent or only when it is run through the updater? Will this also make it silent when run manually instead of the updater?

:)
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update Execution and Update Behavior?

Hello Muhriz,

The updates will always be installed silent when they run through the updater.

If you want to install your .MSI update silent when using the command line, then you can use the /qn command line parameter. You can take a look on the Msiexec.exe Command Line article.

If you have an .EXE update then you can go in the Media page and add the /qn command line parameter in the MSI Command Line from the Bootstrapper Options pane.
Also, you should select the Silent Install ( no UI ) option for the UI Level from the Boostrapper UI.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Update Execution and Update Behavior?

Hello,

Thanks for your support and help so far. It was really useful. Let me explain the situation. I have created an installer for a Word Add-in (dotm). The installer only has the Word Add-in (dotm) and few icons and the files goes to [AppDataFolder][Manufacturer]\[ProductName]. The installer is set to check for updates everyday at a given time and this is how the settings are given,

Image

However, this did not install the update silently. It did download correctly but it always showed the Welcome dialog instead of installing silently. So, I made two versions of the same installer (For example version 1.0.0 and version 1.0.1). The ones that will be in the website will be silent one (version 1.0.1). Which means it will have the /qn command line parameter. This too works fine. It is downloaded and it is installed silently. However, after the installation is over I get this message,

Image

This does not happen when I run the silent installer (version 1.0.1) manually. This message only occurs when the installer (version 1.0.1) is downloaded by the updater and installed. Below is the updater text file used,

Code: Select all

;aiu;
        
[MySoft]
Name = MySoft
URL = http://www.example.com/files/setup.exe
Size = 6869761
RegistryKey = HKLM\Software\MyCompany\MySoft\Version
Version = 1.0.1
How to prevent the installer from showing this message,

Image

:?:
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update Execution and Update Behavior?

Hello,

If the update is complete and you get that message, then you are using an incorrect detection criteria. This criteria is usually a file or a registry entry which contains the package version . Advanced Updater verifies this condition first to see if the update is already installed or not and after installation to see is the update was installed correctly. If not, it will prompt that message. Therefore, you need to make sure that you specified a correct file or registry entry in the Installed Detection section of the Update Properties tab.

You can also take a look on the Upgrade FAQ's article which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Update Execution and Update Behavior?

Hello,

Thanks for your support until now. Since my installer's main file is DOTM (Word Add-in) file, this does not have any version numbers to read. I believe this may be the reason why I get the error at the end of auto-update installations. If I go to the DOTM file's Properties and the Version tab, then change it to Make the file companion of: and select updater executable. Will this work to identify the file version?

:)
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update Execution and Update Behavior?

Hello,

Please note that the File Version option will be used during the installation to determine the install and overwrite priority for unversioned files. Note that this version will not affect in any way the file's internal version.
Also the recommended method for a Installed Detection criteria is to use the Registry Value Search. By selecting this option, the install detection will be performed by running a registry value search.

So,in the installation package you create a registry entry which contains the version of the package (you can use the ProductVersion property).
This way the Updater will verify which version of the package is installed.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Update Execution and Update Behavior?

Hello,

It was really helpful. Thanks for your support.

:D
K
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update Execution and Update Behavior?

You're welcome.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”