[wix-users] XmlConfig does not work when applied throug transform

Herman van Drie hvandrie at outlook.com
Mon Aug 20 14:17:50 PDT 2018


WixCA.dll containing the Wix XmlConfig CA is in Mst Binary table.
As you can see in the log, it's extracted and calls the Dll entrypoint:

MSI (s) (FC:88) [10:43:18:130]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIA47E.tmp, Entrypoint: SchedXmlConfig MSI (s) (FC:D0) [10:43:18:130]: Generating random cookie.
MSI (s) (FC:D0) [10:43:18:135]: Created Custom Action Server with PID 20672 (0x50C0).

As the SchedXmlConfig is called Immediate, its purpose is to read the XmlConfig table and schedule and execute ExecXmlFile function in deferred mode. Because files get physically installed in deferred mode.
So, I presume there might be a problem accessing the Mst binary table from deferred mode, perhaps? If I try to follow up on your lead.

Will try to see whether I can fool it by calling ExecXmlFile function from InstallExecuteSequence instead of SchedXmlFile... however, I imagine that SchedXmlFile function also is used to prepare the deferred script and thus parses the formatted fields to resolve final values used by ExecXmlFile function.

Downloaded the source code, trying to figure out whether my suspicion is correct.

Any other ideas?


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Rob Mensching via wix-users
Sent: maandag 20 augustus 2018 19:21
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Rob Mensching <rob at firegiant.com>
Subject: Re: [wix-users] XmlConfig does not work when applied throug transform

Maybe the CA DLL isn't in the MST?

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Herman van Drie via wix-users
Sent: Monday, August 20, 2018 2:02 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Herman van Drie <hvandrie at outlook.com>
Subject: [wix-users] XmlConfig does not work when applied throug transform

Hi,

Am trying to apply Wix XmlConfig custom action to an Msi database through a transform file.
Mst contains all Wix related binary, actions and XmlConfig table to apply to msi database.

Upon installing, I get an error in log file:

MSI (s) (FC:FC) [10:43:18:124]: Doing action: SchedXmlConfig Action 10:43:18: SchedXmlConfig.
Action start 10:43:18: SchedXmlConfig.
MSI (s) (FC:FC) [10:43:18:126]: Transforming table CustomAction.
MSI (s) (FC:FC) [10:43:18:126]: Transforming table Binary.
MSI (s) (FC:88) [10:43:18:130]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIA47E.tmp, Entrypoint: SchedXmlConfig 
MSI (s) (FC:D0) [10:43:18:130]: Generating random cookie.
MSI (s) (FC:D0) [10:43:18:135]: Created Custom Action Server with PID 20672 (0x50C0).
MSI (s) (FC:20) [10:43:18:190]: Running as a service.
MSI (s) (FC:D4) [10:43:18:192]: Hello, I'm your 32bit Impersonated custom action server.
MSI (s) (FC!5C) [10:43:18:204]: Note: 1: 2262 2: XmlConfig 3: -2147287038 
MSI (s) (FC!5C) [10:43:18:204]: Transforming table XmlConfig.
Action ended 10:43:18: SchedXmlConfig. Return value 1.


The error returned is related to Windows Installer error 2262 which says it can't find the stream:
Stream does not exist: [2]. System error: [3].

This sounds not logical to me, the referred file in the XmlConfig File column is key to an xml file in the File table of the original msi database, which is marked to be installed (in deferred mode).

Am wondering whether anyone has same experience or knows a solution other than to merge with the msi database.
Anyone has some pointers for me?

Thanks,

Herman


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list