[wix-users] Publisher policy file missing in c:\windows\assembly\tmp folder when adding it through patch.

Vladimir Kolobkov vkolobkov at gmail.com
Thu Oct 10 05:58:35 PDT 2019


Hi folks,

I have strange behavior while creating the patch with wix 3.11.0.1701.
I want to add publisher policy to the already installed application.
So i have added 2 new .net assemblies with increased versions and generate
policy assembly.

Policy assembly was added as new component:
      <Component Guid="95297615-6284-40D4-BCC4-88F250F7F6D1"
Id="CMP_Policy1_1IcalInvoicesSapDll">
        <File KeyPath="yes" Assembly=".net"
Id="FILE_Policy1_1IcalInvoicesSapDll"
Source="$(var.IpaAssembliesDir)\policy.1.1.ICAL.Invoices.SAP.dll"
Name="policy.1.1.ICAL.Invoices.SAP.dll"/>
        <File Id="FILE_Policy1_1IcalInvoicesSapConfig"
Source="$(var.IpaAssembliesDir)\ICAL.Invoices.SAP.config"
CompanionFile="FILE_Policy1_1IcalInvoicesSapDll"
Name="ICAL.Invoices.SAP.config"/>
      </Component>

After that i have created new msi(based on original). But the patch
installation fails with an error:
10/10/2019 14:55:46.627 [7172]: Assembly Install: Failing with hr=80131042
at CAssemblyCacheItem::LegacyCommit, line 1360

MSI (s) (04:10) [14:55:46:633]: Assembly Error:A module specified in the
manifest of assembly '%1' could not be found.
MSI (s) (04:10) [14:55:46:633]: Note: 1: 1938 2:
{95297615-6284-40D4-BCC4-88F250F7F6D1} 3: 0x80131042 4: IAssemblyCacheItem
5: Commit 6:
policy.1.1.ICAL.Invoices.SAP,version="0.0.0.0",culture="neutral",publicKeyToken="0A00A7449EA4C480",processorArchitecture="MSIL"

MSI (c) (2C:48) [14:55:46:634]: Transforming table Binary.

MSI (c) (2C:48) [14:55:46:634]: Transforming table Binary.

MSI (c) (2C:48) [14:55:46:634]: Note: 1: 2262 2: Binary 3: -2147287038
Error 1938. An error occurred during the installation of assembly
'policy.1.1.ICAL.Invoices.SAP,version="0.0.0.0",culture="neutral",publicKeyToken="0A00A7449EA4C480",processorArchitecture="MSIL"'.
One or more modules of the assembly could not be found. HRESULT:
0x80131042. assembly interface: IAssemblyCacheItem, function: Commit,
component: {95297615-6284-40D4-BCC4-88F250F7F6D1}
MSI (s) (04:10) [14:55:54:475]: Product: Kofax Invoice Processing Agility
1.1 -- Error 1938. An error occurred during the installation of assembly
'policy.1.1.ICAL.Invoices.SAP,version="0.0.0.0",culture="neutral",publicKeyToken="0A00A7449EA4C480",processorArchitecture="MSIL"'.
One or more modules of the assembly could not be found. HRESULT:
0x80131042. assembly interface: IAssemblyCacheItem, function: Commit,
component: {95297615-6284-40D4-BCC4-88F250F7F6D1}

10/10/2019 14:55:54.477 [7172]: Assembly Install: Failing with hr=80070005
at RemoveDirectoryAndChildren, line 393

10/10/2019 14:55:54.478 [7172]: Detailed info about
C:\Windows\assembly\tmp\X36OJITA\policy.1.1.ICAL.Invoices.SAP.dll

10/10/2019 14:55:54.478 [7172]: File attributes: 00000080

10/10/2019 14:55:54.523 [7172]: Restart Manager Info: 1 entries

10/10/2019 14:55:54.523 [7172]: App[0]: (7172) Windows Installer
(msiserver), type = 3

10/10/2019 14:55:54.523 [7172]: Security info:

10/10/2019 14:55:54.524 [7172]: Owner: S-1-5-18

10/10/2019 14:55:54.524 [7172]: Group: S-1-5-18

10/10/2019 14:55:54.524 [7172]: DACL information: 4 entries:

10/10/2019 14:55:54.524 [7172]: ACE[0]: Type = 0x00, Flags = 010, Mask =
001f01ff, SID = S-1-5-18

10/10/2019 14:55:54.525 [7172]: ACE[1]: Type = 0x00, Flags = 010, Mask =
001f01ff, SID = S-1-5-32-544

10/10/2019 14:55:54.525 [7172]: ACE[2]: Type = 0x00, Flags = 010, Mask =
001200a9, SID = S-1-5-32-545

10/10/2019 14:55:54.525 [7172]: ACE[3]: Type = 0x00, Flags = 010, Mask =
001200a9, SID = S-1-15-2-1

Action ended 14:55:54: InstallFinalize. Return value 3.

I have checked the c:\windows\assembly\tmp folder and there was no config
file for policy assembly.
Meanwhile the installer which was used to create patch installs policy
without any errors.
Does anybody knows how i can achive policy into GAC through patch.

Best regards,
Vladimir Kolobkov


More information about the wix-users mailing list