12

我们有一个使用面向 .NET Framework 4.0 的 Visual Studio 2010 构建的应用程序。我们正在升级应用程序以使用 .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 作为先决条件?

4

6 回答 6

3

您可以尝试Advanced Installer。它完全支持 .NET Framework 4.5 和 Windows 8。

您还可以尝试搜索支持 .NET Framework 4.5 或至少允许您创建自己的自定义先决条件的不同设置创作工具。这是一个可以帮助您入门的列表:http ://en.wikipedia.org/wiki/List_of_installation_software

于 2012-08-23T08:13:59.043 回答
2

Visual Studio 的 InstallShield Limited Edition 尚未针对 Visual Studio 2012 和 .NET 4.5 的版本进行更新。待定更新将包括您提到的随 Visual Studio 2012 提供的新可再发行组件的新先决条件。

InstallShield 的 Professional 和 Premier 版还带有一个先决条件编辑器,允许为新的可再发行组件创建先决条件,而无需等待,例如 Flexera Software 发布它们。

于 2012-08-23T11:49:46.177 回答
0

当我试图找出最适合我的选择时(Wix vs. Installshield LE),我遇到了这个问题,我使用 VS 2012 Ultimate,我看到了 4.5 选项....

在此处输入图像描述

于 2013-05-30T18:31:56.007 回答
0

您可以按照以下步骤操作: 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="&lt;ISProductFolder&gt;\SetupPrerequisites\Microsoft .net\4.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>

将该文件命名为 Microsoft .NET Framework 4.5 Full.prq 并将其复制到 [Installshield 安装文件夹\SetupPrerequisites] 中,然后您可以在项目助手的安装要求部分中看到此先决条件

于 2015-09-24T11:39:53.700 回答
0

您可以按照以下步骤操作: 1>为.net框架创建一个先决条件文件,内容如下:将该文件命名为Microsoft .NET Framework 4.5 Full.prq并将其复制到[Installshield安装文件夹\SetupPrerequisites]中,然后当您在 Visual Studio 中打开 Installshield2013 项目并从可再发行列表中选择并安装它时,您可以在应用程序和数据部分的可再发行部分中看到此先决条件。

内容如下:

<?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="&lt;ISProductFolder&gt;\SetupPrerequisites\Microsoft .net\4.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>
于 2015-09-24T11:50:28.370 回答