使用Visual Studio Installer项目安装自定义项目模板 [英] Installing a custom project template with Visual Studio Installer project

查看:311
本文介绍了使用Visual Studio Installer项目安装自定义项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个自定义项目模板,现在我需要将其与我的产品一起部署(即,应使用与主安装相同的msi来安装它).我正在使用Visual Studio安装程序项目.一种选择是使用自定义操作并手动复制安装中包含的模板文件.另一个方法是创建一个vsi文件,并在主安装后使用自定义操作将其安装(如何静默安装?).哪个更好?

I've created a custom project template, and now I need to deploy it together with my product (i.e., it should be installed by the same msi I use for the main installation). I'm using a Visual Studio Installer project. One option is to use a custom action and manually copy a template file included in the installation. Another is to create a vsi file and use a custom action to install it after the main installation (how do I have it installed silently?) . Which one is better?

非常感谢

ulu

推荐答案

如果您使用的是VS 2005或2008 只需将模板文件展开在适当的位置即可,例如: [VSInstallDir] \ Common7 \ IDE \ ProjectTemplatesz

In case you are using VS 2005 or 2008 Just unfold the template files in the proper location for example: [VSInstallDir]\Common7\IDE\ProjectTemplatesz

如果您使用的是VS 2010 使用.vsix vsix文件是Visual Studio 2010扩展的部署单元. Visual Studio将识别VSIX扩展名并将文件内容安装到正确的位置.

In case you are using VS 2010 use .vsix The vsix file is the unit of deployment for a Visual Studio 2010 Extension. Visual Studio will recognize the VSIX extension and install the contents of the file to the right location.

如果您有任何疑问,请告诉我

Let me know if you have any questions

s

这篇关于使用Visual Studio Installer项目安装自定义项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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