windows 如何将 CRRedist2008_x86.msi 添加到 Visual Studio 部署项目?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1050806/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:43:14  来源:igfitidea点击:

How do I add CRRedist2008_x86.msi to Visual Studio Deployment Project?

windowsvisual-studiodeploymentinstaller

提问by i8abug

I need to add CRRedist2008_x86.msi to my deployment project as it is a requirement for my app. However, I want it to run automatically. I don't want it to be just added as a file and then the user has to click on it for it to run after my app installs. Can someone guide my on how to do this? It seems like it should be very easy but for some reason I am missing something.

我需要将 CRRedist2008_x86.msi 添加到我的部署项目中,因为这是我的应用程序的要求。但是,我希望它自动运行。我不希望它只是作为文件添加,然后用户必须单击它才能在我的应用程序安装后运行。有人可以指导我如何做到这一点吗?看起来它应该很容易,但由于某种原因,我错过了一些东西。

回答by Dillie-O

What you need to do is set it up as a "merge module" in your deployment project. Instead of the .msi, find the.msm file that should be available on the CR website. Then in your deployement project, right click the Project and select Add->Merge Module. Browse for the file and you are set.

您需要做的是在您的部署项目中将其设置为“合并模块”。找到 CR 网站上应该提供的 .msm 文件,而不是 .msi。然后在您的部署项目中,右键单击该项目并选择添加->合并模块。浏览文件并设置好。

When the installer runs, it will automatically unpack the crystal reports related items and install them for you. You may also need a key file, depending on the licensing of the application involved.

当安装程序运行时,它会自动解压水晶报表相关项目并为您安装。您可能还需要一个密钥文件,具体取决于所涉及的应用程序的许可。