Hoping someone else has run across this. I have a script that calls SelectFileDialog (I've tried with SelectFolderDialog as well). When running on a Windows 11 client, when the call is being made, the installer just goes away.
The Event Viewer has this:
Faulting application name: SentinelSecureInstaller_test.exe, version: 0.0.0.0, time stamp: 0x5f24d722
Faulting module name: KERNELBASE.dll, version: 10.0.22000.795, time stamp: 0x14937283
Exception code: 0xe06d7363
Fault offset: 0x0013f192
Faulting process id: 0xef40
Faulting application start time: 0x01d8ab3aeb7e11bc
Faulting application path: C:\Users\ekatz\work\secureinstaller\SentinelSecureInstaller_test.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: e8c01980-a121-4471-933c-b2fb3df39740
Faulting package full name:
Faulting package-relative application ID:
nsDialogs::SelectFileDialog causes installer crash on Windows 11
5 posts
Does it happen if you just call nsDialogs::SelectFileDialog "open" "" "" in Example1.nsi?
Does it happen with this script?
Does it happen with this script?
Unicode True
!include LogicLib.nsh
Section
!define /IfNDef OFN_CREATEPROMPT 0x00002000
!define /IfNDef OFN_EXPLORER 0x00080000
System::Call '*(&t${NSIS_MAX_STRLEN} "")p.r2'
System::Call '*(&l${NSIS_PTR_SIZE},p0,p0,p0,p0,i0,i0,pr2,p${NSIS_MAX_STRLEN},p0,p0,p0,p0,i${OFN_CREATEPROMPT}|${OFN_EXPLORER},i,p0,p0,p0,p0)p.r1'
System::Call 'COMDLG32::GetOpenFileName(pr1)i.r0'
${If} $0 <> 0
System::Call '*$2(&t${NSIS_MAX_STRLEN}.r3)'
MessageBox MB_OK "$3 by NSIS ${NSIS_VERSION} (${NSIS_PACKEDVERSION}, CS=${NSIS_CHAR_SIZE}, ${NSIS_CPU})"
${EndIf}
System::Free $2
System::Free $1
SectionEnd @Anders
Tested it on Win11 (x64 VM) and code is working fine (no crash).
Tested it on Win11 (x64 VM) and code is working fine (no crash).
Thank you. And what about nsDialogs::SelectFileDialog "open" "" "" ?Originally Posted by Pawel View Post@Anders
Tested it on Win11 (x64 VM) and code is working fine (no crash).
It works fine too...
Video: https://www.dropbox.com/s/1f7txfw38196kmd/Test.mp4?dl=0
Ps: Remember, I use Virtual Machine. But it should not be problematic.
-Pawel
Video: https://www.dropbox.com/s/1f7txfw38196kmd/Test.mp4?dl=0
Ps: Remember, I use Virtual Machine. But it should not be problematic.
-Pawel