View Full Version : DevStudio Installer Version
shafjac
02-04-2004, 06:04 PM
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?
kinook
02-04-2004, 06:55 PM
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>
shafjac
02-05-2004, 04:36 PM
That did the trick. Thanks for the help!
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.