Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not being updated correctly #5574

Closed
christophedemey opened this issue May 5, 2017 · 2 comments
Closed

File not being updated correctly #5574

christophedemey opened this issue May 5, 2017 · 2 comments
Labels

Comments

@christophedemey
Copy link

christophedemey commented May 5, 2017

  • Which version of WiX are you building with?

3.10.3.3007

  • Which version of Visual Studio are you building with (if any)?

15.1 (26403.7)

  • Which version of .NET are you building with?

4.5

  • If the problem occurs when installing your packages built with WiX, what is the version of Windows the package is running on?

Windows 7 (6.1 Build 7601 Service Pack 1)

  • Describe the problem and the steps to reproduce it.

My installer has a file 'amazingcomponent.DLL', this file has been in the installer for many versions.
This DLL was updated recently and supplied by a nuget package but has remained it's name, so i did not have to update any of my wxs files or installer files.
My application v26 contains this updated DLL.
When i update from a version prior to the DLL update : v25 to v26 this happens :

  • removing components fase : OK
    The amazingcomponent.DLL is removed by the update.
  • installing new components fase : NOK
    The amazingcomponent.DLL is not copied back in by the update.

When i repair the installation v26 the amazingcomponent.DLL appears.

I attached the MSI Installer log from the update process.
This is my component registration side of my wxs file :

<Component Id="DJA.Standard.Web.Middleware.dll" Guid="{5B8725FC-8100-44F7-8B35-6A06A92DA8D0}">
              <RemoveFile Id="Remove_DJA.Standard.Web.Middleware.dll" Name="DJA.Standard.Web.Middleware.dll" On="uninstall"/>
              <File Id="DJA.Standard.Web.Middleware.dll" KeyPath="yes" Source="$(var.Releasepath)DJA.Standard.Web.Middleware.dll" />
            </Component>
  • Describe the behavior you expected and how it differed from the actual behavior.

I expected the old DLL to be removed (OK) and to be replaced with the DLL (NOK).

I have checked the installerlog myself but could not find any error messages, i do however see that the file is removed and not copied back in, but there does not seem to be a reason in the log for it.

Thanks

installerLog.txt

@barnson
Copy link
Member

barnson commented May 5, 2017

For support, please contact the wix-users mailing list.

@barnson barnson added the support label May 5, 2017
@barnson barnson closed this as completed May 5, 2017
@christophedemey
Copy link
Author

christophedemey commented May 7, 2017

Hi

I would like to answer this issue even though it's closed.
In the hope it helps somebody someday.

In my log i have :
MSI (c) (F0:DC) [09:51:29:216]: Disallowing installation of component: {5B8725FC-8100-44F7-8B35-6A06A92DA8D0} since the same component with higher versioned keyfile exists

The dll that was being the issue was going from version 1.0.4 to 1.0.2 and this caused this behaviour.

Solution : Making sure the dll was higher than 1.0.4.

Thanks to the wix mailing lists for helping me resolve this problem. (Nir Bar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants