使用MSI安装程序部署VSIX [英] Deploying VSIX using MSI installer

查看:100
本文介绍了使用MSI安装程序部署VSIX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用MSI安装程序安装VSIX"中的任何问题都可以帮助我.

对于msi安装程序,我正在使用Visual Studio安装程序安装项目.

当我将VSIX与扩展管理器一起使用时,效果很好.

我想将其作为安装程序(使用msi)而不是使用enstension管理器.

或任何最好的方法来安装和卸载VSIX文件

解决方案

这不是建议的方案.

从MSDN,您不能使用Windows Installer软件包(MSI)部署VSIX软件包.但是,您可以提取VSIX软件包的内容以进行MSI部署.本文档说明了如何准备默认输出为的项目. VSIX软件包以包含在安装项目中."

以下是更多信息的页面:

MSDN页面

VS博客

MSDN论坛


添加有关如何完成此操作的更多信息:

您不能使用vsix本身,但是可以解压缩它(只需将vsix重命名为zip)并将所有文件手动添加到MSI.如 VS博客所述,您需要确保包括vsixmanifest文件(它应该在vsix中),并确保将"InstalledByMsi"属性设置为true.如果您有pkgdef文件,请确保也包含该文件.

同样,如 VS博客上所述

a>,所有这些文件都应安装到

"%VSInstallDir%\Common7\Ide\Extensions\Your Company\Your Product\Version"

(并且您需要根据实际位置替换%VSInstallDir%.)

您问:

如何使用Visual Studio安装程序将某些文件放入非特殊文件夹中.

由标准vsix安装程序安装的

Vsix软件包将始终将所有文件放在%VSInstallDir%\ Common7 \ Ide \ Extensions ..."中的同一文件夹下,但是由于您使用的是MSI,因此应可以根据需要将其他文件放在其他位置.

我自己还没有尝试过,但是我已经使用过vsix了很多.

我希望这会有所帮助!

Can anyony help me in "How to install VSIX using MSI installer".

For msi installer I'm using visual studio Installer setup project.

When I use VSIX with extension manager it works fine.

I want to have it as a installer(using msi) instead of using enstension manager.

or any best wa yto install and unstall VSIX files

解决方案

This isn't a suggested scenario.

From MSDN, "You cannot use a Windows Installer package (MSI) to deploy a VSIX package. However, you can extract the contents of a VSIX package for MSI deployment. This document shows how to prepare a project whose default output is a VSIX package for inclusion in a Setup project."

Here are some pages with more information:

MSDN page

VS Blog

MSDN Forum


Adding more information about how you could accomplish this:

You can't use the vsix itself, but you can unzip it (just rename the vsix to zip) and add all of the files to your MSI manually. As it says on the VS Blog, you need to make sure that you include the vsixmanifest file (it should be in the vsix) and make sure that you set the "InstalledByMsi" property to true. If you have a pkgdef file, make sure you include that as well.

Again, as it says on the VS Blog, all of these files should be installed to

"%VSInstallDir%\Common7\Ide\Extensions\Your Company\Your Product\Version"

(And you'll need to replace %VSInstallDir% based on the actual location.)

You asked:

How to put some files in non special folders using visual studio installer.

Vsix packages installed by the standard vsix installer will always put all of the files under the same folder in "%VSInstallDir%\Common7\Ide\Extensions...", but because you're using an MSI, you should be able to put other files in other places if you want.

I haven't tried this myself, but I've worked with vsix quite a bit.

I hope this helps!

这篇关于使用MSI安装程序部署VSIX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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