Skip to content
⌘ NSIS Forum Archive

nsDialogs::SelectFileDialog no file selected

7 posts

xbarns#edited

nsDialogs::SelectFileDialog no file selected

Hi all,

i guess i am too hung over from yesterday to find my error, i have a dialog (which displays nice) with this


!insertmacro MUI_HEADER_TEXT "$(GetLicenseFile_Header)" "$(GetLicenseFile_SubHeader)"

nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog

${If} $Dialog == error
Abort
${EndIf}

${NSD_CreateFileRequest} 10 120 85% 20 $R0
Var /GLOBAL GetLicenseFile_LicenseFile
Pop $GetLicenseFile_LicenseFile

${NSD_CreateBrowseButton} 89% 120 7% 20 ...
Var /GLOBAL GetLicenseFile_BrowseButton
Pop $GetLicenseFile_BrowseButton

GetFunctionAddress $0 OnCLick_GetLicenseFile_BrowseButton
nsDialogs::OnClick /NOUNLOAD $GetLicenseFile_BrowseButton $0

nsDialogs::Show
and then


Function OnCLick_GetLicenseFile_BrowseButton


nsDialogs::SelectFileDialog /NOUNLOAD open "$exedir\0server.xml" "XML Files|*.xml|All Files|*.*"
Pop $0
MessageBox MB_OK $0

${If} $0 != ""
${NSD_SetText} $GetLicenseFile_LicenseFile $0
${EndIf}

FunctionEnd
sadly my MessageBox will not show the selection, any ideas?

I am using the latest Unicode Build 2.38-1.

Thanks for your help
xbarns#
🙁

when compiling on "normal" Nsis 2.37 it works just fine


@Jimpark: in case you read this, any chance on an update/fix of the unicode version, there also seems to be an issue with the system.dll
jimpark#
I am actively working on 2.42 and so I'm not going back to fix 2.38.1. So please be patient and wait for 2.42. Hopefully, it will fix your issue. As I mentioned on the Unicode thread, I'm trying to iron out all the kinks in the System plugin which is one of the more difficult parts of the whole project.