visual-studioinstallationadvanced-installerlaunch-condition

Advanced Installer - How to add a custom launch condition to check if a specific software is installed or not while installing


I am have C# project for which i have created a installer by using advanced installer the installer build perfectly but now i have some preferences to check while installing my software that is a specific software is installed on the machine or not. I have seen there are launch condition tab in the advanced installer enter image description here

In the launch condition i can see there are prebuild conditions available. how can i add my custom condition in the custom tab to detect a specific software installation

enter image description here

enter image description here

i dont figured out how to add my own custom condition here.


Solution

  • First of all, please note that the "Not Installed" condition you are refering to in your thread refers to the installation state of the main setup package.

    Now, coming back to your issue, please that if the software you are looking for is a common one, you can use the "Launch Conditions" --> "Software" tab.

    If the software you are looking for is not found there, then we must find a trait that is specific to your software (e.g. a file, a registry entry).

    We can then create a "Search" based on that trait and use the property assigned to the search as a condition to our custom Launch Condition.

    https://www.advancedinstaller.com/user-guide/search.html

    For instance, if we know that the software we are looking for always creates a registry entry upon installation, we can perform a registry search:

    https://www.advancedinstaller.com/user-guide/qa-registry-search.html

    and then use the property that stores the value of the search as a custom launch condition.

    One more thing to note here is the behavior of the Launch Condition:

    Hope this helps!