Installing a custom project template with Visual Studio Installer project

↘锁芯ラ 提交于 2019-12-11 13:15:42

问题


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?

Thanks a lot

ulu


回答1:


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

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




回答2:


You can get the complete example developing VSIX implemented here: Multi-Project Templates with Wizard: Visual Studio 2010 Sample



来源:https://stackoverflow.com/questions/2102605/installing-a-custom-project-template-with-visual-studio-installer-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!