Hello,
Our NSIS exe installer has stopped working a few months ago following one of the updates available for Windows 11. I did everything I could on my own at the best of my limited capacities to fix the problem but in vain.
Our NSIS installer wraps a msi installer, and still works perfectly fine under Windows 10 (and msiexec v5.0.22621.3880), but no longer does (spinning ball) under Windows 11 with the current version of msiexec (v 5.0.26100.1150).
The culprit is an ExecWait msiexec /i .... command that is executed at some stage in the .onInit function:
ExecWait "msiexec /qb /i $PLUGINSDIR\${MSI_FILENAME}"
I moved the command to the main section so that I could better diagnose what is happening, and from what I can see, it seems (maybe???) that the msi installer tries to lunch before the msi is actually fully decompressed/written in a temp folder. Here is some output info from the "Show Details" button provided by the default interface :
Output folder: C:\Users\PASCAL~1\AppData\Local\Temp\nsb9B4C.tmp
Extract: ChenomxNmrSuite-x86_64.msi... 100%
Output folder: C:\Users\PASCAL~1\AppData\Local\Temp
Execute: msiexec /i C:\Users\PASCAL~1\AppData\Local\Temp\nsb9B4C.tmp\ChenomxNmrSuite-x86_64.msi
Completed
I should mention that both the exe and msi are properly signed with a valid developer certificate, and I have verified that the msi installer extracted/decompressed in the temp folder is perfectly viable if double-clicked on manually directly from the temp folder, so no issues with corrupted files or anything alike. Also, adding a log file to the msiexec command just creates an empty file.
Has anybody else faced this issue too? Any help/tips would be greatly appreciated!
help needed with ExecWait msiexec
2 posts