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!

codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

1 aip for multiple configs

We currently have 4 aip files and the only difference is the web config. Each aip creates a different installer for the region we're installing it to. Is there a way to use 1 aip file that would create the 4 installers, each with its own web config?

Thanks in advance,
Scott
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: 1 aip for multiple configs

Hello Scott and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can take a look on our "Install a user specific file" article.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: 1 aip for multiple configs

Sorry for the delay in a reply, got put on other tasks and finally getting back to this. I'm new to Advanced Installer, so I apologize for any dumb questions.

This way seems like I'd still need to have 1 aip file for each type of install.

Would there be a way to put all 4 of our web.config files into the Files and Folders list, but create 4 MSIs, each with a different web.config file?

Does the aip build command take a paramenter? Like the Files and Folders would have a place holder and I could plug in the web.config when building the aip. Maybe a way it could loop through a folder of web.config files and create an msi for each one. These are just thoughts i have on ways it could be done, but not sure if it's possible or not.

We have an automated build system and it's a nightmare to manage all the aip files and bat files.

Thanks in advance.
Scott
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: 1 aip for multiple configs

Hello Scott,

In order to achieve this you can create four builds in "Media" page. Then you can add the related web.config files in "Files and Folders" page and, in "Organization" page, move the web.config components in separate features. For every feature you can choose, from "Features Properties -> Builds" section, to include it in a specific build.

Here are the steps to proceed:
- Go to "Media" page and create four builds.
- Go to "Files and Folders" page and add your web.config files.
- Go to "Organization" page and move the web.config components in separate features. If they are added in the same component, then you can create a component for each one of them using the "Move to New Component" context menu option.
- Select the related feature and, from "Features Properties -> Builds" section, choose the builds where to include it.
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: 1 aip for multiple configs

Thanks Daniel. I think that's a better way than how I currently have it. In media tab i call a batch file that copies the config files to the folder of my main set of files.

I like the idea of including the files in separate components instead. Do I need to add the web.config for each region I have? So in my Target Computer --> Application Folder --> my app I will have to add all 4 config files, but then separate them based on component?

Would it be possible to have beta1, beta2, alpha1, and alpha2 components all included in the msi and at install time i pass in a parameter that tells the msi which files to install?

So instead of building 1 msi for each I'd have 1 msi that could be installed on any of the 4.

Thanks in advance.
scott
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: 1 aip for multiple configs

Hello Scott,
I like the idea of including the files in separate components instead. Do I need to add the web.config for each region I have? So in my Target Computer --> Application Folder --> my app I will have to add all 4 config files, but then separate them based on component?
Yes.
Would it be possible to have beta1, beta2, alpha1, and alpha2 components all included in the msi and at install time i pass in a parameter that tells the msi which files to install?

So instead of building 1 msi for each I'd have 1 msi that could be installed on any of the 4.
Yes, you can achieve this. You can add a condition for related files components installation, in the "Component Properties" pane, using an installer property. You can take a look on our "Show a custom feature selection dialog" article which should be useful for you.

Also, you can set the related property from command line.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: 1 aip for multiple configs

I add one of the web.config files and move it to it's own component, but when I go to add the 2nd web.config file it tells me the same file already exists and if I want to overwrite it. How do I get past all 4 web.config files having the same name? I know I could rename them, but they application expects it to be a web.config file?

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

Re: 1 aip for multiple configs

Hello Scott,

In order to achieve what you want you can take a look on our "Install files with the same name" article which debates a similar issue.

If you have any questions let us know.

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

Return to “Building Installers”