aps_brar
Posts: 8
Joined: Wed Jul 29, 2009 6:42 am

Two Msi from one aip

We have a requirement in our project where we need to produce 2 Msis with files that have same names but are to be picked up from different folders. We need to do this to automate our testing, all our binaries are obfuscated and for automating testing the test team needs unobfuscated binaries but as a product that goes out to the market we need to ship the installer with obfuscated binaries. Build is automated and once MsBuild produces all the .Net assemblies they are put through the obfuscation engine which produces a duplicate set of these assemblies but in a different folder, at this point advanced installer is called from commndline and path to our default aip is passed as a parameter to build the installer, this aip picks our assemblies from the obfuscated folder.

Now I want that I can still use the same aip (so there is no hassle of maintaining 2 aips) and tell it to pickup some files fom a different folder. Is there any way this can be achieved or what is the most efficient way to achieve this so that there is least maintenance.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Two Msi from one aip

Hi,

Since you don't wish to use two aip files the most efficient solution using a command line script is the following:
-- create two MSI builds in the Media page, in your aip file, each build will contain the package built using the files from one of the locations
-- now for selecting the files you can easily use our synchronization option

Here is a short scenario of the steps that you could try to accomplish every time you build your packages (all this can be done from the command line):
-- edit the aip file and synchronize its folders with the first location of the files
-- launch the build operation for the first build only
-- now edit the aip file again and reset the synchronized folders to the second location
-- after this launch the build operation for the second build from the project

The purpose of the two builds is for you to set different output files and paths for the MSI/EXE package that you are creating.

Please let us know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”