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!

Livesey
Posts: 12
Joined: Tue Apr 25, 2006 11:30 am

Auto updating

Hi

I have a java program installed with the installer and using the updater.

The problem is that in the configuration panel, ie. updater.exe /configure, the next update time always shows as the current time. Also, the auto-updater never seems to run so the program never automatically updates.

What is this caused by?

Thanks for the help,
Aubrey
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
The problem is that in the configuration panel, ie. updater.exe /configure, the next update time always shows as the current time.
What do you enter in the "Check Frequency" field?
Also, the auto-updater never seems to run so the program never automatically updates.
The Updater must be invoked from your application in order to check for updates. For an example of how the Updater can be integrated with a Java application, see this page:
http://advancedinstaller.com/user-guide ... -java.html

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Livesey
Posts: 12
Joined: Tue Apr 25, 2006 11:30 am

Doesn't the check frequency determine when the next check will be? No matter what value I insert into the field, the next check time is always the current time.

Surely the updater should should check every few days (the amount I have in my check frequency is 2 days) and this is part of the updater and not my application. What then is the purpose of the check frequency field?

These are 2 images that show what I am talking about:

Image

Image

Thanks,
Aubrey
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
Doesn't the check frequency determine when the next check will be?
Of course, but the Updater must be invoked from your application, as mentioned above. How, and when is the Updater launched in your program?
No matter what value I insert into the field, the next check time is always the current time.
This could happen if the Updater cannot access the following registry key:

Code: Select all

HKCU\Software\Caphyon\Advanced Updater\[ID]\Settings
where [ID] is the value of the "ID" key from the "updater.ini" file, which resides in the same folder where your application is installed, next to "updater.exe".

In order to figure out the cause of this problem, please export the contents of this key using "regedit". Send the REG file and the "updater.ini" file to support at advancedinstaller dot com.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Livesey
Posts: 12
Joined: Tue Apr 25, 2006 11:30 am

Hi
In order to figure out the cause of this problem, please export the contents of this key using "regedit". Send the REG file and the "updater.ini" file to support at advancedinstaller dot com.
I have sent an email with these files.
Of course, but the Updater must be invoked from your application, as mentioned above. How, and when is the Updater launched in your program?
I am able to launch the updater from my application (updater.exe /checknow), but do I need to do this for an auto update as well? What does the check frequency option do if I still have to check from my application?

If I say check every 2 days, do I still have to do something in my application to run the auto-update?

Thanks for all the help,
Aubrey
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
I am able to launch the updater from my application (updater.exe /checknow), but do I need to do this for an auto update as well?
Yes, you need to invoke the updater from your application.
What does the check frequency option do if I still have to check from my application?
The check frequency is used by the updater to decide when the next update check will be performed. When the updater runs, it will write the date and time of the next notification in the registry.
If I say check every 2 days, do I still have to do something in my application to run the auto-update?
Yes, the updater must be launched somehow. See this example:
http://advancedinstaller.com/user-guide ... -java.html

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Livesey
Posts: 12
Joined: Tue Apr 25, 2006 11:30 am

The check frequency is used by the updater to decide when the next update check will be performed. When the updater runs, it will write the date and time of the next notification in the registry.
This doesn't make sense to me. You are saying that the check frequency is used by the updater to check when the next update will happen, but then you say that I need to run the autoupdater from my application.

These 2 statements seem contradictory to me. If I need to launch the updater myself, then what is the point of the auto updater.
Yes, the updater must be launched somehow. See this example:http://advancedinstaller.com/user-guide ... -java.html
There is no example in the above link of use with the auto-updater or check frequency.

Thanks,
Aubrey
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Note the following:

1. The Updater does not run as a service and it is not added as a scheduled task when the application is installed.

2. The Updater is not added to one of the auto-run locations (such as HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run) during the package installation.

Therefore, in order to check for updates it must be launched from time to time by any means (from your application, via a shortcut etc). When invoked, it will determine whether a check will be performed or not, based on the data that was written in the registry during the last invocation.
There is no example in the above link of use with the auto-updater or check frequency.
The example application shows how to launch the Updater in silent mode. Remember that this mode uses the defined "Check Frequency" parameter.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Livesey
Posts: 12
Joined: Tue Apr 25, 2006 11:30 am

I get it now. Thank you very much.
mmcgraw
Posts: 4
Joined: Thu Nov 02, 2006 7:41 pm

Ionut wrote:Hi,

The check frequency is used by the updater to decide when the next update check will be performed. When the updater runs, it will write the date and time of the next notification in the registry.

Regards,
Ionut
Our client is curious about the specific mechanics of the auto update notification frequency... If the frequency is set to 1 day (and the updater is being invoked by the app on startup), will auto update notifications occur once every 24 hours (at maximum), or will the next auto update notification happen after a specific time each day (say, at midnight)?

Thanks,
Mike
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If the frequency is set to 1 day the auto update notifications will occur once every 24 hours (if the updater is launched). For example if user starts the application the updater compare the system date with the one from registry (the date of the next notification) to see if its time to look for updates.

Kind Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”