简体   繁体   English

如何配置Inno安装程序以检查Visual C ++可再发行组件包

[英]How to configure Inno Setup to check for Visual C++ Redistributable Packages

I've created a Javafx 2 application, of relatively compact size, which is a lending library with database for free use in public primary schools. 我创建了一个尺寸相对紧凑的Javafx 2应用程序,该应用程序是一个带有数据库的借阅库,可以在公立小学免费使用。 I have installed the Inno Setup and WiX and my application works well. 我已经安装了Inno Setup和WiX,并且我的应用程序运行良好。 I package my application (using presets) with an exe installer (inno setup). 我使用exe安装程序(inno安装程序)打包我的应用程序(使用预设)。 However, when I try to install my application on different Windows computers, I noticed that it was running well only in those computers that had fully updated their Windows version. 但是,当我尝试在其他Windows计算机上安装应用程序时,我注意到该应用程序仅在完全更新其Windows版本的计算机上运行良好。

On computers where due to low RAM the auto update of Win XP was disabled I receive an error during the installation of my application - namely, that the file msvcr100.dll was missing. 在由于内存不足而导致Win XP的自动更新被禁用的计算机上,我在安装应用程序时收到错误消息-即缺少文件msvcr100.dll。 When I manually update the system by installing the Microsoft visual C ++ X86 10.0.40219, then, for some computers, the application ran, but slowly, and the menu options and buttons of my application were periodically frozen. 当我通过安装Microsoft Visual C ++ X86 10.0.40219手动更新系统时,对于某些计算机,该应用程序运行了,但是运行缓慢,并且我的应用程序的菜单选项和按钮被定期冻结。 On other computers I received a JaxaFx runtime exception. 在其他计算机上,我收到了JaxaFx运行时异常。

How can I customize the installer so that before installing my application it checks the target operating system for required dependencies, and automatically install them? 如何定制安装程序,以便在安装应用程序之前,它检查目标操作系统中是否存在必需的依赖项,并自动安装它们?

Tricky question for which there is probably no good solution for your use-case. 棘手的问题,对于您的用例而言,可能没有好的解决方案。 It seems the underlying issue has been fixed for Java 8u40: 看来Java 8u40的基本问题已解决:

So, you could package using the Java 8u40 release when that comes out. 因此,当出现问题时,您可以使用Java 8u40发行版进行打包。 This does mean that you would not be able to target Windows XP computers (at least using a runtime which is officially supported by Oracle), because only Windows 7 and later are official targets of Java 8 . 这确实意味着您将无法定位Windows XP计算机(至少使用Oracle官方支持的运行时),因为只有Windows 7和更高版本才是Java 8的官方目标

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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