https://bugs.winehq.org/show_bug.cgi?id=56061
--- Comment #12 from Bernhard Übelacker bernhardu@mailbox.org --- To make sure this is an application fault I continued to try to have a look at the nsis script. I got to an extension for ghidra, but unfortunately this did fail too.
But assuming the the 32-bit version of the install might have the same script I tried this with 7-Zip and it worked well. There the following lines can be found, where I guess the "i r7" is the fault, because this provides just the lower 32-bits to the EnumProcesses function: System::Alloc 40000 Pop $7 StrCmp $7 0 label_3322 System::Call "psapi::EnumProcesses(i r7, i 40000, *p .r1) i .r2"
Further I was able to create a minimal installer by following script.nsi, executed inside a 64-bit Debian bookworm:
# apt install nsis # makensis script.nsi Target AMD64-Unicode Outfile "56061_nsis64test.exe" Section System::Alloc 40000 Pop $0 Int64Fmt $1 "%I64x" $0 MessageBox MB_OK "Alloc returned: $0 0x$1" SectionEnd
Such a minimal installer showed in windows always an address below 32-bit, unfortunately in wine always above 32-bit.