This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Overriding ProductVersion with MSBuild
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 07, 2013
10:58 AM
Overriding ProductVersion with MSBuild
Hi guys,
I'm stucked and I'm sure that the problem is somewhere between the chair and the keyboard.
I'm executing MSBuild in the following way:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>msbuild "D:\XPTO\Solution.sln" /p:Configuration="Release" /p:Platform="Mixed Platforms" /p:ProductVersion="5.0.0.0"
This executes correctly but when I install the setup the version is not 5.0.0.0.
What am I doing wrong?
EDIT: I replaced "ProductVersion" by InstallShieldProductVersion and it works... Is this the correct way?
I'm stucked and I'm sure that the problem is somewhere between the chair and the keyboard.
I'm executing MSBuild in the following way:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>msbuild "D:\XPTO\Solution.sln" /p:Configuration="Release" /p:Platform="Mixed Platforms" /p:ProductVersion="5.0.0.0"
This executes correctly but when I install the setup the version is not 5.0.0.0.
What am I doing wrong?
EDIT: I replaced "ProductVersion" by InstallShieldProductVersion and it works... Is this the correct way?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 08, 2013
02:04 PM
The InstallShield task for MSBuild includes a ProductVersion parameter, which you can use to specify the product version through MSBuild. This parameter is exposed as the property InstallShieldProductVersion when the default targets file is used.