Handling error messages from dll in custom dialog without aborting installation - Basic MSI -Installshield 2012

StackOverflow https://stackoverflow.com/questions/12793273

Domanda

I am using Installshield 2012 to build a basic msi installer , Here I have a custom dialog where i get the user inputs which are then passed to a dll for validation . The dll returns 0 or 1 based on the success or failure and in case of failure it also gives a msgbox.

The problem is that after clicking ok in the message box the installation is aborted . Is there anyway to throw the msg box without aborting the installation [Similar to a HTML form validation ??]

È stato utile?

Soluzione

Do not return 1 from your validation DLL. Windows Installer interprets this as failure and stops the installation. Always return 0. The correct approach would be to set a property in order to signal if the validation passed.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top