View Full Version : OnCanceling not being called
11-07-2002, 08:11 AM
I am running a Basic MSI project, and can't get the built-in function OnCanceling() to respond to a cancel button push. The documentation seems to indicate that this event is triggered whenever the uer presses a cancel button. Is there something else I need to do?
11-07-2002, 08:29 AM
The OnCancelling() function applies only to "Standard" projects.
Take a look at the EndDialog control event in the msi docs. This gets called with the "Exit" argument on a concel request.
11-07-2002, 08:31 AM
The documentation clearly states "OnBegin, OnEnd, OnCanceling, and OnHelp are the only event handlers supported in a Basic MSI project. " Where is the discrepancy????????
11-07-2002, 08:39 AM
I do apologise...
I did not take into acount Installshield's tendancy to meddle.
I have kept my msi projects free of ISScript contamination and so was (wrongly) under the impression that the ISScript event handlers were part of the IScript engine.
I apologise for steering you wrong..
11-07-2002, 08:47 AM
however, the docs also clearly state ..
OnCanceling, which responds to the Cancel event generated when the end user clicks the Cancel button in one of InstallShield Developer's built-in dialog boxes.
Logical to assume then that it won't get called from an MSI cancel event.
11-07-2002, 08:52 AM
I am trying to get it to call from one of InstallShield Developer's built-in dialog boxes. I am currently not using any custom dialogs. That is why I assumed it would work.
11-07-2002, 08:59 AM
"built-in" as in one of the msi dialogs pre generated for you (e.g. CustomSetup) or as in one of the dialogs listed under "Built-in dialog box" in the same help docs....
My reading of the docs is that the OnCancelling() event fires from one of the isscript built-in dialogs, and not from the pre generated msi dialogs.
Some clarification from someone high-up and all-knowing is probably a good idea..
11-07-2002, 09:03 AM
I agree!!! The documentation is obviously to glib to be useful. I guess I'll just try to avoid anything InstallShield provided.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.