Updater arguments - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bvelke
Posts: 67
Joined: Fri Jun 10, 2011 6:36 am

Updater arguments

There are two ways in which I want to run the Updater:

1) If the user choose "Check for an Update" from our menu. I do not want it to be affected by the frequency check that is built into Updater.exe. So I'm specifying /checknow and that works fine.

2) When my application starts, I decide if enough time has passed since the last check and, if so, I call the Updater. My decision is based on a frequency that is specified by the user in my application. So again, I do not want it to be affected by the built-in frequency-check. I want it to check every time that I call Updater.exe.

In this case, if an update is available, I want it to prompt the user, etc., just as in the case above. But if there is no update available, I want it to say NOTHING. I don't want a "Your software is up-to-date" dialog or anything else.

So I thought that I should use /checknow /silent. But that still gives me a "Your software is up-to-date" dialog.

According to the help file, /silent by itself is subject to "the interval specified by the user".

But -nofreqcheck" can apparently only be used with the /silentall and /silentcritical.

I would I use /justcheck and, if there is an update, I'd call it again with /checknow. But I'm calling Updater.exe through ShellExecuteA in my environment and I don't seem to have access to the return code.

Is there another way to get Updater.exe to be completely silent when there is no update and to prompt the user when there is one?

Thanks.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Updater arguments

Hello,
Is there another way to get Updater.exe to be completely silent when there is no update and to prompt the user when there is one?
You can try to use /checknow option with -minuseractions switch.

In another scenario you could use either /silentall or /silentcritical options.

You can read more about updater's entire supported functionality in this user guide article.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”