Bug with Custom template in Visual Studio for version 10.8 - Advanced Installer Community
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Bug with Custom template in Visual Studio for version 10.8

I have a custom template that I have been using in Visual Studio. I followed the instructions as outlined in a previous question that I had i.e. http://www.advancedinstaller.com/forums ... 448#p66750

This worked for a few versions. Whenever I upgraded AI I would copy over the template to the new installation directory. I have now upgraded to version 10.8 and when I attempt to create the project in Visual Studio it simply adds the default values to the project. I have checked the project template and my organisation name is there but once the template is used it simply reverts to the default value of "Your Company". This is the same with all the other settings. None of my prerequisites, launch conditions or custom folders are present. Looking at the options the project was reverted to a simple project rather than professional.

Thanks

David
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Bug with Custom template in Visual Studio for version 10

Hello David,

Indeed, starting with our last version of Advanced Installer the related workaround (creating AI project template for VS) is no longer available. The related approach could have been performed due to an old Advanced Installer bug. However, as a workaround, in order to use an existing project (i.e. template.aip) for the default "Advanced Installer 10.8 Project" in VS you can proceed like this:
- open Visual Studio and create (or add to your solution) a new "Advanced Installer 10.8 Project"
- select the created (e.g. "AI Setup Project1") project and under it remove the .aip file (e.g. "AI Setup Project2.aip")
- add your "template.aip" under the above setup project (AI Setup Project1) using its "Add -> Existing item..." context menu option

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Bug with Custom template in Visual Studio for version 10

I don't understand how the previous approach was available due to a bug! In what way is what I am doing different from what you are doing in providing a standard template? The problem with doing it the way you suggested is that you do not get the unique guids that come with template. This is a real shame. Which version did this "bug fix" come in? Was it 10.8? In which case I will have to consider going back down to 10.7 as this functionality was important to the way that I work.

David
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Bug with Custom template in Visual Studio for version 10

Hello David,

We apologize for this inconvenience. The latest AI version in which you can use the related approach (creating AI project template for VS) is Advanced Installer 10.6. However, I've talked with our develoment team about this scenario and, starting with our next version of Advanced Installer they have revived (specially for you) the workaround for creating AI project template for VS. We will notify you when this will be available.

Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zeiddev
Posts: 103
Joined: Sat Aug 10, 2013 12:30 am

Re: Bug with Custom template in Visual Studio for version 10

Thank you. I really appreciate it as I have found it a real boost to my productivity. My templates are somewhat complex so having them available in Visual Studio is really helpful.

Thanks

David
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Bug with Custom template in Visual Studio for version 10

You're welcome David.

We'll notify you when our next version of Advanced Installer will be out.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Bug with Custom template in Visual Studio for version 10

Hello David,

Starting with version 10.9 of Advanced Installer released on January 23, 2014 you can create again a custom Advanced Installer project template for Visual Studio. Please take a look on "Apply template to Visual Studio setup project" thread.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”