Auto-update only when .Net Framework 4.7.2 is already installed - Advanced Installer Community
bljanssen
Posts: 4
Joined: Mon Feb 25, 2019 7:01 pm

Auto-update only when .Net Framework 4.7.2 is already installed

Hello,

Our program is a windows service and is currently deployed on customer servers and has .Net Framework 4.5.2 as a prereq. We are using the Task Scheduler method of auto-updating our program. The task is set to check Daily for updates. The latest version of our service now requires 4.7.2. Many of our customers do not already have 4.7.2 installed so we added it as a prereq. Unfortunately, we are running into an issue where 4.7.2 requires the workstation to be rebooted to be fully installed. We can not force a reboot as these are customers servers and they need advanced warning of a reboot. We also can not just install our service and then have it not run until they reboot. It needs to be running at all times (except the small window where it is installing).

The idea we came up with is to only auto-update if they have 4.7.2 already installed. I am having issues figuring out how to do that.
I was toying with the idea of using Launch Conditions but I am having trouble doing it in an efficient way. The following scenarios are what we were hoping to pull off with 1 installer.
1. If it is auto-update and 4.7.2 isn't installed. Do not upgrade. Do not show any warnings. Continue checking everyday.
2. If it is auto-update and 4.7.2 is installed. Upgrade.
3. If it is GUI Manual Install and 4.7.2 isn't install. Upgrade.
4. If it is GUI Manual Install and 4.7.2 is installed. Upgrade.

If anybody has any other work-flow ideas, we would consider those as well. We are using Advanced Installer 13.8.1.
bljanssen
Posts: 4
Joined: Mon Feb 25, 2019 7:01 pm

Re: Auto-update only when .Net Framework 4.7.2 is already installed

I created a Launch Condition that checked the UI level and a Search Condition for 4.7.2. Now it doesn't launch the installer for 4.7.2 but the check for updates screen just hangs forever on the installing step.

( UILevel = "2" AND ISDOTNET472INSTALLED = "1" ) OR ( UILevel <> "2" )

Is there a way to use a launch condition during a silent install?
bljanssen
Posts: 4
Joined: Mon Feb 25, 2019 7:01 pm

Re: Auto-update only when .Net Framework 4.7.2 is already installed

I found this post about the bug with the Launch Conditions and Silent Installer.
viewtopic.php?t=36032

I guess if there is any other ideas anyone has, that would be great.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Auto-update only when .Net Framework 4.7.2 is already installed

Hello and welcome to our forums,

The launch condition seems to be just fine. I am not sure why the setup hangs.

In order for me to further investigate this, could you please send me the following:

- the .AIP file for the old version
- the .AIP file for the new version
- the updates configuration project

by e-mail at support at advancedinstaller dot com.

Also, is the updates configuration project built with the same version as your other .AIP files (13.8.1)?

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”