如何配置Inno安装程序以检查Visual C ++ Redistributable Packages [英] How to configure Inno Setup to check for Visual C++ Redistributable Packages

查看:725
本文介绍了如何配置Inno安装程序以检查Visual C ++ Redistributable Packages的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个相对紧凑的Javafx 2应用程序,它是一个带有数据库的借阅库,可以在公立小学免费使用。我安装了Inno Setup和WiX,我的应用程序运行良好。
我用exe安装程序(inno setup)打包我的应用程序(使用预设)。
但是,当我尝试在不同的Windows计算机上安装我的应用程序时,我注意到它只在那些已完全更新其Windows版本的计算机上运行良好。

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. I have installed the Inno Setup and WiX and my application works well. I package my application (using presets) with an exe installer (inno setup). 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.

在由于低RAM而导致Win XP自动更新被禁用的计算机上,我在安装应用程序时收到错误 - 即文件msvcr100.dll丢失。当我通过安装Microsoft Visual C ++ X86 10.0.40219手动更新系统时,然后,对于某些计算机,应用程序运行缓慢,并且我的应用程序的菜单选项和按钮被定期冻结。在其他计算机上,我收到了JaxaFx运行时异常。

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. 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. On other computers I received a JaxaFx runtime exception.

如何自定义安装程序,以便在安装我的应用程序之前检查目标操作系统是否存在所需的依赖关系,并自动安装他们?

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?

推荐答案

对于你的用例可能没有好的解决方案的棘手问题。似乎已经修复了Java 8u40的基本问题:

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:

  • RT-37178 The Windows launcher generated by the packager fails to load msvcr100.dll on 32-bit OS

因此,您可以在Java 8u40版本发布时打包。这意味着您将无法定位Windows XP计算机(至少使用Oracle正式支持的运行时),因为只有Windows 7及更高版本才是Java 8的官方目标

So, you could package using the Java 8u40 release when that comes out. 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.

这篇关于如何配置Inno安装程序以检查Visual C ++ Redistributable Packages的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆