Old 19th July 2005, 20:36   #1
eboots
Junior Member
 
Join Date: Jul 2005
Location: France
Posts: 3
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.
eboots is offline   Reply With Quote
Old 19th July 2005, 21:05   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 20th July 2005, 04:27   #3
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
Or perhaps something like this is what you want: (To be placed in the directory leave function.)

code:

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

Comperio is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump