Flexera Software Community  

Go Back   Flexera Software Community > Products > InstallShield > InstallShield 2008 > InstallShield 2008 Beta
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-13-2007, 05:50 AM
Christopher Painter's Avatar
Christopher Painter Christopher Painter is offline
Uber User (1000+ Posts)
 
Join Date: Jul 2003
Location: Austin, TX
Posts: 4,049
SABLD ProductVersion and MSBUILD

I was reading there is a new command line switch to pass in ProductVersion as part of the build. Is this supported by the MSBuild task? I don't have VisualStudio installed on my clean machine with IS2008 so I can't tell what changes were made to the ISPROJ files.

Currently I have a custom MSBuild Task written in C# that I use to override the BeforeCompile target. The task updates the IS XML before building the solution. It would be nice to just define a property with the version number and build the solution without any additional plumbing.
__________________
Christopher Painter, Industry Leading Windows Installer Expert
Visit DeploymentEngineering.com for contact information
Note: I am (mostly) retired from the InstallShield Community Forum.
  #2  
Old 03-13-2007, 08:06 AM
MichaelU's Avatar
MichaelU MichaelU is offline
InstallShield Software Engineer
 
Join Date: Jan 2004
Location: Schaumburg, IL
Posts: 3,426
It doesn't look like we have MSBuild support for setting/overriding the ProductVersion yet, but it would be an obvious addition (and hopefully even easy to implement). I've recorded this as IOC-000058042. Thanks for the request!
__________________
Michael Urman - Senior Software Engineer - Flexera Software: InstallShield Team

Last edited by MichaelU : 03-13-2007 at 08:09 AM.
  #3  
Old 03-13-2007, 03:37 PM
MichaelU's Avatar
MichaelU MichaelU is offline
InstallShield Software Engineer
 
Join Date: Jan 2004
Location: Schaumburg, IL
Posts: 3,426
Here's an early drop of this before I've even let QA get their hands on it. If you're curious and want to give it a try, you can drop this file in Program Files\MSBuild\Macrovision\IS2008 (or use it wherever's convenient for you). It adds a new string property to the task with name ProductVersion. Let me know if you have any problems with it; I plan to smoketest it tomorrow because I don't have any convenient MSBuild scripts around.
Attached Files
File Type: zip Macrovision.InstallShield.Tasks.zip (67.3 KB, 303 views)
__________________
Michael Urman - Senior Software Engineer - Flexera Software: InstallShield Team
  #4  
Old 03-19-2007, 01:59 PM
Christopher Painter's Avatar
Christopher Painter Christopher Painter is offline
Uber User (1000+ Posts)
 
Join Date: Jul 2003
Location: Austin, TX
Posts: 4,049
Sorry, I've been too swamped to try to test this. But still, I have another requirement suggestion.... I've had use cases in the past where I don't have enough control over the build output ( third party binaries in some cases ) enough to enforce the component rules. In these scenarios I must treat every build as a major upgrade to make sure that upgrades would work.

It would be nice to have a mechanism in the msbuild and sabld to set a flag telling it to generate a new ProductCode just like the way it'll generate a new PackageCode.
__________________
Christopher Painter, Industry Leading Windows Installer Expert
Visit DeploymentEngineering.com for contact information
Note: I am (mostly) retired from the InstallShield Community Forum.
  #5  
Old 03-26-2007, 07:23 AM
SGorman's Avatar
SGorman SGorman is offline
Mega User (200+ Posts)
 
Join Date: Nov 2001
Location: Clearwater, FL
Posts: 213
I need this also

Quote:
Originally Posted by Christopher Painter View Post
It would be nice to have a mechanism in the msbuild and sabld to set a flag telling it to generate a new ProductCode just like the way it'll generate a new PackageCode.
I have had to do the same thing. For several of my products the dev manager decided that every upgrade should be a Major Upgrade.

I would use this feature if you had it.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Flexera Software Inc. All rights reserved.