configure updates.ini for non-continuous updates - 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!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

configure updates.ini for non-continuous updates

G'day

I'm using AI 7.7 build 28804

I have enabled the auto-updater for my project and it is working fine. My download server contains a single, global "updates.ini" file to which I occasionally add new updates.

Suppose that my updates.ini file contains the following:

Code: Select all

1.3 (updates 1.0, 1.1, and 1.2)
1.2 (updates 1.0 and 1.1)
1.1 (updates 1.0)
I then create version 2.0 of my product, which is incompatible with the 1.x code-base (for whatever reason). The 2.0 version will be available for direct (manual) download from my website, but I will specifically not add it to the updates.ini file because users should not be allowed to upgrade from 1.x to 2.0

When I am ready with version 2.1, how can I add that to the same global updates.ini file such that 2.1 will update users who are running 2.0 but not update users who are running 1.x ?

I don't think the "Depends" property is suitable for this situation, since there is no 2.0 update on which the 2.1 update could depend...

I am also aware of the "Replaces" property, but that also seems inappropriate to use in this situation, since my 2.1 update would not replace any prior/existing updates...

I realize that I could maintain two different "updates.ini" files, one for the 1.x code-base and one for the 2.x code-base, which should solve my problem. However, we were hoping to avoid that situation and only maintain a single, global "updates.ini" file on the download server (which I believe is what Caphyon does for Advanced Installer updates).

Any help you could provide on this matter would be greatly appreciated.

Thanks very much,
-Todd
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: configure updates.ini for non-continuous updates

I forgot to mention that I am calling the updater.exe with the following flags:

Code: Select all

/silentall  -nofreqcheck
I specifically do not want to show the "Updates Found" dialog; I do not want to burden users with deciding which version to update to (prefer to just handle it silently for them).

Thanks,
-Todd
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: configure updates.ini for non-continuous updates

Hi Todd,
When I am ready with version 2.1, how can I add that to the same global updates.ini file such that 2.1 will update users who are running 2.0 but not update users who are running 1.x ?
Here is a solution that you can try if you haven't delivered yet version 2.0 to your customers:
-- in the updates configuration project you can select under Installed Detection "running a custom EXE"
This option will allow you to place in version 2.0 and future ones an EXE file made by you that will handle the updates detection. The updater runs the executable
and uses the exit code to determine if the update is installed or not. Set the exit code to be different from zero if the update is already installed, otherwise set to zero. Here you can read more.

The EXE needs to already exist on the machine, that is why you need to deploy it with version 2.0 of your package.

Please let us know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: configure updates.ini for non-continuous updates

Hi Bogdan,

Thanks for your reply and suggestion.

I'd like to keep our update process simple, so I am reluctant to write a custom EXE - it seems like I'd just be duplicating a large part of what the AI updater.exe already does, except that I'd add logic for parsing an additional field (custom field that I would added, something like "UpgradableFrom") in the updates.ini file.

I guess I'll just maintain multiple "updates.ini" files on my download server.

Thanks for your help,
-Todd
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: configure updates.ini for non-continuous updates

Hi Todd,

I've just talked to our developers and it seems there are some improvements in progress that will enter version 8.1 of Advanced Installer
that will help you easily accomplish what you desired in the beginning without the custom EXE.

Until version 8.1 is released you can continue using multiple "updates.ini" files.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: configure updates.ini for non-continuous updates

Sounds good - I look forward to the enhancements. Thanks for letting me know.

-Todd

Return to “Common Problems”