简体   繁体   English

Installshield不是安装先决条件(框架3.5)

[英]Installshield not installation prerqe (Framework 3.5)

I am developing an app in Framework 3.5. 我正在Framework 3.5中开发一个应用程序。 I would like Installshield to check if Framework 3.5 is already installed. 我希望Installshield检查是否已安装Framework 3.5。 If it's not installed, i want it to download it from the internet and then install it. 如果尚未安装,我希望它从Internet下载并安装。

On my App Data -> Redistributables, I have Microsoft Framework 3.5 SP1 as a Installshield Prerqe. 在我的应用程序数据->可再发行文件上,我具有Microsoft Framework 3.5 SP1作为Installshield Prerqe。 It is "Installed Locally" and build location "Copy from source media". 它是“本地安装”,构建位置是“从源媒体复制”。

I have Framework 3.5 as required for installation. 我具有安装所需的Framework 3.5。

On Windows XP, it works fine. 在Windows XP上,它可以正常工作。 It asks user to install Framework 3.5 if required. 如果需要,它将要求用户安装Framework 3.5。

On Windows 7, 8, 2008: even if Framework 3.5 is not installed. 在Windows 7、8、2008上:即使未安装Framework 3.5。 It does not ask user the download/install it. 它不会要求用户下载/安装它。 It only prompts them that the installation cannot continue because 3.5 is not installed. 它仅提示他们由于未安装3.5而无法继续安装。

Any idea on how to solve this problem ? 关于如何解决这个问题有什么想法吗?

The prereq provided is only valid pre Win 7. Starting with Win7, .NET 3.5 is included as a windows component and cannot be installed using the prereq. 提供的prereq仅在Win 7之前有效。从Win7开始,.NET 3.5作为Windows组件包含在内,无法使用prereq安装。 You have to use a DISM command to install the feature instead. 您必须使用DISM命令来安装该功能。 Starting with Win8, the .NET 3.5 bits aren't cached in the Windows installation media and it requires an internet connection to download from Windows Update during the DISM command. 从Win8开始,.NET 3.5位不会缓存在Windows安装介质中,并且它需要Internet连接才能在DISM命令期间从Windows Update下载。

Yes. 是。 I don't like it either. 我也不喜欢 Easiest thing to do from a deployment perspective is to allow installation if .NET 3.5 or 4.0 is installed and test your application to make sure it'll function on both CLR 2.0 and 4.0. 从部署的角度来看,最简单的方法是允许安装(如果已安装.NET 3.5或4.0)并测试您的应用程序,以确保它可以在CLR 2.0和4.0上正常运行。

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

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