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 Processing Propertry
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
‎Apr 01, 2008
01:51 PM
Custom Action Return Processing Propertry
Hi,
Im using the installshield automation interface to create an installation package. I was able to create Custom action using the follwing line of code:
ISWiCustomAction MSIExecUnInstallCustomAction = iswiProject.AddCustomActio("MSIExec_Uninstall_" + buildFile.FileName);
// This action type value indicates "Launch Executable - "
MSIExecUnInstallCustomAction.ActionType = 2;
My problem is when I open the installshield project I see a property for "Return Processing" in the created custom action, which I want to set to "Synchronous (Ignore Exit Code)". But I cant find this property in the automation interface. For example according the code above, there is nothing like MSIExecUnInstallCustomAction.ReturnProcessing ! How can I set this value through the interface.
I appreciate any feedback from you.
Thanks alot
Im using the installshield automation interface to create an installation package. I was able to create Custom action using the follwing line of code:
ISWiCustomAction MSIExecUnInstallCustomAction = iswiProject.AddCustomActio("MSIExec_Uninstall_" + buildFile.FileName);
// This action type value indicates "Launch Executable - "
MSIExecUnInstallCustomAction.ActionType = 2;
My problem is when I open the installshield project I see a property for "Return Processing" in the created custom action, which I want to set to "Synchronous (Ignore Exit Code)". But I cant find this property in the automation interface. For example according the code above, there is nothing like MSIExecUnInstallCustomAction.ReturnProcessing ! How can I set this value through the interface.
I appreciate any feedback from you.
Thanks alot
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 01, 2008
02:32 PM
Please see the MSI help topic "CustomAction Table", and the topics it links to; the ActionType field is a value combining the basic action type (DLL, EXE, script, etc.) with the return processing, in-script execution, and other flags.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 01, 2008
02:51 PM
Unfortunatly MSI crams all this information into really nasty bitmasks and the ISWiCustomAction object doesn't do anyone a favor by providing additional properties with enum arguments to effect the ActionType.
The easiest way to get through your current problem ( without reading pages and pages of SDK material ) is to stub out the CA in a dummy project and then look at what IS tells you is the MSI Type #. Then use that in the ISWiCustomAction.ActionType property as Robert suggests.
The easiest way to get through your current problem ( without reading pages and pages of SDK material ) is to stub out the CA in a dummy project and then look at what IS tells you is the MSI Type #. Then use that in the ISWiCustomAction.ActionType property as Robert suggests.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 01, 2008
05:51 PM
Thanks Guys. Chris I appreciate the details you put there, that was really helpful.
Thanks again
Thanks again