View Full Version : Bug: 'Project Actions' => 'On Shutdown'
slota
12-29-2008, 10:26 AM
I'm add some custom function in 'Project Actions' => 'On Shutdown', like DialogMessage, and some functions are not performed while setup is deinitialized (On Shutdown), but 'On Cancel' action on each screen custom functions works fine. Used version: 8.1.1006.0. Please correct this.
Ulrich
12-29-2008, 12:22 PM
Hello,
if you are a registered customer, please open a support ticket and attach your project file to it. Please provide clear information about which actions are not performed. Thank you.
Ulrich
jassing
12-30-2008, 04:03 PM
I'm add some custom function in 'Project Actions' => 'On Shutdown', like DialogMessage, and some functions are not performed while setup is deinitialized (On Shutdown), but 'On Cancel' action on each screen custom functions works fine. Used version: 8.1.1006.0. Please correct this.
Not sure there's anything to "correct"...
This behaviour has been the way the product has been since 7 (or 6?)
The way "around" this is to change the "cancel" (screens) and your "on shutdown" to call the same global function.
OnShutdown, I suspect, was meant for "after all has been done w/o error or cancelation". If you look at the "flow"
On startup Action
Pre Install Screens
Pre Install Actions
During Install
PostInstall Actions
Post Install Screens
On Shutdown actions
Cancel can sort of be "anywhere" -- think of "on shutdown actions" as actions that are performed after all post-install screens have been shown successfully.
The suggestion is already on record with IR that there should be a global "on cancel" actions that is similar to OnShutdown. For now; just edit (I use UltraEdit) the .sf8 file and do a search/replace) the screen's "cancel" to call a global function -- change the onshutdown to call that same global function as well; then everything will do call the same "clean up" routines no matter how the install is finished/terminated.
slota
12-31-2008, 03:17 AM
No problems if I'm place some function or code in ''On Cancel''. But if function placed ''On Shutdown'' that no need to call it from each screen :p. For example in AutoPlay Media Studio ''On Shutdown'' project action works fine :yes - custom function execute after app is Closed. I'm not test it with other IR products, but in official Setup Factory 8.1.1006 it's not work.
jassing
12-31-2008, 10:39 AM
I gave you the "why" and a valid work around .... it's not an issue as you think it is... it's by design....
Darryl
03-02-2009, 08:59 AM
Yes, jassing is correct, this functionality is by design.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.