Hello and welcome to Advanced Installer forums,
Is there a way to prevent an installation from continuing based on some conditional checks?
Yes, this is possible through our predefined support for
"Launch Conditions" and
"Searches".
Basically, what we can do here is:
- identify a unique component that identifies both your applications. For instance, this might be a registry key, a file, etc.
- create two searches for those component. For instance, if both components are registry keys, we will need to create two registry searches
- now please go to
"Launch Conditions" page -->
"Custom" tab and create a launch condition which uses the previously created searches as conditions
Let's have a little example so we can better understand. Let's consider one of your legacy applications, upon installation, configures a registry entry as it follows:
HKLM:\SOFTWARE\MyApplication
The above key has a value named, for instance,
MyApplicationName and this value equals to
"LegacyApp"
In
"Search" page, we will create a registry search that will look and retrieve the value of our key. This value is then saved in an installer property (which has the same name as your search). The search may look something as it follows:

- search.png (68.89 KiB) Viewed 1867 times
As you may see, our search will retrieve the raw value of the key's value and save it in an installer property, in our case named
RESULT_PROPERTY.
We can then use this property to condition our custom launch condition. A launch condition will behave as it follows:
-
if the condition is true ==> the installation will go on
-
if the condition is false ==> the installation will fail
In our case, we want to continue with the installation only if the registry entry is not found (meaning the legacy app was uninstalled).
If:
RESULT_PROPERTY = "LegacyApp"
means that the registry entry was found ==>
NOT RESULT_PROPERTY = "LegacyApp"
means that the registry entry is
not found.
In our case, we want to continue with the installation when the registry entry is not found, therefore the condition will look something like this:
Hope this helps!
Also, if you have other methods of identifying whether your legacy applications are installed or not and you are not sure how to configure the searches, please let me know and I will be glad to assist.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging