I am using InstallAware 16. I am trying to use a compiler variable to set the version during our nightly builds. The command line is:
miabuild.exe MyInstaller.mia PRODUCTVERSION=1.2.3.4
In my InstallAware project, I set the Product Version to #PRODUCTVERSION#, and I defined the PRODUCTVERSION compiler variable in the Project Settings.
The build occurs just fine (no errors). If I check the properties of the MyInstaller.exe setup file, I see the Product Version as 1.2.3.4. 0 and the File Version as 1.2.3.4. But when I try to install, I get an error dialog that says "Error". The final dialog of the install process says, "The InstallAware Wizard for My Product has fails: "Fatal error during installation". Please check your settings and try again." I also tried the command line build without specifying the PRODUCTVERSION and got the same error.
What am I doing wrong?
Problems using compiler variables from command line
-
- Posts: 44
- Joined: Fri Apr 12, 2013 2:30 pm
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Problems using compiler variables from command line
Dear John,
did you follow the same approach as demonstrated with the sample "Title & version with a compiler variables", available from the following link?
http://www.installaware.com/forum/viewtopic.php?f=2&t=8927
Regards
did you follow the same approach as demonstrated with the sample "Title & version with a compiler variables", available from the following link?
http://www.installaware.com/forum/viewtopic.php?f=2&t=8927
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 44
- Joined: Fri Apr 12, 2013 2:30 pm
Re: Problems using compiler variables from command line
Yes, as far as I can tell. I did a lot of reading on the forum about this (there is a bunch of information there!), including downloading the sample you had posted. I thought I had everything set up correctly. As I said, it appears to work, because the build succeeds and the setup file actually displays the correct values for the version. Its just that the install process crashes after the last step in the wizard.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Problems using compiler variables from command line
Dear John,
if your package crashes, I really suppose exist a problem with the way you used to handle that compiler variable in your project ... or it could exist a different cause that generates your issue.
If you try to compile the sample ... does it work fine?
Regards
if your package crashes, I really suppose exist a problem with the way you used to handle that compiler variable in your project ... or it could exist a different cause that generates your issue.
If you try to compile the sample ... does it work fine?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 44
- Joined: Fri Apr 12, 2013 2:30 pm
Re: Problems using compiler variables from command line
The sample you provided builds and installs fine.
The only place I am using PRODUCTVERSION is in the Product Version field, similar to how you used MYVERSION (#PRODUCTVERSION#). I even tried renaming my variable to MYVERSION. The install still crashes.
Could it have something to do with the type of install project I have? I noticed a different set of dialogs in the wizard of the sample (different from the ones in my project).
I just tried creating a new installer project using the Quick Start. Then I created a PRODUCTVERSION compiler variable and set the Product Version to #PRODUCTVERSION#. The build and the install completed without error.
I don't have the time right now, but I will try creating my application's installer project all over again and see if that corrects the problem. Maybe I damaged something in my project. I will let you know how it goes.
The only place I am using PRODUCTVERSION is in the Product Version field, similar to how you used MYVERSION (#PRODUCTVERSION#). I even tried renaming my variable to MYVERSION. The install still crashes.
Could it have something to do with the type of install project I have? I noticed a different set of dialogs in the wizard of the sample (different from the ones in my project).
I just tried creating a new installer project using the Quick Start. Then I created a PRODUCTVERSION compiler variable and set the Product Version to #PRODUCTVERSION#. The build and the install completed without error.
I don't have the time right now, but I will try creating my application's installer project all over again and see if that corrects the problem. Maybe I damaged something in my project. I will let you know how it goes.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Problems using compiler variables from command line
...let me know.
Regards
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 44
- Joined: Fri Apr 12, 2013 2:30 pm
Re: Problems using compiler variables from command line
I was able to get this to work. I must have been doing something wrong. Wasn't the first time. *sigh* Probably won't be the last time, either.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Problems using compiler variables from command line

Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 106 guests