views:

24

answers:

1

Hi. I'm writing installer for my program using Windows Installer (not wix). In some cases i want cancel installation proccess from my custom action. Beside, i want show an error message with my text. How do this?

C#, .net 3.5

A: 

You can do this by creating an error custom action. Set the condition of the error custom action to be the fail condition (if the condition evaluates to true, the installation will fail) and set the message to your custom text.

CodeSavvyGeek

related questions