Apr 17, 2019 06:56 AM
Validate duplicate instance name in InstallShield Basic MSI project
Hi Team, I have enabled Multiple Instances in our MSI project. I am getting the instance name in a separate custom dialog and assign that to [ProductName] property before install. However i am able to input the same instance name multiple times and install the exe[Refer the image attached]. Is there any way inbuilt to validate the duplicate instance name before install. Thanks, Ramesh P.
Apr 23, 2019 01:34 PM
You can search the Registry - in particular the Uninstall information that represents your installers. Look for the DisplayName using a SystemSearch. Set the SystemSearch to a custom Windows Installer property. It is expected you know the ProductCode GUID for all the instances. Compare the result of the SystemSearch to the property entered on the dialog. This is expected to occur in the User Interface for you to handle accordingly.