Summary
This article provides sample code which will modify the product version for a project.Synopsis
The Project Automation API allows the installation developer to manipulate a project using Java code, without requiring use of the Advanced Designer. This article provides sample code which will modify the product version for a project.Discussion
A simple Java application used to open a project file, modify a project setting, and then close and save the project file might look similar to the following:import com.zerog.ia.auto.project.*;
public class ProjectApiTest
{
public static void main(String[] args)
{
Project iap = ProjectAutomation.loadProject("C:\\MyProject.iap_xml"); //change path to your project file
ProjectDescription desc = iap.getProjectDescription( ); //access the settings in Project > Description task
Version ver = desc.getProductVersion( ); //Version object gives access to version fields
ver.setMajor(1);
ver.setMinor(2);
ver.setRevision(3);
ver.setSubRevision(4);
ProjectAutomation.saveProject(iap); //save and close the project
System.exit(0);
}
}
After compiling this code and running it, the specified project file should reflect the new version which was set when opened in the Advanced Designer. Beyond the project-wide settings exposed in the ProjectDescription and similar classes, the Project Automation API provides classes that represent a project?s hosts: OSHost for the project?s Operating System host, DBHost for the project?s Database Server hosts (if any), and JEEHost for the project?s Application Server hosts (if any). These hosts contain the relevant files and actions delivered by your installer. Most items contained in these hosts have corresponding classes in the Project Automation API.
Additional Information
For a complete listing of the Project Automation APIs which are available, open the file index.html in the <IA home>/project-auto/javadocs folder.Was this helpful?
Related Articles
Project Automation API InstallDirectory 3Number of Views Running Project Automation Java Class with 64-bit JDK Results in Error 3Number of Views Use PowerShell to Create a Project and Add a PowerShell Custom Action Using the InstallShield Automation Interface 14Number of Views Using the Automation Interface to Build a Project 5Number of Views Building a Project Using the Automation Interface 3Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago