pberggreen
Posts: 2
Joined: Thu Jan 24, 2008 10:35 am

Is it possible to use a property to set package folder?

I would like to be able to set the folder where AI generates the .msi file using a property. In particular I would use a different folder for each version. Is that possible?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Note that by default the installation package is generated next to the AIP file. However, you can set in the "Media" page the folder in which the installation package will be generated (in the "Package" section).

I'm afraid that you cannot set this folder by using a property (what you need can be done only by manually specifying the folder for every version). However, you can use a property to define the name of the package (in the "File Name" field in the "Package" section).
http://www.advancedinstaller.com/user-g ... a-tab.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Quadiago
Posts: 71
Joined: Thu May 31, 2007 9:07 am

Hi Cosmin and green

Funnily, this is actually possible:

* Open the AIP file in a text editor
* Find the section "caphyon.advinst.msicomp.BuildComponent"
* Edit the build you have in mind's "PackageName" to include "[|ProductVersion]" (without the quotes)
For example to:

Code: Select all

PackageName="C:\Build\MyApp\v[|ProductVersion]\MyApp.msi"
* Open the package in Advanced Installer and build :)

It's a hack, but it works...

Return to “Common Problems”