Msi return code in case custom action dll crashes
Posted 28 October 2010 - 15:16
I have made an msi and created some custom actions using windows dll. The custom action type is 1025 which indicated that the return code of custom action is not ignored.
However, in some scenario, my custom action dll crashes (in the sense that some erroneous code executes. e.g. accessing a null assigned pointer etc. ). But still the msi is returning success and says that it has successfully installed the product.
In my opinion, msi should report failure in installation. Any idea of this behavior.
Thanks in advance.
Posted 31 October 2010 - 10:57
Inside Windows Installer 4.5
Posted 05 November 2010 - 12:43
More values exist, for instance a request for an immediate reboot or a request for a reboot at the end.
Make sure your function returns the right value.
Posted 05 November 2010 - 15:48
@OP, if you'd like the behaviour of the Windows Installer engine changed, perhaps you should participate in the WI team's MSDN blogs and/or Webinars. I wouldn't expect any change in your lifetime, though, given the need to cater for backwards compatibility with older packages.
I think you need to set up a flag of some kind (something as crude as a registry setting, for example). Your CA's function call would then delete the flag on completion. The package then executes a subsequent CA which checks for the presence of the flag and branches accordingly.
Edited by VBScab, 05 November 2010 - 15:48.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.