Phill_Perryman
Posts: 25
Joined: Thu Feb 15, 2007 5:55 pm

How to stop update displaying the up to date message

When I run updater with the checknow option it puts up a message saying the application is up to date when it does not find anything. Can I supress this message. I have tried the silent install but that also skips out the screen showing the user the update messages and new feature information. My application also requires the user to download various config files every 30 days and when they get the you are up to date message they think they don't need to do this. The users are not aware enought to understand the difference between the application software is up to date and the configuration files are not.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The /checknow command line switch is to be used only when the user explicitly wants to check for updates. For example when the user clicks on a menu named "Check for Updates...".

To check silently for updates at a specified interval of time then /silent command should be used. In this case the Updater will search silently for updates and show the available updates if exist.

So in your case the /silent command should be used.

If this does not help you then please give me more details.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phill_Perryman
Posts: 25
Joined: Thu Feb 15, 2007 5:55 pm

/silent interrupts the users work

My problem is that the user starts my application which is used to download a whole bunch of files to their local machine in order that they can run the application offline. In checknow mode it finds the update and notifies them of something to install within a few seconds. Also it puts up an annoying dialog box they have to clear down when no updates are required. It is also confusing as the purpose of the program is to update the local files (or software as most of them regard it). So then some of them don't run the menu option to update as it just told them they are up to date.

So I investigated /silent. Now the problem there is all it does is put an icon in the task bar and starts downloading the update. My user now runs the synchronisation menu action and it starts downloading my application files to the local cache. Sometime during the middle of this synch the updater finishes downloading (which takes a while for a 3Mb update file) and then wants to shut the application down in the middle of its run so it can install the update.

So ideally I want the functionality of checknow when there is an update available so the user knows an update is on the way and will not start doing anything else but the ability of /silent to not disturb them with a confusing message when there is nothing for update to do.

Also sometimes the update can't close the app as it is so io bound so it ends up wanting to restart the pc. This means the synchronisation completes using the old version of the application but the machine restarts with the new version.

I want something like /checknow -noUpToDateMessage

So all I really wanted was an immediate notification if an update is pending (just like checknow does) but want it to remain silent if there is nothing to do.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
So all I really wanted was an immediate notification if an update is pending (just like checknow does) but want it to remain silent if there is nothing to do.
Then use /silent -nofreqcheck command line. If the -nofreqcheck switch is specified in the updater's command line, the frequency check is skipped

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phill_Perryman
Posts: 25
Joined: Thu Feb 15, 2007 5:55 pm

can't get it to work

I created a shortcut to updater for testing. When I run with

"C:\Program Files\mitel\mpt\updater.exe" /checknow

It opens a dialog box allowing me to choose the update etc. I cancelled the box. I then run with

"C:\Program Files\mitel\mpt\updater.exe" /silent -nofreqcheck

And absolutely nothing happens.


[General]
ApplicationName=MPT
ID={78C2825E-1A8B-4EFD-81E2-BDD4C9DB6ECD}
DownloadsFolder=C:\Program Files\Mitel\MPT\updates\
AppDir=C:\Program Files\Mitel\MPT\
CheckFrequency=1
CompanyName=Mitel
URL=http://www.ebiz.mitel.com/mpt/test_1_64_00/updates.aiu
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I'm sorry, I was wrong, the -nofreqcheck switch is designed to be used only with the /silentall and /silentcritical command line options.

If you want to skip the frequency check you can put 0 in the updater.ini file like this:

Code: Select all

CheckFrequency=0
Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phill_Perryman
Posts: 25
Joined: Thu Feb 15, 2007 5:55 pm

Can I request a feature update for a future release

Add a switch to the updater command line which supresses the "your software is up to date message" when a /checknow is used and no updates are found.

I got the silent bit to work but it does not solve the problem as the user knows nothing about the update until it has finished downloading by which time they are well into the application. Then the update runs and terminates the program potentially leaving partially written xml files which then become unparseable. So I will have to stick with checknow to prevent them starting a long job when an update is pending.

Return to “Common Problems”