I am getting a en error while running a installer made from Innosetup on Windows 10.It works fine on Windows 8/8.1 but on Windows 10 it gives a popup as below in a message Box with "Close Program" at the end.
Application-Name has stopped Working "problem caused the program to stop working correctly. windows will close the program and notify you if a solution is available"
However on clicking "Close Program" the installer does it job but this annoying pop up is causing problem as user has to intervene to close the box message.
Is there a way to find why the error is coming and any error code/message for this?
I debugged the code and found that this line is giving the error :
Exec('cmd.exe', ' /C My-Application.EXE /argument' + ' > logFile.txt',
ExpandConstant('{tmp}\'), SW_HIDE, ewWaitUntilTerminated, FW_Update_ResultCode);
Your application might be trying to load dependent libraries or other resources that do not exist on the user's machine.
You should install these to
{tmp}
as well, either via[Files]
entries or viaExtractTemporaryFile
, depending on the timing of yourExec
call.