An idea for automating my builds...

Got a problem you cannot solve? Try here.
wolbrink
Posts: 76
Joined: Wed Nov 17, 2004 3:00 pm

An idea for automating my builds...

Postby wolbrink » Wed Jan 11, 2006 4:15 pm

Previously I mentioned that I'd like a way to automatically specify the Product Version via miabuild.exe. (I really hate having manual steps in my build process, and this is the only one!)

But now, I'd like to slightly change my request. I noticed that I can specify compiler variables via miabuild. In light of this, and to provide the ultimate in flexibility, I'd like the ability to specify any project option (which is editable with a text box) with the use of a compiler variable.

For example, let's say I were to add a compiler variable called: BUILD_VER. I'd like to be able to put #BUILD_VER# as the Product Version in the "Project Options" dialog.

This would:
1. Solve my problem, allowing me fully automated builds.
2. Require no changes to miabuild.
3. Provide for future automation that I can't think of. :D

--Troy

scott
Posts: 5
Joined: Wed Jan 11, 2006 10:42 pm

Postby scott » Wed Jan 11, 2006 10:44 pm

I'll second that suggestion. We need it for the exact same reason in fact, but I can see the potential in the flexibility of the broad use of compiler options.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Jan 12, 2006 9:01 pm

This feature has been added into the latest update.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

wolbrink
Posts: 76
Joined: Wed Nov 17, 2004 3:00 pm

Postby wolbrink » Mon Jan 16, 2006 4:25 pm

Thank you! :D

casic
Posts: 260
Joined: Thu Mar 17, 2005 4:02 am
Location: Germany
Contact:

Postby casic » Tue Jan 17, 2006 1:03 am

The new feature is great! Thanks a lot!

Would it be possible to set the product version also to the built setup-exe? (I work mainly with the product version to automate processes, f.e. automated upload...).

Thanks,

Markus
Markus Diettrich
InstallAware MVP
If it can't be done with InstallAWARE then you are not using Windows

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jan 17, 2006 7:52 am

Hi Markus

This is indeed possible - just use compiler variables for that version field also :)
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

casic
Posts: 260
Joined: Thu Mar 17, 2005 4:02 am
Location: Germany
Contact:

Postby casic » Tue Jan 17, 2006 8:58 am

Sorry, I meant:

I currently use a compiler var to set the version. When the setup was built and I look at the properties of the generated setup.exe only the file version is set. Would it be possible to set also the product version (and maybe the product name, f.e. to $TITLE$)?

Thank you,

Markus
Markus Diettrich

InstallAware MVP

If it can't be done with InstallAWARE then you are not using Windows

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jan 17, 2006 9:08 am

Oh, I am sorry I misunderstood. Currently those fields are not set during builds - I'll pass your recommendation to the product team!
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

stampy
Posts: 29
Joined: Tue Jan 03, 2006 5:50 pm
Location: los angeles

Postby stampy » Wed Jan 18, 2006 7:20 pm

I've installed the 5.0.1 update and find that I can substitute a compiler variable in my Output/Custom Folder and it builds where I would expect it. However, when I "compile" it, I get the error: "Unable to create directory". If I change the path back to a hardcoded value, it compiles ok.

Also when I substituted the Output filename with a compiler variable I can't debug the setup: "Please make a debug build of your project..." and I have already built with the "debug" checkbox selected.

A bug perhaps? Or am I making substitutions where I shouldn't be?

Thanks!

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Jan 18, 2006 9:16 pm

I believe both issues you have reported here are limitations in the substitution mechanism. I'd recommend not using compiler variables until everything is tested and working properly to avoid these issues.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 135 guests