Save As Template not working? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Save As Template not working?

My understanding is that File > Save As Template... creates a copy of the project with different GUIDs. This does not appear to be working in 6.3.1. I tried multiple times, and the generated project file has identical ProductCode and UpgradeCode (I didn't compare the other GUIDs).
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Save As Template not working?

Hi,
My understanding is that File > Save As Template... creates a copy of the project with different GUIDs.
This is not actually true. The "Save As Template" option will save an exact copy of your project. When you create a new project using this copy (template), Advanced Installer will automatically generate new GUIDs. The template feature is designed for creating new projects from a template, not for saving a project as a different one.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Save As Template not working?

I just shot myself in the foot on this one. In hindsight it's obvious - you've just created a template; create from that.

Is there any reason you don't change the extension to .ait or .aipt? A safety value would be opening this extension type would result in "Why are you opening the template? Want to create a new project from it?"

What am I actually doing when I create a template? Is it just putting it in the "Custom Templates" tab of the New Project Dialog?

Why would you let me store a template anywhere I wanted? Default to a "templates" directory. This was part of the confusion. It was taunting me to put it in my new project directory.

When creating a template why don't you strip out the GUIDs (I see that's all that changes between template.aip and created_from_template.aip? Another safety value you could detect the user was doing something they shouldn't. I see the only difference between my original and the template is the ProjectFolder changed.

Please improve this feature.
invalidptr
Posts: 79
Joined: Thu Nov 18, 2010 7:10 pm

Re: Save As Template not working?

Fellow users... if you've tripped on this he's a quick fix.

- Base project is named: MySetup.aip
- Save it as a template: MySetupTemplate.aip
- Create a new project based on the template: MySetupFromTemplate.aip
- Delete MySetup.aip
- Rename MySetupFromTemplate.aip to MySetup.aip
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Save As Template not working?

Hi,

We will try to improve this feature in a future version. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”