Auto updater - 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!

FGump
Posts: 65
Joined: Thu Jan 05, 2006 7:23 pm

Auto updater

Hello, I have a questions regarding how I should use/create a setup for an auto update. Currently, I have an AI install that has some prerequisites. By having these, AI requires I have a boot strap EXE. Also within my setup are some chained MSI's. My overall setup files are an EXE, INI, MSI, and CAB file. Based on what type of setup is performed, "Typical", "Custom", or "Complete", depends on what files and/or chained MSI's get run.

I recently told AI to put all the files (MSI, CAB, etc...) into one EXE so that it could be downloaded for an auto update from within my application. However, I ended up not releasing this because when the setup will run, some users are to only install the "Typical" setup, while some other are to do a "Complete". So, I was thinking that perhaps I should be making a "Patch" installation rather than a full setup again. With the Patch I really only need to update the main application EXE.

Would it be best to create/use a patch install (since it's smaller too) or somehow detect how the existing application is installed and bypass that "Select setup" screen? Not sure how to bypass that if needed. Will the patch setup run just like a normal setup and simply update my program as well as the add/remove programs with the latest information (i.e. the title of my app is like My Application v2.2.6 and that should then be My Application v2.2.7 after the patch).

Thank you,

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

Re: Auto updater

Hello,
Hello, I have a questions regarding how I should use/create a setup for an auto update.
Here is the tutorial which should get you started with understanding the basics of the auto-updater.
Would it be best to create/use a patch install (since it's smaller too) or somehow detect how the existing application is installed and bypass that "Select setup" screen?
The "SetupTypeDlg" is not part of the patch dialog sequence and creating a patch will also require you to build the upgraded project.

If you are planning to make just a few changes to your old install then you can use a patch. Here is the patch tutorial which can help you understand how patches work before implementing the functionality into your main project.
If you are planning to bring major modifications to your project, then you should create a major upgrade.

Also, here is an article with a comparison between patches and upgrades so you can decide what suits your situation best.

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

Return to “Common Problems”