New Version/Revision - automated

Got a problem you cannot solve? Try here.
anja_laenge
Posts: 118
Joined: Tue Nov 20, 2012 1:02 am

New Version/Revision - automated

Postby anja_laenge » Thu Sep 05, 2024 3:41 am

Hi,

We have a setup that is created automatically by calling miabuild.exe with the appropriate parameters. Works great.
Now there is a new requirement and there should be an additional setup creation method: also script-driven, but a new version should be generated with a version number provided by the script.
For it to be a new version, the setup needs a new revision guid.
Both pieces of information are stored in the .mpr file and can be edited by the script.

At this point my problem is: I see the corresponding information when I look at the file, but there is no identifier like in an .ini file, the line number does not seem to remain constant when changes are made to the setup.
Is it safe to replace old with new version number and old with new revision guid or is there a unique and safe way to do thiss? Using the InstallAware UI is not an option here.
Is there a file format description available?

Kind regards
Anja

JohnGaver
Posts: 111
Joined: Mon Feb 05, 2024 6:15 pm

Re: New Version/Revision - automated

Postby JohnGaver » Thu Sep 05, 2024 8:33 am

This topic applies to InstallAware Multi Platform as well.

This command line build parameter for mia(x)build:

Code: Select all

/r          Generate new revision code

And using Compiler Variables for your software version:

Code: Select all

[COMPILERVAR1=VALUE1 ... COMPILERVARN=VALUEN]

Should take care of it!
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm

anja_laenge
Posts: 118
Joined: Tue Nov 20, 2012 1:02 am

Re: New Version/Revision - automated

Postby anja_laenge » Tue Sep 10, 2024 2:52 am

Hello John,

this works very well, thank you.

Is there a way to keep track of the generated revision code?
I could do this by running a powershell script in postbuild to retrieve the values from the msi database but if a build-in way is available I'd prefer to use that.

kind regards
Anja

JohnGaver
Posts: 111
Joined: Mon Feb 05, 2024 6:15 pm

Re: New Version/Revision - automated

Postby JohnGaver » Wed Sep 11, 2024 6:12 pm

Not really, the revision code isn't consumed anywhere else, unlike the product code.

Do you have a need for the revision code which we have failed to anticipate?
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm

anja_laenge
Posts: 118
Joined: Tue Nov 20, 2012 1:02 am

Re: New Version/Revision - automated

Postby anja_laenge » Thu Sep 12, 2024 2:54 am

Hello John,

no problem;
since the code is no longer persisted in the .mpr we will not be able to use the same method for logging of the results as in other projects but injecting a script call in the post-build should work as well.

kind regards
Anja

JohnGaver
Posts: 111
Joined: Mon Feb 05, 2024 6:15 pm

Re: New Version/Revision - automated

Postby JohnGaver » Thu Sep 12, 2024 9:56 am

Can you describe in a little more detail the logging you are trying to do?

The command line build tool will already report the success/failure of the build process.

The product code is used to query whether the product is currently installed (or not).

Where exactly are you trying to consume the revision code?
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installaware-multi-platform.htm


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 21 guests