View Single Post
Old 25th March 2014, 15:05   #1
PARTISAN
Junior Member
 
Join Date: Mar 2014
Posts: 3
Exclamation NSIS dlls crash at first run

Hi all!

I'm just finished working on my first NSIS installer and I have one annoying issue: sometimes installer crashed while it's performing install. This is looks like it just disappear without any message boxes or any other notification. It's happening only while testing on Windows XP once per 20-50 installs. Using NSIS Special Builds I can see execution log and last log entry is copying nsExec.dll to temp directory.
code:
nsExec::Exec: taskkill /S localhost /IM SomeProgramName.exe
Call: 1890
File: overwriteflag=1, allowskipfilesflag=2, name="C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nsf77.tmp\nsExec.dll"
File: wrote 6656 to "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nsf77.tmp\nsExec.dll"
*EOF*


Here is code snippet that executed at this log position
code:
Function ExecToInstallLog
Pop $0
${LogText} "nsExec::Exec: $0"
nsExec::ExecToStack /TIMEOUT=120000 $0
Pop $1
Pop $2
${If} $1 == 0
${LogText} "nsExec::Exec (success): $0"
${Else}
${LogText} "nsExec::Exec (failed): $0"
${LogText} "nsExec::Exec (error $1): $2"
${EndIf}
FunctionEnd

...

Push "taskkill /S localhost /IM SomeProgramName.exe"
Call ExecToInstallLog


This is first use of this library in installer, so I guess that crash happened in nsExec.dll. Few times I got the same with nsJSON.dll.
Provided info is exceedingly vague to make some conclusion, but I don't know any other way to get debug info. You can ask me test something.
P.S. Concrete program names was replaced due to customer's NDA
P.S.S. English isn't my native, so sorry if my post isn't clear enough.
PARTISAN is offline   Reply With Quote