This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Custom Action return Vlaue
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 06, 2008
01:29 PM
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
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
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 06, 2008
01:32 PM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 06, 2008
04:16 PM
What did you create the EXE with? Could you refactor it into a DLL that can interact with the MSI handle for MsiSetProperty() calls?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 09, 2008
09:10 AM
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
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