Visual Studio 2012 InstallShield LE .NET Framework 4.5 先决条件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12075460/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio 2012 InstallShield LE .NET Framework 4.5 Prerequisites
提问by Ristogod
We have an application that was built using Visual Studio 2010 targeting the .NET Framework 4.0. We are upgrading the application to use .NET Framework 4.5 and is being written with Visual Studio 2012. Microsoft no longer provides a setup project type of their own, so we are forced to use this InstallShield LE. However, there appears to be a glaring omission in InstallShield's Prerequisites section. There is no option to declare that .NET Framework 4.5 must be installed, only .NET Framework 4.0 options. I've spent days trying to location the information to resolve this issue to no resolve. Flexera Software seems virtually unapproachable also as I can't seem to get a hold of anyone from that company to assist. It's not instilling me with much confidence in their product. How do I get .NET Framework 4.5 to be a prerequisite?
我们有一个使用 Visual Studio 2010 构建的针对 .NET Framework 4.0 的应用程序。我们正在升级应用程序以使用 .NET Framework 4.5,并且正在使用 Visual Studio 2012 编写。Microsoft 不再提供他们自己的安装项目类型,因此我们被迫使用此 InstallShield LE。但是,InstallShield 的先决条件部分似乎有明显的遗漏。没有声明必须安装 .NET Framework 4.5 的选项,只有 .NET Framework 4.0 选项。我花了几天时间试图定位信息以解决此问题,但没有解决。Flexera Software 似乎也几乎无法接近,因为我似乎无法找到该公司的任何人来提供帮助。这并没有让我对他们的产品充满信心。如何让 .NET Framework 4.5 成为先决条件?
采纳答案by Cosmin Pirvu
You can try Advanced Installer. It has full support for .NET Framework 4.5 and Windows 8.
您可以尝试高级安装程序。它完全支持 .NET Framework 4.5 和 Windows 8。
You can also try searching for a different setup authoring tool which supports .NET Framework 4.5 or at least allows you to create your own custom prerequisites. Here is a list which can get you started: http://en.wikipedia.org/wiki/List_of_installation_software
您还可以尝试搜索支持 .NET Framework 4.5 或至少允许您创建自己的自定义先决条件的其他设置创作工具。这是一个可以帮助您入门的列表:http: //en.wikipedia.org/wiki/List_of_installation_software
回答by Michael Urman
InstallShield Limited Edition for Visual Studio hasn't been updated for the release of Visual Studio 2012 and .NET 4.5 yet. The pending update will include new prerequisites for the new redistributables you mention that were made available with Visual Studio 2012.
InstallShield Limited Edition for Visual Studio 尚未针对 Visual Studio 2012 和 .NET 4.5 的发布进行更新。挂起的更新将包括您提到的 Visual Studio 2012 提供的新可再发行组件的新先决条件。
The Professional and Premier editions of InstallShield also come with a prerequisite editor that allows the creation of prerequisites for new redistributables without having to wait for, e.g., Flexera Software to release them.
InstallShield 的专业版和高级版还附带一个先决条件编辑器,允许为新的可再发行组件创建先决条件,而无需等待(例如,Flexera Software)发布它们。
回答by ChopperCharles
You can download the PRQs directly from flexera at the following urls:
您可以通过以下网址直接从 flexera 下载 PRQ:
http://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.5%20Web.prqhttp://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.5.1%20Web.prqhttp://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.5.2%20Web.prqhttp://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.6%20Web.prqhttp://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.6.1%20Web.prqhttp://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.7%20Web.prq
http://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.5%20Web.prq http://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.5 .1%20Web.prq http://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.5.2%20Web.prq http://saturn.installshield.com/is/prerequisites/Microsoft %20.NET%20Framework%204.6%20Web.prq http://saturn.installshield.com/is/prerequisites/Microsoft%20.NET%20Framework%204.6.1%20Web.prq http://saturn.installshield.com /is/prerequisites/Microsoft%20.NET%20Framework%204.7%20Web.prq
Strangely, they're not all available. 4.6.2 is missing, for instance. Some of the links above you can replace "Web" with "Full" as well.
奇怪的是,它们并非全部可用。例如,缺少 4.6.2。上面的一些链接也可以用“完整”替换“Web”。
Charles.
查尔斯。
回答by ChopperCharles
As I'm trying to figure out what is best option for me (Wix vs. Installshield LE) I came across this question and I use VS 2012 ultimate and I see the 4.5 option....
当我试图找出最适合我的选择时(Wix vs. Installshield LE),我遇到了这个问题,我使用了 VS 2012 Ultimate,我看到了 4.5 选项......


回答by iaminvinicble
You can follow the following steps: 1>Create a prerequisite file for .net framework and please write the following as contents:
您可以按照以下步骤操作: 1>为.net框架创建一个先决条件文件,内容如下:
<?xml version="1.0" encoding="utf-8"?>
<SetupPrereq>
<conditions>
<condition Type="2" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" FileName="Release" ReturnValue="378389"></condition>
</conditions>
<operatingsystemconditions>
<operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="1" ProductType="2|3"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4" ProductType="2|3"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="3" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="3" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
</operatingsystemconditions>
<files>
<file LocalFile="<ISProductFolder>\SetupPrerequisites\Microsoft .net.5\Full\dotnetfx45_full_x86_x64.exe" URL="http://go.microsoft.com/fwlink/?LinkId=255995" CheckSum="D02DC8B69A702A47C083278938C4D2F1" FileSize="0,50352408"></file>
</files>
<execute file="dotnetfx45_full_x86_x64.exe" cmdline="/showrmui /passive " cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010" requiresmsiengine="1"></execute>
<properties Id="{72D7E3D1-C9DF-4FA6-9F9B-4E5117AB2919}" Description="This prerequisite installs the .NET Framework 4.5 full standalone package." AltPrqURL="http://saturn.installshield.com/is/prerequisites/microsoft .net framework 4.5 full.prq"></properties>
<behavior Reboot="2"></behavior>
</SetupPrereq>
Name the file as Microsoft .NET Framework 4.5 Full.prq and copy it in [Installshield Installation folder\SetupPrerequisites] nad then you can see this prerequisite in Installation Requirements section in project Assistant
将该文件命名为 Microsoft .NET Framework 4.5 Full.prq 并将其复制到 [Installshield Installation folder\SetupPrerequisites] nad 然后您可以在项目助手的安装要求部分看到此先决条件
回答by iaminvinicble
You can follow the following steps: 1>Create a prerequisite file for .net framework and please write the following as contents: Name the file as Microsoft .NET Framework 4.5 Full.prq and copy it in [Installshield Installation folder\SetupPrerequisites] and then you can see this prerequisite in Redistributable section in Application and Data part when you open Installshield2013 project in Visual studio and select it from redistriutable list and install it.
您可以按照以下步骤操作: 1> 为.net framework 创建一个先决条件文件,内容如下: 将文件命名为Microsoft .NET Framework 4.5 Full.prq 并将其复制到[Installshield Installation folder\SetupPrerequisites] 然后当您在 Visual Studio 中打开 Installshield2013 项目并从可重新分发列表中选择它并安装它时,您可以在应用程序和数据部分的可重新分发部分中看到此先决条件。
Content is below mentioned:
内容如下:
<?xml version="1.0" encoding="utf-8"?>
<SetupPrereq>
<conditions>
<condition Type="2" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" FileName="Release" ReturnValue="378389"></condition>
</conditions>
<operatingsystemconditions>
<operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="1" ProductType="2|3"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4" ProductType="2|3"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="3" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="3" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4"></operatingsystemcondition>
</operatingsystemconditions>
<files>
<file LocalFile="<ISProductFolder>\SetupPrerequisites\Microsoft .net.5\Full\dotnetfx45_full_x86_x64.exe" URL="http://go.microsoft.com/fwlink/?LinkId=255995" CheckSum="D02DC8B69A702A47C083278938C4D2F1" FileSize="0,50352408"></file>
</files>
<execute file="dotnetfx45_full_x86_x64.exe" cmdline="/showrmui /passive " cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010" requiresmsiengine="1"></execute>
<properties Id="{72D7E3D1-C9DF-4FA6-9F9B-4E5117AB2919}" Description="This prerequisite installs the .NET Framework 4.5 full standalone package." AltPrqURL="http://saturn.installshield.com/is/prerequisites/microsoft .net framework 4.5 full.prq"></properties>
<behavior Reboot="2"></behavior>
</SetupPrereq>

