Parameter injection - 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!

davyvc
Posts: 1
Joined: Wed Jun 22, 2011 2:44 pm

Parameter injection

Hi,

I'm evaluating Advanced Installer to see if we can use it in our company to create automatic installation packages for .NET applications. In this respect I would like to know if it is feasible to change the configuration files of our .NET applications at installation time of the MSI on basis of another parameter file. Let me explain more in detail what I want to do:

Out of the build process I want to create one MSI. This MSI is then afterwards installed in our various environments (TEST, ACCEPTANCE, PRODUCTION, etc.). While the binaries will be each time the same, the configuration options will differ from environment to environment. In other words, I need to change the configuration file at installation time. However I want to change this configuration file based on settings in another file that is changed and maintained outside the MSI (even by another team than the team the actually creates or delivers the MSI). Or to say it more technically: injecting my configuration file with parameters stored in another file.

Thanks for the feedback.

Best regards,
Davy
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Parameter injection

Hi Davy,

Thank you for your interest in Advanced Installer.

If your configuration file is an XML, you can use our XML editor to modify it dynamically. If it's a text file, you can use our text update feature. You can set dynamic values by using installer properties. Please note that both features are available only in Enterprise and Architect projects.

Regarding the external configuration file, there are multiple approaches:
1. A solution is to use a response transform. This is done through the "Wizards" -> "Transform" menu in Advanced Installer. You will obtain a MST transform which modifies the original MSI. In your case you can use a different transform for each environment.
2. Another solution is to place the configuration file next to the MSI and use a custom action to read it. This custom action can set the XML or text update properties based on what it reads.

Let us know if you need more details.

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

Return to “Common Problems”