[wix-users] Custom action succeeds as FileKey but fails from WiXQuietExec

Markus Kramer markuskramerigitt at gmail.com
Fri Oct 2 10:05:01 PDT 2020


The installer runs as SYSTEM. Maybe Debian.exe is unfit to run as SYSTEM.

Have you tried impersonate="yes" and install as an Administrator?



On Fri, Oct 2, 2020 at 6:17 PM Dimitri Vasilkov via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> Hello,
>
> I am able to call an exe when using FileKey and ExeCommand in my Custom
> Action tag but when I use WixQuietExec64 it fails with an error that is
> symptomatic of not calling the exe with elevated privileges
>
> MSI (s) (DC:34) [14:40:06:767]: Executing op:
> ActionStart(Name=InstallDebian,,)
> MSI (s) (DC:34) [14:40:06:830]: Executing op:
>
> CustomActionSchedule(Action=InstallDebian,ActionType=3073,Source=BinaryData,Target=WixQuietExec64,CustomActionData="C:\Program
> Files (x86)\TARFU\debian.exe" install --root)
> MSI (s) (DC:78) [14:40:06:830]: Invoking remote custom action. DLL:
> C:\Windows\Installer\MSIADB5.tmp, Entrypoint: WixQuietExec64
> MSI (s) (DC:7C) [14:40:06:845]: Generating random cookie.
> MSI (s) (DC:7C) [14:40:06:845]: Created Custom Action Server with PID
> 9088 (0x2380).
> MSI (s) (DC:68) [14:40:06:877]: Running as a service.
> MSI (s) (DC:68) [14:40:06:877]: Hello, I'm your 32bit Elevated
> Non-remapped custom action server.
> WixQuietExec64:  Installing, this may take a few minutes...
> WixQuietExec64:
> WslRegisterDistribution failed with error: 0x80070005
> WixQuietExec64:
> Error: 0x80070005 Access is denied.
> WixQuietExec64:
>
> WixQuietExec64:
> WixQuietExec64:  Error 0x80070001: Command line returned an error.
> WixQuietExec64:  Error 0x80070001: QuietExec64 Failed
> WixQuietExec64:  Error 0x80070001: Failed in ExecCommon method
> CustomAction InstallDebian returned actual error code 1603 (note this
> may not be 100% accurate if translation happened inside sandbox)
> Action ended 14:40:06: InstallFinalize. Return value 3.
>
> Excerpt of my product.wxs
>
> <SetProperty Id="InstallDebian" Value=""[#DebianExe]" install
> --root"
>             Before="InstallDebian" Sequence="execute"/><CustomAction
> Id="InstallDebian" BinaryKey="WixCA" DllEntry="WixQuietExec64"
>             Execute="deferred" Return="check" Impersonate="no"/>
>
> InstallDebian is called after InstallFiles. I also tried WixQuietExec,
> CAQuietExec64, CAQuietExec
>
> How can I successfully run this exe quietly and with escalation?
> I also tried Value="cmd /C "start /d "[Pix]"
> "debian.exe" install --root"" in the SetProperty tag but I
> was not able to get quote placement that cmd could parse
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list