You are here

[Closed] PAL - Manual not clear that PostExec section happens even if Execute never happens

4 posts / 0 new
Last post
The MAZZTer
The MAZZTer's picture
Offline
Last seen: 1 year 9 months ago
Developer
Joined: 2006-11-17 15:31
[Closed] PAL - Manual not clear that PostExec section happens even if Execute never happens

If you check the bottom of the PAL NSI, as you can see after the MessageBox for LauncherCrashCleanup, it goes down to PostExec and Post to run cleanup.

But the manual claims PostExec happens after the program is launched, which won't happen in this particular case. I am guessing the actual PAL behavior is as designed, and the manual just needs to clarify that. It might also be useful to provide a "emergency clean up" flag variable so custom code can check it.

For example, my PostExec implements "smart" WaitForOtherInstances functionality by ONLY waiting for processes matching the full path of the application, thus ignoring a local copy of the application and services/background processes run by it. In this case it's just a useless, extra check, but it would still be nice for clarification in the manual.

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 42 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Chris?

Chris or kAlug, can you confirm behavior here and update the manual appropriately?

Sometimes, the impossible can become possible, if you're awesome!

Aluísio A. S. G.
Offline
Last seen: 8 years 2 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
3.0

PostExec is a 3.0 feature.

Previously known as kAlug.

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 42 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Closed

Ok. As this is bleeding edge PAL and should not be used for any apps, I've closed this bug. Please only use stable PAL for apps.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments