cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pshabash
Level 2

Possible to override anything from command line?

Hello,

I'm building the installer from the command line using "build.exe project.iap_xml". I'd like to be able to override some values in the project, so that they could be changed programmatically without modifying the project itself. Specifically I want to set:
- Installer Title
- Installer Name
- Product Name
- Product ID

The closest I've come to figuring this out is to use "-p PropFile.xml" or "-p PropFile.properties". However, the UserGuide only gives the names for a few of the properties that can be modified using those files. I can't figure out how to access the properties I want to change.

Does anyone know how to access any generic property from a prop file?
Or is there some other way to modify values from the command line?

Thanks
Paul
Labels (1)
0 Kudos

(2) Replies
jijujacob27
Level 6

Hi Paul,

You can use Project Automation API to do the same. Open the Project using Project Automation API, make the changes, save the same using Project Automation API and then make the build using an automated build task.

Refer to the user guide and Javadocs for Project Automation API. I am sure that you can change
- Installer Title
- Installer Name
- Product Name

I do not think you can however change the Product ID / GUID dynamically.

Thanks,
0 Kudos
pshabash
Level 2

Looks like it's possible to change the Product ID too that way:

java.lang.Object
com.zerog.ia.auto.project.ProjectObject
com.zerog.ia.auto.project.ProjectDescription
setProductID()

Now I just have to figure out how to run the Project Automation API. 🙂

Thanks
Paul
0 Kudos