We use a version numbering scheme which is compatible with the AdvancedInstaller versions. That is, <major number>.<minor number>.<revision>, with an optional .<hot fix>. This seems to work fine. However, we use git to provide these releases via 'git describe'. This works in cases where we have tagged the version we are building, but in cases where we have not tagged the version we are building, git describe returns the most recent tag, the commits since that tag, and the hash for that commit. This does NOT work for AdvancedInstaller.
I then tried an end-around by changing the version in the ini files AI creates for each of our applications. That seemed to work. Here is an example of the ini with changes (bolded and red):
[Java Runtime Environment]
Main Class=com.cengen.labs.noplan.def.gateway.console.app.OperatorConsoleApp
Maximum Version=any
Minimum Version=1.6
Virtual Machine Parameters=-Xmx1024M -Dclient_version="5.0.3.3-117-gdeadbee" -Doc_confdir="C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\etc\managementsuite\projects\drsinternal\console" -Doc_datadir="C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\managementsuite\components\gateway\" -Djavax.net.ssl.trustStore="C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\ssl\cengengatewayca.jks" -Dnp_datadir="C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\noplan" -Dsave.files=True -Dwith.wipn=true
[Application]
Application Type=gui
Failure Check=yes
Cmd="--definition "C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\managementsuite\projects\drsinternal\xml\definition\noplan-drsinternal.xml" --layout "C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\managementsuite\projects\drsinternal\xml\layout\console\console_layout.xml" --gwconfig "C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\etc\voicecallmanager\voicecallclient.xml" --phonebook "C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\etc\voicecallmanager\phonebook.xml""
[Class Path]
Class Path=C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\libs\apache-xmlrpc\ws-commons-util.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\libs\apache-xmlrpc\xmlrpc-client.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\libs\apache-xmlrpc\xmlrpc-common.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\libs\apache-log4j\log4j.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\libs\javahelp\jhall.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\libs\jmf\jmf.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\voicecallmanager\libs\voicecallmanager-client.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\noplan\libs\noplan.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\managementsuite\components\gateway\libs\gateway-console.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\managementsuite\projects\drsinternal\help\help.jar;C:\Program Files (x86)\DRS Technologies\DRS Gateway Management Suite\share\voicecallmanager\help\callmanager_help.jar;
[Product Information]
Upgrade Code={1E303C35-89C7-486D-9A02-7C3262FE179D}
Product Code={DEB31075-1298-4DF4-8120-9558DECDCA6F}
Product Name=DRS Gateway Management Suite
And this is the result on the application:
My question is, can I modify the project file to reflect these versions, or will doing so cause other problems?
Thanks,
Rick
FOLLOW US
Get the latest news in Application Packaging