|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
|
nsDialogs::SelectFileDialog presents Messagebox asking to create the file.
Hi all,
i am using: nsDialogs::SelectFileDialog /NOUNLOAD open "$EXEDIR\License.xml" "XML Files|*.xml|All Files|*.*" to select a file named "License.xml" from a directory in case it exists there, but if the file does not exist it will present a dialog: "License.xml" "This file doesn't exist." "Create the file?! "Yes No" How can i prevent that dialog from showing in case the file i look for does not exist? Thanks x |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
If you call GetOpenFilename directly with the system plugin you will get more control over which flags are used but I'm not sure if it makes any sense to do so, can't you just check if the file exists first?
Normally you would have a text field where the user can type anything they want and a browse button to display the open dialog... IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 187
|
Thanks Anders, i did the check for the filename and now it works as it should.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|