问题
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