简体   繁体   中英

Running Innosetup installer in Windows 10

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 via ExtractTemporaryFile , depending on the timing of your Exec call.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM