[wix-users] C# dll not updating unless assembly version changes
Stewart Lynch
stewartlynch8 at gmail.com
Fri Feb 17 04:35:59 PST 2017
Hi,
I have a C# dll which is included in my installer which isn't getting
updated when installing over a pre-existing install. If I then do a repair
install the file does get updated.
The other dlls in my package update fine, the only difference with this one
is that I was not updating the C# AssemblyVersion and AssemblyFileVersion
numbers. If I change the assembly version each time I build a new version it
updates fine.
So, two questions:
1. Is this a bug in Wix where the dll won't update if the assembly
version doesn't change?
2. Should I be updating the assembly version number for my dlls each
time I build a new installer?
I have always updated the assembly version for each install (except for this
dll which I missed) but I've never been sure if this is actually necessary.
This is what my assembly version looks like:
AssemblyInfo.cs
// Version information for an assembly consists of the following four
values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision
Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.58.0.0")]
[assembly: AssemblyFileVersion("1.58.0.0")]
This is my installer xml:
.
<Fragment>
<ComponentGroup Id="FrameProExe_Components"
Directory="INSTALLLOCATION">
<Component
Id='FrameProExe_HDataGrid_dll' Guid='8b81fa3a-e74b-4e7f-93e4-360ca8ac88e6'
Win64='yes' >
<File
Id='FrameProExe_HDataGrid_dll_file' Name='HDataGrid.dll'
Source='..\..\..\Build\FramePro\bin\x64\release\HDataGrid.dll' KeyPath='yes'
/>
</Component>
.
I'm using Wix Toolset v3.10.
Thanks for any help.
Stewart.
PureDev Software
More information about the wix-users
mailing list