简体   繁体   English

Visual Studio 2010安装项目问题

[英]Visual studio 2010 setup project problem

I've made an application that uses .NET framework 3.5 SP1 and SQL Server 2008 Express. 我创建了一个使用.NET framework 3.5 SP1和SQL Server 2008 Express的应用程序。 Application is fine and now i'm going to to make a setup project for this. 应用程序很好,现在我要为此制作一个安装项目。

When I first build my setup it was fine as all the prerequisites were not included in setup. 当我第一次构建我的设置时,它很好,因为所有先决条件都没有包含在设置中。

But I want my setup to install .NET 3.5 SP1 and SQL SERVER 2008 Express also. 但我希望我的设置也安装.NET 3.5 SP1和SQL SERVER 2008 Express。 So for this I've changed the options in setup project's properties from "Download prerequisites from following location" to "Download prerequisites from the same location as my application". 因此,我已将安装项目属性中的选项从“从以下位置下载先决条件”更改为“从与我的应用程序相同的位置下载先决条件”。 In addition to that I've also checked the options above like .NET 3.5 SP1 and SQL Server 2008 Express etc. 除此之外,我还检查了上面的选项,如.NET 3.5 SP1和SQL Server 2008 Express等。

After doing all this I build my project again. 完成所有这些后,我再次构建我的项目。 This time I'm Getting 57 Errors. 这次我得到了57个错误。


  • Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\\dotNetFX20\\aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. 错误1先决条件的安装位置尚未设置为“组件供应商的网站”,并且“.NET Framework 3.5 SP1”项中的文件“DotNetFX35SP1 \\ dotNetFX20 \\ aspnet.msp”无法位于磁盘上。 See Help for more information. 有关更多信息,请参阅帮助 D:\\MindStrike Setup\\MindStrike Setup.vdproj MindStrike Setup D:\\ MindStrike Setup \\ MindStrike Setup.vdproj MindStrike Setup
  • Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\\dotNetFX20\\aspnet_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. 错误2先决条件的安装位置尚未设置为“组件供应商的网站”,并且“.NET Framework 3.5 SP1”项中的文件“DotNetFX35SP1 \\ dotNetFX20 \\ aspnet_64.msp”无法位于磁盘上。 See Help for more information. 有关更多信息,请参阅帮助 D:\\MindStrike Setup\\MindStrike Setup.vdproj MindStrike Setup Error 3 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\\dotNetFX20\\clr.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. D:\\ MindStrike Setup \\ MindStrike Setup.vdproj MindStrike Setup Error 3先决条件的安装位置尚未设置为'组件供应商的网站',项目'.NET Framework 3.5 SP1中的文件'DotNetFX35SP1 \\ dotNetFX20 \\ clr.msp' '无法定位在磁盘上。 See Help for more information. 有关更多信息,请参阅帮助 D:\\MindStrike Setup\\MindStrike Setup.vdproj MindStrike Setup D:\\ MindStrike Setup \\ MindStrike Setup.vdproj MindStrike Setup
  • Error 4 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\\dotNetFX20\\clr_64.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. 错误4先决条件的安装位置尚未设置为“组件供应商的网站”,并且“.NET Framework 3.5 SP1”项中的文件“DotNetFX35SP1 \\ dotNetFX20 \\ clr_64.msp”无法位于磁盘上。 See Help for more information. 有关更多信息,请参阅帮助 D:\\MindStrike Setup\\MindStrike Setup.vdproj MindStrike Setup D:\\ MindStrike Setup \\ MindStrike Setup.vdproj MindStrike Setup

As the question will become too large so I'm just pasting 3 errors but there are totally 57 errors. 由于问题会变得太大,所以我只是粘贴了3个错误,但总共有57个错误。

Thanks in advance 提前致谢

A quick search suggests you might want to take a look at this: http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/d3c1991a-9353-43f0-be82-2dacedc1ceba/ 快速搜索建议你可能想看看这个: http//social.msdn.microsoft.com/forums/en-US/vssetup/thread/d3c1991a-9353-43f0-be82-2dacedc1ceba/


Pertinent Info from section 2.3.1.1 of the VS2008SP1Readme.htm : VS2008SP1Readme.htm第2.3.1.1节中的相关信息:

If the .NET Framework 3.5 SP1 bootstrapper package is selected in the Prerequisite dialog box for a Setup project or in ClickOnce publishing, and also the "Download prerequisites from the same location as my application" option is selected, the following build error is shown: 如果在安装项目或ClickOnce发布的“先决条件”对话框中选择了.NET Framework 3.5 SP1引导程序包,并且还选择了“从与我的应用程序相同的位置下载先决条件”选项,则会显示以下构建错误:

The install location for prerequisites has not been set to 'component vendor's web site' and the file 'dotNetFx35setup.exe' in item 'Microsoft.Net.Framework.3.5.SP1' cannot be located on disk. 先决条件的安装位置尚未设置为“组件供应商的网站”,并且“Microsoft.Net.Framework.3.5.SP1”项中的文件“dotNetFx35setup.exe”无法位于磁盘上。

To resolve this issue: 要解决此问题:

Update the Package Data 更新包数据

  1. Open the [Program Files]\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\DotNetFx35SP1 folder or %ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\DotNetFx35SP1 on x64 operating systems 在x64操作系统上打开[Program Files] \\ Microsoft SDKs \\ Windows \\ v6.0A \\ Bootstrapper \\ Packages \\ DotNetFx35SP1文件夹或%ProgramFiles(x86)%\\ Microsoft SDKs \\ Windows \\ v6.0A \\ Bootstrapper \\ Packages \\ DotNetFx35SP1
  2. Edit the Product.xml file in Notepad. 在记事本中编辑Product.xml文件。
  3. Paste the following into the < PackageFiles > element: 将以下内容粘贴到<PackageFiles>元素中:
    • <PackageFile Name="TOOLS\\clwireg.exe"/>
    • <PackageFile Name="TOOLS\\clwireg_x64.exe"/>
    • <PackageFile Name="TOOLS\\clwireg_ia64.exe"/>
  4. Find the element for < PackageFile Name="dotNetFX30\\XPSEPSC-x86-en-US.exe" and change the PublicKey value to: 找到<PackageFile Name =“dotNetFX30 \\ XPSEPSC-x86-en-US.exe”的元素,并将PublicKey值更改为:
  5. Find the element for < PackageFile Name="dotNetFX30\\XPSEPSC-amd64-en-US.exe" and change the PublicKey value to the same as in step 4 above 找到<PackageFile Name =“dotNetFX30 \\ XPSEPSC-amd64-en-US.exe”的元素,并将PublicKey值更改为与上面的步骤4相同
  6. Save the product.xml file 保存product.xml文件

Download and Extract the Core Installation Files 下载并解压缩核心安装文件

  1. Navigate to the following URL: http://go.microsoft.com/fwlink?LinkID=118080 导航到以下URL: http//go.microsoft.com/fwlink?LinkID = 118080
  2. Download the dotNetFx35.exe file to your local disk. 将dotNetFx35.exe文件下载到本地磁盘。
  3. Open a Command Prompt window and change to the directory to which you downloaded dotNetFx35.exe. 打开命令提示符窗口并切换到您下载dotNetFx35.exe的目录。
  4. At the command prompt, type: dotNetFx35.exe /x: . 在命令提示符下,键入: dotNetFx35.exe /x: . This will extract the Framework files to a folder named “WCU” in the current directory. 这会将Framework文件解压缩到当前目录中名为“WCU”的文件夹中。
  5. Copy the contents of the WCU\\dotNetFramework folder and paste them in the %Program Files%\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\DotNetFx35SP1 folder ( %ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\DotNetFx35SP1 on x64 operating systems). 复制WCU \\ dotNetFramework文件夹的内容并将其粘贴到%Program Files%\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\DotNetFx35SP1文件夹中( %ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\DotNetFx35SP1 x64操作系统上的%ProgramFiles(x86)%\\Microsoft SDKs\\Windows\\v6.0A\\Bootstrapper\\Packages\\DotNetFx35SP1 )。 Note: Do not copy the WCU\\dotNetFramework folder itself. 注意:请勿复制WCU \\ dotNetFramework文件夹本身。

    There should be 5 folders under the WCU folder, and each of these should now appear in the DotNetFx35SP1 folder. WCU文件夹下应该有5个文件夹,现在每个文件夹都应出现在DotNetFx35SP1文件夹中。 The folder structure should resemble the following: 文件夹结构应类似于以下内容:

    • DotNetFx35SP1 (folder) DotNetFx35SP1(文件夹)
      • dotNetFX20 (folder dotNetFX20(文件夹
      • dotNetFX30 (folder) dotNetFX30(文件夹)
      • dotNetFX35 (folder) dotNetFX35(文件夹)
      • dotNetMSP (folder) dotNetMSP(文件夹)
      • TOOLS folder) TOOLS文件夹)
      • en (or some other localized folder) en(或其他一些本地化文件夹)
      • dotNetFx35setup.exe (file) dotNetFx35setup.exe(文件)

You may now delete the files and folders you downloaded and extracted in steps 2 and 4. 您现在可以删除在步骤2和4中下载和提取的文件和文件夹。

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

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