c++ - NSIS: How ExecWait handles exe's that otherwise crash -


I have an exe that needs to run vc ++ environment and otherwise crash is.

If I run it in a non VC ++ environment, from the command line or from the C ++ function, it crashes clearly and the system error message is shown as below

Enter image details here

But when I click it in the NSIS script < Code> ExecWait , I'm executing it now. Exe should still crash, but it is not showing an error message

If I am correct ExecWait as well as CreateProcess function internal form Why does this difference from uses again?

Is there a need to pass to get this behavior in the CreateProcess function?

NSIS does not pass any special flag:

  StartUp .cb = sizeof (startup); If (! CreateProcess (NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, & amp; Startup, & amp; ProcInfo)) ...  

But before that It gets on SetErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS); which can affect things.

The second thing is that the SetOutPath directive in an NISIS script also changes the methodology in the working directory so that if you can set it on a path, The hair process will also raise them in the presence of ...


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -