什么“通过 Visual Studio 或其他 Windows Installer 感知安装编辑器将文件包装在另一个安装包中"?意思? [英] What does "Wrap the file in another setup package through Visual Studio or other Windows Installer aware setup editor" mean?

查看:18
本文介绍了什么“通过 Visual Studio 或其他 Windows Installer 感知安装编辑器将文件包装在另一个安装包中"?意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 2012 中工作,但缺少Microsoft.Office.Interop.Excel"程序集.从 http://www.microsoft.com 下载丢失的 exe 后/en-us/download/details.aspx?id=3508,
说明如下:
通过 Visual Studio 或其他 Windows Installer 感知安装编辑器将 O2010pia.msi 文件包装在另一个安装包中"
我运行了 exe,但 Visual Studio 中仍然缺少缺少的程序集.我对开发很陌生,在谷歌上搜索了一段时间后,我并没有更深入地理解这意味着什么.我将不胜感激一些见解.

I am working in Visual Studio 2012 and I was missing the "Microsoft.Office.Interop.Excel" assembly. After downloading the missing exe from http://www.microsoft.com/en-us/download/details.aspx?id=3508,
the instructions are as follows:
"Wrap the O2010pia.msi file in another setup package through Visual Studio or other Windows Installer aware setup editor"
I ran the exe, but the missing assembly is still missing from Visual Studio. I am quite new to development and after googling for a while, I am no closer to understanding what this means. I would greatly appreciate some insight.

推荐答案

您没有正确阅读.该页面显示使用一种以下安装方法".您要问的是您在为程序创建安装程序时所做的事情,以便 PIA 也安装在您的客户端机器上.你还没到.

You did not read it correctly. The page says "Use one of the following installation methods". The one you are asking about is what you do when you create an installer for your program so the PIA also gets installed on your client's machine. You are not there yet.

你不应该再这样做了,自 VS2010 以来 PIA 已经过时了.替换为嵌入互操作类型"功能,又名NoPIA".项目,添加引用,单击 COM,选择Microsoft Excel xx.x 对象库"条目,其中 xx.x 是您计算机上安装的 Office 版本号.这会自动将 Microsoft.Office.Core 和 Microsoft.Office.Interop.Excel 引用添加到您的项目中.将他们的 Embed Interop Types 属性设置为 True,这样您就不必在客户端的机器上安装任何东西.

You should not be doing this anymore, PIAs are outdated since VS2010. Replaced by the "Embed interop types" feature, aka "NoPIA". Project, Add Reference, click COM, select the "Microsoft Excel xx.x Object Library" entry where xx.x is the version number of Office you've got installed on your machine. This automatically adds the Microsoft.Office.Core and Microsoft.Office.Interop.Excel references to your project. With their Embed Interop Types property set to True so you don't have to install anything on the client's machine.

如果您没有看到此条目,则您需要在您的计算机上安装 Office.添加引用以及调试和测试代码时需要.

If you don't see this entry then you will need to install Office on your machine. Required to add the reference and to debug and test your code.

这篇关于什么“通过 Visual Studio 或其他 Windows Installer 感知安装编辑器将文件包装在另一个安装包中"?意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆