[wix-users] Question on the copy order of companion files

Jerry Chung jchung at proofpoint.com
Fri Apr 17 06:13:33 PDT 2020


Here is the snippets:

MSI (s) (38:38) [10:20:10:934]: Executing op: FileRemove(,FileName=Working.exe.config,,ComponentId={B1C293D6-5A42-4667-85A1-A70E6456304E})

MSI (s) (38:38) [10:20:10:949]: Executing op: FileRemove(,FileName=NotWorking.exe.config,,ComponentId={B0053DB7-B669-457B-95B5-9BD514BA37A6})

MSI (s) (38:40) [10:27:21:230]: Executing op: FileCopy(SourceName=fx0uor7b.con|Working.exe.config,SourceCabKey=Working.exe.config,DestName=Working.exe.config,Attributes=512,FileSize=144,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=Working,,InstallMode=59768832,,,,,,,)
MSI (s) (38:40) [10:27:21:230]: File: C:\Program Files (x86)\Company\Software\bin\Working.exe.config; To be installed;    Won't patch; No existing file
MSI (s) (38:40) [10:27:21:230]: Source for file 'Working.exe.config' is compressed
InstallFiles: File: Working.exe.config,  Directory: C:\Program Files (x86)\Company\Software\bin\,  Size: 144
MSI (s) (38:40) [10:27:21:230]: Executing op: FileCopy(SourceName=fj-qbbvf.exe|Working.exe,SourceCabKey=Working,DestName=Working.exe,Attributes=512,FileSize=115440,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=3.5.142.13991,Language=0,InstallMode=59768832,,,,,,,)
MSI (s) (38:40) [10:27:21:230]: File: C:\Program Files (x86)\Company\Software\bin\Working.exe; To be installed;    Won't patch; No existing file
MSI (s) (38:40) [10:27:21:230]: Source for file 'Working' is compressed
InstallFiles: File: Working.exe,  Directory: C:\Program Files (x86)\Company\Software\bin\,  Size: 115440


MSI (s) (38:40) [10:28:10:418]: Executing op: FileCopy(SourceName=ahydjbuq.exe|NotWorking.exe,SourceCabKey=NotWorking,DestName=NotWorking.exe,Attributes=512,FileSize=144112,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=3.5.142.13991,Language=0,InstallMode=59768832,,,,,,,)
MSI (s) (38:40) [10:28:10:418]: File: C:\Program Files (x86)\Company\Software\bin\NotWorking.exe;     To be installed;    Won't patch; No existing file
MSI (s) (38:40) [10:28:10:418]: Source for file 'NotWorking' is compressed
InstallFiles: File: NotWorking.exe,  Directory: C:\Program Files (x86)\Company\Software\bin\,  Size: 144112
MSI (s) (38:40) [10:28:10:418]: Executing op: SetCompanionParent(ParentPath=C:\Program Files (x86)\Company\Software\bin\,ParentName=NotWorking.exe,ParentVersion=3.5.142.13991,ParentLanguage=0)
MSI (s) (38:40) [10:28:10:418]: Executing op: FileCopy(SourceName=lquyosts.con|NotWorking.exe.config,SourceCabKey=NotWorking.exe.config,DestName=NotWorking.exe.config,Attributes=512,FileSize=744,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=NotWorking,,InstallMode=59768832,,,,,,,)
MSI (s) (38:40) [10:28:10:527]: File: C:\Program Files (x86)\Company\Software\bin\NotWorking.exe.config;    Won't Overwrite;    Won't patch;       Existing file is of an equal version    (Checked using version of companion: C:\Program Files (x86)\Company\Software\bin\NotWorking.exe)

Thanks,
jerry
From: Edwin Castro <egcastr at gmail.com>
Sent: Friday, April 17, 2020 4:06 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Jerry Chung <jchung at proofpoint.com>
Subject: Re: [wix-users] Question on the copy order of companion files

Can you post a verbose log somewhere?

--
Edwin G. Castro

On Thu, Apr 16, 2020 at 3:07 PM Jerry Chung via wix-users <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>> wrote:
Hi,

I have many assemblies and config files where config files were associated with companionFile attribute. When the installer tries to upgrade the assemblies on the of prior versions, the copy order for companion files doesn't seem to be consistent. As a result of this, some of the config files are not copied over.

These are steps I observed for upgrade:


  1.  remove existing assemblies and config files
  2.  copy a new assembly
  3.  try to copy the assembly's config file, but it is not copied saying "Existing file is of an equal version"

Note. if the order of 2 and 3 is switched, it works.

My environment:

  *   Wix Toolset 3.9
  *   .Net 4.5
  *   VS Professional 2012 update 5
  *   Target Host: Windows Server 2016

Any idea on this?

Thanks,
jerry

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<https://urldefense.com/v3/__http:/www.firegiant.com/__;!!ORgEfCBsr282Fw!8ocxTWeiEyH9JpvPdCp6kYXHfIJD1vnxhpWNW2tKCW02ZYkbHFOAUd7GmvfyV1KFmg$>


More information about the wix-users mailing list