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
New Version/Revision - automated
Re: New Version/Revision - automated
This topic applies to InstallAware Multi Platform as well.
This command line build parameter for mia(x)build:
And using Compiler Variables for your software version:
Should take care of it!
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
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
-
- Posts: 118
- Joined: Tue Nov 20, 2012 1:02 am
Re: New Version/Revision - automated
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
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
Re: New Version/Revision - automated
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?
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
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
-
- Posts: 118
- Joined: Tue Nov 20, 2012 1:02 am
Re: New Version/Revision - automated
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
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
Re: New Version/Revision - automated
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?
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
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
Who is online
Users browsing this forum: Google [Bot] and 35 guests