--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/bbf9ecfa-ddf2-4293-9c10-ac51011a7ba2n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/3d01caac-4efe-444d-8c00-1434d46e1d41n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/9acf5a3e-d048-4dea-b73e-64db549c6f62n%40googlegroups.com.
Hello Martijn,
Thanks for looking into it.
In general, I have an impression that the point of CurPageChanged even function is to have a chance to modify the page just before it's shown to the user. To server that purpose, the page should be modified by Inno Setup before the CurPageChanged, not after.
But to explain how I use it. My installer is installing a single shell extension DLL. I prefer not to bother the user with Windows Explorer restart (let only computer restart) on each upgrade. So in CurPageChanged(wpPreparing) I'm checking, what version of extension is installed currently – and if that version is still compatible with new version of the application and the extension update is not critical, I'm silently deferring its replacement to the next computer restart (by checking PreparingNoRadio and clicking NextButton, and later checking NoRadio). If the restart is needed immediately, I'm updating the too generic "Preparing" page to better explain to the user what it is about.
As the "Preparing" page is also used for the "installation/removal was not completed" scenario, I'm detecting that by checking PreparingMemo.Visible (what is rather hackish).
After the recent change, PreparingMemo.Visible is not set and my modifications of page are reset after the CurPageChanged.
Thanks.
Martin
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/WGhOaOuMO4M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/176008842308.8.12969770521347385074.946581585%40innosetup.nl.
This would avoid having to click things programmatically?
So something like this (untested)
[Setup]CloseApplicationsFilterExcludes=MyExtension.dll[Code]procedure RegisterExtraCloseApplicationsResources;varFileName: String;beginFileName := ExpandConstant('{app}\MyExtension.dll');if CheckIfDllUpdateIsRequired(FileName) thenRegisterExtraCloseApplicationsResource(False, FileName);end;
Greetings,
Martijn
To view this discussion visit https://groups.google.com/d/msgid/innosetup/074317fd-ad61-4ea2-bccd-4e7be5ffe058%40winscp.net.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/fc31bd59-d3e8-400a-8e77-63d84a5a8005n%40googlegroups.com.