arbitmcdonald
Posts: 2
Joined: Wed Apr 15, 2020 4:33 pm

Configure updater using custom dialog

I am currently trialling AI so that I can produce a business case to move away from the WiX toolset. So far I have been extremely impressed and am eager to present this case to management.

One issue I'm having is understanding how the updater is configured. For example, I have added a checkbox to a custom dialog labelled 'Enable automatic updates'. I would like to disable the updater if the user unchecks this box during the installation.

I have created a project that utilises the updater along with the updater service so that we can install patches with elevation (the service app is install for the machine and runs as LocalSystem).

Should I simply disable the updater service using a custom action? From what I can see, the Scheduled Task executes the updater executable in the application directory, so would this be sufficient?

N.B. everything else is working perfectly, including the automatic updates. I'd just like our customers to be able to disable the updater during the installation.

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

Re: Configure updater using custom dialog

Hello and welcome to our forums,

We apologize for such a delayed reply, but we had several days off here (national holidays) and now we are a bit stuck.

To achieve what you need you can try to simply condition the installation of the Updater component.

Just go to "Files and Folders" page, right click on the Updater.exe and choose "Go To Component" context menu option. Then in "Organization" page, on the selected updater component add a condition like this:

Code: Select all

CHECKBOX_PROP
where CHECKBOX_PROP is the property associated to your checkbox control.

Let us know if this does not work for your scenario.

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

Return to “Building Installers”