Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 8th August 2022, 17:57   #1
e_katz
Junior Member
 
Join Date: Aug 2022
Posts: 1
nsDialogs::SelectFileDialog causes installer crash on Windows 11

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:
e_katz is offline   Reply With Quote
Old 8th August 2022, 22:20   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,542
Does it happen if you just call nsDialogs::SelectFileDialog "open" "" "" in Example1.nsi?

Does it happen with this script?

PHP Code:
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
    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 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 9th August 2022, 09:11   #3
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 558
@Anders
Tested it on Win11 (x64 VM) and code is working fine (no crash).
Attached Thumbnails
Click image for larger version

Name:	Test.png
Views:	95
Size:	328.7 KB
ID:	54985  
Pawel is offline   Reply With Quote
Old 9th August 2022, 16:55   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,542
Quote:
Originally Posted by Pawel View Post
@Anders
Tested it on Win11 (x64 VM) and code is working fine (no crash).
Thank you. And what about nsDialogs::SelectFileDialog "open" "" "" ?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 9th August 2022, 17:14   #5
Pawel
Moderator
 
Pawel's Avatar
 
Join Date: Aug 2004
Location: Poland
Posts: 558
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
Pawel 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