Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-04-2004, 06:04 PM
shafjac shafjac is online now
Registered User
 
Join Date: 02-04-2004
Posts: 8
Question DevStudio Installer Version

Is there any way to set the version for a DevStudio installer without using script? I've set the version appropriately in the Versions tab of the Make VS.Net action, checked "File Version" and "Product Version", but when the installer is built, it maintains the design-time version, not the one I specify.

Is this a bug? Or is there another way to get this done via integration?
Reply With Quote
  #2  
Old 02-04-2004, 06:55 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
As indicated in the help topic for the Make VS.NET action

"It supports VC++.NET (managed and unmanaged), Visual C#, VB.NET, and J# .NET projects (other project types in a solution will be built, but the added features will not be performed)..."

Since a setup (.vdproj) file is just a text file, you could use the Replace in File action to set the version, something like this (you can copy and paste this step into VBP):


<step action='Replace in File' type='0'>
<FileIn>%VDPROJ_FILE%</FileIn>
<FileOut>%VDPROJ_FILE%</FileOut>
<Find>"ProductVersion"\s*=\s*"8:([[^"]]*)"</Find>
<Replace>"ProductVersion" = "8:%BUILD_NUM%"</Replace>
<indent type='3'>1</indent>
<name>Set Version</name>
</step>
Reply With Quote
  #3  
Old 02-05-2004, 04:36 PM
shafjac shafjac is online now
Registered User
 
Join Date: 02-04-2004
Posts: 8
Thanks again!

That did the trick. Thanks for the help!
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:33 PM.


Copyright © 1999-2023 Kinook Software, Inc.