eboots
19th July 2005 21:36 UTC
Confirming install path
Hi,
Our QA people are saying that the user should be able to confirm the install path he typed (on the directory page) when it is a new directory (ie when the installer is going to create it automatically).
What is the easiest way to do this?
Thanks for your help.
Afrow UK
19th July 2005 22:05 UTC
When you mean confirm, do you want them to re-enter or to show them what it is?
To show them what it is, you could make a custom page with InstallOptions or just a simple MessageBox in the Directory page's Leave function (and call Abort to go back).
-Stu
Comperio
20th July 2005 05:27 UTC
Or perhaps something like this is what you want: (To be placed in the directory leave function.)
Function DirLeave
IfFileExists '$INSTDIR\*.*' continue 0
MessageBox MB_OKCANCEL|MB_ICONQUESTION 'The directory "$INSTDIR" does not exist. Create?' IDOK continue
Abort
continue:
; no need to specify anything here as the folder will get created automatically
FunctionEnd