Install additional .exe with Visual Studio Installer

I am currently trying to work out how to install an additional .exe with my visual studio applicaiton. It works in General but it don't know how to check before the installation if the additional .exe is already installed.

I assume the best option is to check the registy for a similiar entry and then check the result as a condition for installation?

I search on the Target Maschine for the registry entry:

enter image description here

Then I put the result as a condition in the custom action where the exe is installed.

enter image description here

Is the return Value a Bool or a String? Is my condition correct?

NOT WEBVIEW2
1 Answers

To install an additional .exe with Visual Studio Installer and check if it is already installed, you can indeed search the registry for a similar entry as a condition for installation. The return value from the registry check would typically be a string, as you would be checking for a specific value.

Your condition in the custom action should evaluate the result from the registry check to determine if the additional .exe is already installed. If the condition is true (indicating that the additional .exe is not installed), then the installation of the .exe can proceed as planned.