[英]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. 我在Windows 10上运行由Innosetup制作的安装程序时遇到en错误,它在Windows 8 / 8.1上运行良好,但是在Windows 10上,它在消息框中显示了以下弹出窗口,最后带有“关闭程序”。
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" 应用程序名称已停止工作“问题导致程序无法正常工作。Windows将关闭程序并通知您是否有可用的解决方案”
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. 您还应该通过
[Files]
条目或通过ExtractTemporaryFile
将它们安装到{tmp}
,具体取决于Exec
调用的时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.