It would really be nice if we could have the Version for the setup kit extracted from one selected file in the list of source files. I'm sure that almost everyone has had the experience of pushing out a new application version, and forgetting to update the Version value for IA.
If anyone knows of how to accomplish this with current features (other than by using the automation interface in the Admin version), please let the rest of us know!
Getting Version Number from Application File
-
fletcherjames
- Posts: 32
- Joined: Mon Mar 13, 2006 3:36 pm
- Location: Leesburg, VA
- Contact:
Getting Version Number from Application File
Fletcher James
-
CandiceJones
- Posts: 904
- Joined: Thu Dec 22, 2005 7:03 pm
- Contact:
-
fletcherjames
- Posts: 32
- Joined: Mon Mar 13, 2006 3:36 pm
- Location: Leesburg, VA
- Contact:
I'm a bit frustrated...
1. I just looked into the documentation for the automation, for the 1st time. Unless I'm mistaken, this only allows you to generate a setup if you're willing to program every single step from scratch, and that seem to apply both to the Win32 API style and the COM style interfaces. I had hoped that your automation interface would be more of a "document" oriented structure (a document would be a project) so that you could simply say:
Set IA = New InstallAwareApplication
Set prj = IA.Open sPathToMyProject
prj.Version = "1.0.0.121"
prj.Build
Apparently, that's not possible.
2. I also looked into whether I could simply find the text file which included the spec for the version number, so that I could modify that file, and build from the command line. I have loads of utilities which allow me to modify XML or .INI-style files, so anything which said:
[ProjectProperties]
Version=1.0.0.121
would be a breeze to deal with. Unless I'm missing something, I don't think that this approach will work either, because I couldn't find any file in the entire folder, which had an ascii version of my version number.
3. I noticed that IanM had the same request on the 15th. Certainly one quick-and-dirty solution for THIS requirement, from your end would be to add a command line parameter to msibuild:
/v=1.0.0.121
1. I just looked into the documentation for the automation, for the 1st time. Unless I'm mistaken, this only allows you to generate a setup if you're willing to program every single step from scratch, and that seem to apply both to the Win32 API style and the COM style interfaces. I had hoped that your automation interface would be more of a "document" oriented structure (a document would be a project) so that you could simply say:
Set IA = New InstallAwareApplication
Set prj = IA.Open sPathToMyProject
prj.Version = "1.0.0.121"
prj.Build
Apparently, that's not possible.
2. I also looked into whether I could simply find the text file which included the spec for the version number, so that I could modify that file, and build from the command line. I have loads of utilities which allow me to modify XML or .INI-style files, so anything which said:
[ProjectProperties]
Version=1.0.0.121
would be a breeze to deal with. Unless I'm missing something, I don't think that this approach will work either, because I couldn't find any file in the entire folder, which had an ascii version of my version number.
3. I noticed that IanM had the same request on the 15th. Certainly one quick-and-dirty solution for THIS requirement, from your end would be to add a command line parameter to msibuild:
/v=1.0.0.121
Fletcher James
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
You can edit the .MPR plain text file to directly inject version information. As long as you update the line that contains the version information, and preserve the rest of the file, this approach will work.
The .MPR file is a plain text file with an ASCII representation of the version number used in your project.
The .MPR file is a plain text file with an ASCII representation of the version number used in your project.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
-
fletcherjames
- Posts: 32
- Joined: Mon Mar 13, 2006 3:36 pm
- Location: Leesburg, VA
- Contact:
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
-
fletcherjames
- Posts: 32
- Joined: Mon Mar 13, 2006 3:36 pm
- Location: Leesburg, VA
- Contact:
-
fletcherjames
- Posts: 32
- Joined: Mon Mar 13, 2006 3:36 pm
- Location: Leesburg, VA
- Contact:
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:

