简体   繁体   English

在Windows 10中运行Innosetup安装程序

[英]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.

相关问题 Anaconda 安装程序不工作 - Windows 10 - Anaconda installer not working - Windows 10 自动启动/关闭脚本未在Windows 10 bat上运行 - Autostart/shutdown sripts not running on windows 10 bat Windows Installer 3.1安装程序中的切换覆盖和优先级 - Switch override and precedence in Windows Installer 3.1 installer 从CMD Windows 10运行.py文件时出现NameError - NameError when running .py file from CMD Windows 10 Windows 10运行.bat文件时访问被拒绝 - Access Denied When Running .bat file, Windows 10 C 程序差异 - windows 10 - 在 Sublime Text 3 和 cmd 中运行程序 - C program discrepancy - windows 10 - running program in Sublime Text 3 and cmd 从 Windows 10 执行行(WIN + R 面板)运行 python 脚本 - Running python scripts from windows 10 execute line (WIN + R panel) 从 Windows 10 cmd 运行批处理文件时,我收到一个错误,指出某个术语未被识别为 cmdlet function - While running a batch file from Windows 10 cmd I'm getting an error that a term is not recognised as cmdlet function 在Windows 10命令提示符中运行PHP脚本时如何打印平方根符号? - How to print out the square root symbol when running a PHP script in a Windows 10 command prompt? 在Windows 10 CMD中运行链接的命令时,文件名,目录名或卷标签语法不正确 - The filename, directory name, or volume label syntax is incorrect when running chained commands in Windows 10 CMD
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM