Hello and welcome to Advanced Installer forums,
I think that this can be achieved in the following way:
- go to
"Upgrades" page and check the
"Allow side-by-side installs of different product versions"
- in the
"Dialogs" page, please add the
"UpgradeDlg" dialog. To do so, please select
"WelcomeDlg" and then press the
"Add dialog" button from the ribbon. From the list, please select the
"UpgradeDlg" dialog
By default, this dialog contains a radio button group with two options: either remove the older installation or allow side by side. The default value of the radio button group is set to allow the side by side installation.
We will change this to default to "remove older versions" instead. To do so, select the
"No, install side by side with older versions" button and, on the right side, under
"Value" section, set its
"Selected" attribute to
"False".

- selected.png (92.29 KiB) Viewed 2656 times
Repeat this step for the
"Yes, remove older versions" button, but this time set its
"Selected" attribute to
"True".
Now that we have this done, here is how I'm thinking about this behavior:
- by default, we will let the user decide whether he wants to remove the older installation or perform a side by side installation
- otherwise, I believe you will need a custom action to perform the checks you need. Based on those checks, the custom action should
set an installer property, which will further be used to condition your dialog (right click on dialog -->
"Show only if..." option).
In this case, if your condition is fulfilled, then the dialog will not be shown and the user will be "forced" to remove the older version (because the default on the dialog is "Yes, remove older version" and since the dialog is not displayed, the user can not change that).
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging