Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
自定义操作作为FileKey成功,但从WiXQuietExec失败_Wix_Wix3 - Fatal编程技术网

自定义操作作为FileKey成功,但从WiXQuietExec失败

自定义操作作为FileKey成功,但从WiXQuietExec失败,wix,wix3,Wix,Wix3,在标记中使用FileKey和execomand时,我可以调用exe,但当我使用WixQuietExec64时,它会失败,出现一个错误,表明没有使用提升的权限调用exe 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=InstallDebia

在标记中使用
FileKey
execomand
时,我可以调用exe,但当我使用
WixQuietExec64
时,它会失败,出现一个错误,表明没有使用提升的权限调用exe

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.
我的产品节选.wxs

<SetProperty Id="InstallDebian" Value="&quot;[#DebianExe]&quot; install --root"
            Before="InstallDebian" Sequence="execute"/>
<CustomAction Id="InstallDebian" BinaryKey="WixCA" DllEntry="WixQuietExec64"
            Execute="deferred" Return="check" Impersonate="no"/>

InstallDebian
InstallFiles
之后调用。我还尝试了
WixQuietExec
CAQuietExec64
CAQuietExec

我如何才能成功地运行此exe并升级?

impersonate=“yes”
为我修复了它,当用户是系统时,debian.exe似乎无法正常运行

这是否可能相关?