Hi
zeiddev wrote:This does bring me back to my original question in this thread though about applying a template to a visual studio setup project. Is this possible?
Yes, this can be done. I'll summarize the procedure for adding your own
Advanced Installer Project template.
The files for the
Advanced Installer extension in
Visual Studio 2010 are located at:
Code: Select all
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Caphyon\Advanced Installer 10.5.2
Note: this path contains the
Advanced Installer version (ie. 10.5.2) to emphasize that the extension applies to that particular version. Thus, on upgrades you must manually redo this procedure to keep your custom AI template for
Visual Studio.
Our default project template is loaded by
Visual Studio from:
Code: Select all
ProjectTemplates\AIProject\1033\AI_for_VS_Project_Template.zip
You can edit this archive to contain you template OR you can create a new zip archive for your template. Obviously, we recommend the second approach.
This is the procedure for adding your own
Advanced Installer Project template in
Visual Studio.
- copy AI_for_VS_Project_Template.zip to AI_CUSTOM_TEMPLATE.zip -- this will be the archive for your custom template
- edit AI_for_VS_Project_Template.vstemplate in AI_CUSTOM_TEMPLATE.zip. Just update the <Name> to be able to distinguish it in the Visual Studio new project dialog:
Code: Select all
<Name>Advanced Installer 10.5.2 Project -- Your Custom Template</Name>
- replace AIInstallProject.aip file with your own AI template in AI_CUSTOM_TEMPLATE.zip
Make sure that your custom AI template contain these three elements so that your projects have unique
GUID codes:
Code: Select all
<ROW Property="ProductCode" Value="1033:{$guid1$} " Type="16"/>
<ROW Property="UpgradeCode" Value="{$guid2$}"/>
<ROW Component="SetupMadeWith" ComponentId="{$guid3$}" Directory_="APPDIR" Attributes="4" KeyPath="SetupMadeWith"/>
If you have other questions, please let us know.
Best regards
FOLLOW US
Get the latest news in Application Packaging