PDA

View Full Version : how to verify a directory?


easthero
21st December 2006, 11:49
I use installoptions to create a custom page
add a dirrequest control,I want to verify the value that user input ,if it is not a directory,user can not continue

how can i do it?thanks

Afrow UK
21st December 2006, 11:51
StrCmp $R0 "" +2
IfFileExists "$R0\*.*" +3
MessageBox MB_OK|MB_ICONSTOP "Bad path!"
Abort

Assuming $R0 is the path read from the INI file.

-Stu

easthero
21st December 2006, 14:20
good idea,thanks ,fantasy