cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
samsal
Level 4

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
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

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.
0 Kudos
Christopher_Pai
Level 16

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.
0 Kudos
samsal
Level 4

Thanks Guys. Chris I appreciate the details you put there, that was really helpful.
Thanks again
0 Kudos