cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
srikpai
Level 3

Custom Action return Vlaue

Hello,

I am using Install Sheild 2008 Professional edition.

I have created an .exe file which returns a value "0" / "1" depending on if it succeeds / fails.

I created a Custom Action and attached the .exe file to the Custom Action.

I would like to prompt the user with more information by displaying a Dialog Box if the custom action failed.

Any suggestions / directions would be appreciated.

--Sri
Labels (1)
0 Kudos
(4) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Windows Installer has no built in support for that kind of behavior. If you need to do this, you will have to wrap the launching of your executable in a different custom action, such as a MSI DLL written in C++ using CreateProcess, or an InstallScript CA using LaunchApplication. When the code that launches it sees the failure, it can then run code that prompts the user accordingly.
0 Kudos
Christopher_Pai
Level 16

What did you create the EXE with? Could you refactor it into a DLL that can interact with the MSI handle for MsiSetProperty() calls?
0 Kudos
srikpai
Level 3

Thanks for the response Chris,

I created the .exe using .net I could definately create a .dll, could you please guide further on how to go about this in more detail or refer me to a article / tutorial which could give me more guidance on this.

--Srik
0 Kudos