Hi all!
I'm new on this forum (it's my first post) but it's a long time I read this forum (and it's a long time I speak a bad english 😁).
My question :
I use a MUI_PAGE_CUSTOMFUNCTION_LEAVE function to check the choosen installation directory (MUI_PAGE_DIRECTORY).
If choosen installation directory is allready used by another install (I have to manage several clients), I ask the user to confirm overwrite.
If he confirms, the start menu section is skipped and the install gone at the end 👍.
If not, i want to reload the window where user chose the installation directory.
Is it possible?
How?
Thanks in advance.🙂
Section navigation
4 posts
😱 Nobody's able to answer me ? 😢 😢
Be a little patient 🙂
Use Abort in the leave function to stay on the current page.
Use Abort in the leave function to stay on the current page.
Thanks, it's work 😁
I thought that Abort was used to skip a section because when I use it in a MUI_PAGE_CUSTOMFUNCTION_PRE function (as following), the corresponding page (Start Menu here) is skipped.
I thought that Abort was used to skip a section because when I use it in a MUI_PAGE_CUSTOMFUNCTION_PRE function (as following), the corresponding page (Start Menu here) is skipped.
!define MUI_PAGE_CUSTOMFUNCTION_PRE testOverwrite
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKEY_LOCAL_MACHINE"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\$(^Name)\$CUR_CLIENT"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
Function testOverwrite
StrCmp $OVERWRITE "" endOverwrite +1
ReadRegStr $2 HKLM "Software\$(^Name)\$OVERWRITE" "Start Menu Folder"
StrCpy $STARTMENU_FOLDER $2
Abort
endOverwrite:
FunctionEnd See u.