I have a scenario where our IT will change the installed JRE version when govt IA tells them too. Is there a way to use the command line interface to AdvancedInstaller.com through GetProperty, SetProperty, or SetBuildJreOnly to be able to get and/or set the JRE version in the aip file? My batch script has a method to determine the JDK version of the local machine (like 1.7.0_71), and I can see that the jdk version exists in the SourcePath attribute of the individual files in the JRE. I cannot seem to be able to use the command line interface to change the contents of
<COMPONENT cid="caphyon.advinst.msicomp.MsiFeatsComponent">
or
<COMPONENT cid="caphyon.advinst.msicomp.MsiFilesComponent">
so that the contents would update to a different JRE. I had to manually open the aip project file and set it there.
If I can't set it, I would ask whether it's possible to get the JRE version number from AdvancedInstaller.com using some flag so that I can inform configuration management (CM) of a JRE mismatch between what is installed on the computer they are building on and what the aip file is configured to. I can scan for a mismatch between the installed version and the xml file using 'findstr /R regex file.aip' using the version string I detected (like "jdk1.7.0_71"), but I'd prefer an AdvancedInstaller method if it's available.
Any suggestions?
Best regards,
John Dill
FOLLOW US
Get the latest news in Application Packaging