Updating one of multiple EXEs - Advanced Installer Community
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Updating one of multiple EXEs

I'm using AI Professional 11.0 build 55831.

My installation currently installs the following:

1. Main Application
2. Multiple Small Utility Applications (i.e. - a data converters)
3. Various Pre-requisites (i.e. - Visual Studio redistributables, etc.)

I use a single install that installs everything and that works just fine.

I'm also using the AI Update feature to provide updates. The update feature is based upon looking at the version number of my Main Application's EXE. If there is a newer version available, it downloads the new install and installs it. That all works fine.
Image2.jpg
Image2.jpg (25.13 KiB) Viewed 4532 times
My question though is how best to handle the situation where there is a new version of one of the Utility Applications but the Main Application hasn't changed. Since the update mechanism is based upon the version number of the Main Application (which hasn't changed), it doesn't know there is something new that needs to be downloaded and installed.

I could recompile the Main Application solely in order to bump the version number of it so the updater would pick it up but that seems a pain just to get a new Utility Application installed.

Is there a better way for me to do this with AI Pro so I can trigger the update if ANY of the applications have changed?

I realize that perhaps with Enterprise I could maybe do a "patch" that would be do this but I'd rather not have the upgrade expense to Enterprise if there's a way to do it with Pro.

Thanks,
Phil
congnt92
Posts: 57
Joined: Wed Apr 16, 2014 7:53 am

Re: Updating one of multiple EXEs

I call your Multiple Small Utility Applications is module. I think we have 2 ideas to resolve your issue.
1st idea) We'll creat 2 updater.exe file. One for main app and one for module. Not difficult to do that, but it isn't professional to check for update. Because we must run each updater.exe file to check for each update.
2nd idea) You build the first .exe file to setup main app and build the second .exe file to setup your module. Your module will be install with main app at the same time by adding a custom action to run it or install it like a prerequesites of your main app, ...
The installation of main app will write regedit key is HKUD\Software\Your company\Your Main App Name\Version (i.e 1.1)
The installation of Module will write regedit key is HKUD\Software\Your company\Your Module Name\Version (i.e 1.1)
next, you make a update configurations file which contents

Code: Select all

;aiu;

[Update your main app]
Name=xxx
ProductVersion=1.1
URL=xxx
Size=xxx
ServerFileName=mainapp.exe
RegistryKey=HKUD\Software\Your Company\Your main app Name\Version
Version=1.1

[Update your module]
Name=Module
ProductVersion=1.1
URL=xxx
Size=xxx
ServerFileName=setupmodule.exe
RegistryKey=HKUD\Software\Your Company\Your Module Name\Version
Version=1.1
When your module has new version but your app has no change, you just only change these line in your update.txt file for [Update your module], i.e
the productversion =1.2
url =yyy
size =zzz
version =1.2

Finally you reup your update.txt file with changed to your server.
Run the updater.exe and enjoy.

And at other time, if both of your main app and module have new version, you must change some lines which I list abover at all of [Update your main app] and [Update your module].
Hope it work for u :)
P/s:
May you see something in here, http://www.advancedinstaller.com/user-g ... pdate.html. See Add the second update, Add the third update for more detail. The idea that I suggest for you base on it. Goodluck
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updating one of multiple EXEs

Hello Phil,

In order to achieve what you want you can use another detection criteria for your updates (e.g. a registry value search by your ProductVersion - stored in the registries). Then, you should increase the "ProductVersion" field from "Product Details" page, every time when you want to build an installation package for your updates. You have two options: you can build the updates package as a major upgrade or as a patch.

As you already noticed, our "Creating Patches" support is available only starting with an "Enterprise" project type or higher. Also, please keep in mind that when creating patches you should carefully follow the patches rules.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pdm1999
Posts: 15
Joined: Mon Jan 07, 2013 5:57 pm

Re: Updating one of multiple EXEs

Thanks Daniel
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updating one of multiple EXEs

You're welcome Phil.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”