Visual studio 2010安装项目问题

时间:2023-01-16 14:18:59

I've made an application that uses .NET framework 3.5 SP1 and SQL Server 2008 Express. Application is fine and now i'm going to to make a setup project for this.

我制作了一个应用程序,使用。net framework 3.5 SP1和SQL Server 2008 Express。应用程序很好,现在我要为它做一个安装项目。

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. 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。为此,我将安装项目属性中的选项从“从以下位置下载先决条件”更改为“从与应用程序相同的位置下载先决条件”。除此之外,我还检查了上面的选项,如。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. See Help for more information. D:\MindStrike Setup\MindStrike Setup.vdproj MindStrike Setup
  • 错误1先决条件的安装位置尚未设置为“组件供应商的web站点”和文件“DotNetFX35SP1\dotNetFX20\aspnet”。msp“项”。NET Framework 3.5 SP1'不能位于磁盘上。有关更多信息,请参见帮助。D:\ \ MindStrike MindStrike设置设置。vdproj MindStrike设置
  • 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. 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. See Help for more information. D:\MindStrike Setup\MindStrike Setup.vdproj MindStrike Setup
  • 错误2:先决条件的安装位置没有设置为“组件供应商的网站”和文件“DotNetFX35SP1\dotNetFX20\aspnet_64”。msp“项”。NET Framework 3.5 SP1'不能位于磁盘上。有关更多信息,请参见帮助。D:\ \ MindStrike MindStrike设置设置。安装位置的先决条件没有设置为“组件供应商的网站”和文件“DotNetFX35SP1\dotNetFX20\clr”。msp“项”。NET Framework 3.5 SP1'不能位于磁盘上。有关更多信息,请参见帮助。D:\ \ MindStrike MindStrike设置设置。vdproj MindStrike设置
  • 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. See Help for more information. D:\MindStrike Setup\MindStrike Setup.vdproj MindStrike Setup
  • 错误4,先决条件的安装位置没有设置为“组件供应商的网站”和文件“DotNetFX35SP1\dotNetFX20\clr_64”。msp“项”。NET Framework 3.5 SP1'不能位于磁盘上。有关更多信息,请参见帮助。D:\ \ MindStrike MindStrike设置设置。vdproj MindStrike设置

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

谢谢提前

1 个解决方案

#1


8  

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:

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 bootstrapper包,并选择“从与我的应用程序相同的位置下载先决条件”选项,则显示以下构建错误:

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.

先决条件的安装位置尚未设置为“组件供应商的web站点”和文件“dotNetFx35setup”。exe Microsoft.Net.Framework.3.5“项”。无法将SP1'定位到磁盘上。

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
  2. 打开[程序文件]\ microsoftsdks \Windows\v6.0A\Bootstrapper\软件包\DotNetFx35SP1文件夹或%ProgramFiles(x86)%\ microsoftsdks \ window\ v6.0A\Bootstrapper\软件包\DotNetFx35SP1在x64操作系统上。
  3. Edit the Product.xml file in Notepad.
  4. 编辑产品。在记事本的xml文件。
  5. Paste the following into the < PackageFiles > element:
    • <PackageFile Name="TOOLS\clwireg.exe"/>
    • < PackageFile Name = "工具\ clwireg.exe " / >
    • <PackageFile Name="TOOLS\clwireg_x64.exe"/>
    • < PackageFile Name = "工具\ clwireg_x64.exe " / >
    • <PackageFile Name="TOOLS\clwireg_ia64.exe"/>
    • < PackageFile Name = "工具\ clwireg_ia64.exe " / >
  6. 将以下内容粘贴到< PackageFiles >元素: < PackageFile Name = " \ clwireg_x64工具。exe " / > < PackageFile Name = "工具\ clwireg_ia64.exe " / >
  7. Find the element for < PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US.exe" and change the PublicKey value to: 3082010A0282010100A2DB0A8DCFC2C1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C232118BBCDA5D2CFB36561E152BAE8F0DDD14A36E284C7F163F41AC8D40B146880DD98194AD9706D05744765CEAF1FC0EE27F74A333CB74E5EFE361A17E03B745FFD53E12D5B0CA5E0DD07BF2B7130DFC606A2885758CB7ADBC85E817B490BEF516B6625DED11DF3AEE215B8BAF8073C345E3958977609BE7AD77C1378D33142F13DB62C9AE1AA94F9867ADD420393071E08D6746E2C61CF40D5074412FE805246A216B49B092C4B239C742A56D5C184AAB8FD78E833E780A47D8A4B28423C3E2F27B66B14A74BD26414B9C6114604E30C882F3D00B707CEE554D77D2085576810203010001
  8. 找到< PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US的元素。将公钥值改为:3082010 a0282010100a2db0a8dcfc2c1499bcdaa3a34ad23596bdb6cbe2122b794c8eaaebfc6d526c232118bbcda5d2cfb36561e152bae8f0ddd14a36e284c7f163f41ac8d40b146880dd98194ad9706d05744765ceaf1fc0ee27f74a333cb74e5efe361a17e03b745ffd53e12d5b0ca5e0dd07bf2b7130dfc606a2885758cb7adbc85e817b490bef516b6625ded11df3aee215b8baf8073c345e3958977609be7ad77c1378d33142f13db62c9ae1aa94f9867add420393071e08d6746e2c61cf40d5074412fe805246a216b49b092c4b239c742a56d5c184aab8fd78e833e780a47d8a4b28423c3e2f27b66b14a74bd26414b9c6114604e30c882年f3d00b707cee554d77d2085576810203010001
  9. 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
  10. 找到< PackageFile Name="dotNetFX30\XPSEPSC-amd64-en-US的元素。将PublicKey值更改为与上面第4步相同的值
  11. Save the product.xml file
  12. 保存产品。xml文件

Download and Extract the Core Installation Files

下载并提取核心安装文件。

  1. Navigate to the following URL: http://go.microsoft.com/fwlink?LinkID=118080
  2. 导航到以下URL: http://go.microsoft.com/fwlink?
  3. Download the dotNetFx35.exe file to your local disk.
  4. 下载dotNetFx35。exe文件到本地磁盘。
  5. Open a Command Prompt window and change to the directory to which you downloaded dotNetFx35.exe.
  6. 打开命令提示窗口,将其更改为下载dotNetFx35.exe的目录。
  7. At the command prompt, type: dotNetFx35.exe /x:. This will extract the Framework files to a folder named “WCU” in the current directory.
  8. 在命令提示符下,键入:dotNetFx35。exe / x:。这将把框架文件提取到当前目录中名为“WCU”的文件夹中。
  9. 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). 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. The folder structure should resemble the following:

    WCU文件夹下应该有5个文件夹,每个文件夹现在都应该出现在DotNetFx35SP1文件夹中。文件夹结构应类似于以下内容:

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

You may now delete the files and folders you downloaded and extracted in steps 2 and 4.

现在可以删除步骤2和步骤4中下载和提取的文件和文件夹。

#1


8  

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:

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 bootstrapper包,并选择“从与我的应用程序相同的位置下载先决条件”选项,则显示以下构建错误:

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.

先决条件的安装位置尚未设置为“组件供应商的web站点”和文件“dotNetFx35setup”。exe Microsoft.Net.Framework.3.5“项”。无法将SP1'定位到磁盘上。

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
  2. 打开[程序文件]\ microsoftsdks \Windows\v6.0A\Bootstrapper\软件包\DotNetFx35SP1文件夹或%ProgramFiles(x86)%\ microsoftsdks \ window\ v6.0A\Bootstrapper\软件包\DotNetFx35SP1在x64操作系统上。
  3. Edit the Product.xml file in Notepad.
  4. 编辑产品。在记事本的xml文件。
  5. Paste the following into the < PackageFiles > element:
    • <PackageFile Name="TOOLS\clwireg.exe"/>
    • < PackageFile Name = "工具\ clwireg.exe " / >
    • <PackageFile Name="TOOLS\clwireg_x64.exe"/>
    • < PackageFile Name = "工具\ clwireg_x64.exe " / >
    • <PackageFile Name="TOOLS\clwireg_ia64.exe"/>
    • < PackageFile Name = "工具\ clwireg_ia64.exe " / >
  6. 将以下内容粘贴到< PackageFiles >元素: < PackageFile Name = " \ clwireg_x64工具。exe " / > < PackageFile Name = "工具\ clwireg_ia64.exe " / >
  7. Find the element for < PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US.exe" and change the PublicKey value to: 3082010A0282010100A2DB0A8DCFC2C1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C232118BBCDA5D2CFB36561E152BAE8F0DDD14A36E284C7F163F41AC8D40B146880DD98194AD9706D05744765CEAF1FC0EE27F74A333CB74E5EFE361A17E03B745FFD53E12D5B0CA5E0DD07BF2B7130DFC606A2885758CB7ADBC85E817B490BEF516B6625DED11DF3AEE215B8BAF8073C345E3958977609BE7AD77C1378D33142F13DB62C9AE1AA94F9867ADD420393071E08D6746E2C61CF40D5074412FE805246A216B49B092C4B239C742A56D5C184AAB8FD78E833E780A47D8A4B28423C3E2F27B66B14A74BD26414B9C6114604E30C882F3D00B707CEE554D77D2085576810203010001
  8. 找到< PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US的元素。将公钥值改为:3082010 a0282010100a2db0a8dcfc2c1499bcdaa3a34ad23596bdb6cbe2122b794c8eaaebfc6d526c232118bbcda5d2cfb36561e152bae8f0ddd14a36e284c7f163f41ac8d40b146880dd98194ad9706d05744765ceaf1fc0ee27f74a333cb74e5efe361a17e03b745ffd53e12d5b0ca5e0dd07bf2b7130dfc606a2885758cb7adbc85e817b490bef516b6625ded11df3aee215b8baf8073c345e3958977609be7ad77c1378d33142f13db62c9ae1aa94f9867add420393071e08d6746e2c61cf40d5074412fe805246a216b49b092c4b239c742a56d5c184aab8fd78e833e780a47d8a4b28423c3e2f27b66b14a74bd26414b9c6114604e30c882年f3d00b707cee554d77d2085576810203010001
  9. 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
  10. 找到< PackageFile Name="dotNetFX30\XPSEPSC-amd64-en-US的元素。将PublicKey值更改为与上面第4步相同的值
  11. Save the product.xml file
  12. 保存产品。xml文件

Download and Extract the Core Installation Files

下载并提取核心安装文件。

  1. Navigate to the following URL: http://go.microsoft.com/fwlink?LinkID=118080
  2. 导航到以下URL: http://go.microsoft.com/fwlink?
  3. Download the dotNetFx35.exe file to your local disk.
  4. 下载dotNetFx35。exe文件到本地磁盘。
  5. Open a Command Prompt window and change to the directory to which you downloaded dotNetFx35.exe.
  6. 打开命令提示窗口,将其更改为下载dotNetFx35.exe的目录。
  7. At the command prompt, type: dotNetFx35.exe /x:. This will extract the Framework files to a folder named “WCU” in the current directory.
  8. 在命令提示符下,键入:dotNetFx35。exe / x:。这将把框架文件提取到当前目录中名为“WCU”的文件夹中。
  9. 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). 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. The folder structure should resemble the following:

    WCU文件夹下应该有5个文件夹,每个文件夹现在都应该出现在DotNetFx35SP1文件夹中。文件夹结构应类似于以下内容:

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

You may now delete the files and folders you downloaded and extracted in steps 2 and 4.

现在可以删除步骤2和步骤4中下载和提取的文件和文件夹。