kiv
Posts: 12
Joined: Sat May 20, 2006 4:09 pm

Use different source files with same .aip file

I have several build configurations (lets say trial, profesional, enterprise), which are installed exactly the same way. My build output goes into different folders - e.g. out\trial, out\pro, out\ent

I want to have a single .aip file and from a batch file instruct it which source folder to use, so I can produce the three installers.

What is the best way to do that (I can always rename folders from the batch file, but I kindof don't like that).

Thanks in advance,
KIV
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

What you mean with "several build configurations". Please give me more details.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
kiv
Posts: 12
Joined: Sat May 20, 2006 4:09 pm

Same binary names, same folder structure, just build differently (feature-locked for example)

Here is example folder structure

install
--installer.AIP
out
--trial
----executable.exe
----dll1.dll
----dll2.dll
--pro
----executable.exe
----dll1.dll
----dll2.dll
--ent
----executable.exe
----dll1.dll
----dll2.dll
Corrupter
Posts: 9
Joined: Sat Nov 25, 2006 10:44 pm
Location: US NE
Contact: Website

kiv i was looking extensively for batch operations in the advanced installer program and i didnt find anything. I found that i had to manually set the new path output and reference to which feature to use each time.

That doesnt mean it doesnt exist though. Definitly let us know if you find it, i'd give you a hug for sure =).
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Kiv,

You can specify the build folder for your project using the /SetPackageName command line in the .aic file (file of commands). For example you can have this sequence of commands:

Code: Select all

SetPackageName \trial\Name.msi
build -force
SetPackageName \pro\Name.msi
build -force
SetPackageName \ent\Name.msi
build -force
To read more about executing a file of commands please see:
http://www.advancedinstaller.com/user-g ... -line.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”