Windows installer CAQuietExec:尝试执行复制文件时拒绝访问

Windows installer CAQuietExec:尝试执行复制文件时拒绝访问,windows-installer,impersonation,custom-action,access-denied,error-code,Windows Installer,Impersonation,Custom Action,Access Denied,Error Code,我有一个带有自定义操作(Execute=“deferred”Impersonate=“yes”)的应用程序,它将文件复制到公共文件文件夹。当我试图执行应用程序失败时,我说 MSI (s) (AC:34) [10:50:56:404]: Executing op: CustomActionSchedule(Action=CopyMfcRun,ActionType=1025,Source=BinaryData,Target=CAQuietExec,CustomActionData="cmd" /C

我有一个带有自定义操作(Execute=“deferred”Impersonate=“yes”)的应用程序,它将文件复制到公共文件文件夹。当我试图执行应用程序失败时,我说

MSI (s) (AC:34) [10:50:56:404]: Executing op: CustomActionSchedule(Action=CopyMfcRun,ActionType=1025,Source=BinaryData,Target=CAQuietExec,CustomActionData="cmd" /C xcopy /E /H /R /X /Y /I /K  "C:\Application\PortalFiles\msv*.dll" "C:\Program Files (x86)\Common Files\Tom Sawyer Software\10.0.0")

MSI (s) (AC:B4) [10:50:56:409]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIB9F8.tmp, Entrypoint: CAQuietExec

CAQuietExec:  Access denied

CAQuietExec:  0 File(s) copied

CAQuietExec:  Error 0x80070004: Command line returned an error.

CAQuietExec:  Error 0x80070004: CAQuietExec Failed

CustomAction CopyMfcRun returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

MSI (s) (AC:34) [10:50:56:545]: Note: 1: 2265 2:  3: -2147287035 

MSI (s) (AC:34) [10:50:56:546]: User policy value 'DisableRollback' is 0

请帮我解决这个问题。客户无法安装我们的应用程序。

尝试使用
Impersonate=“yes”
我们的自定义操作具有Impersonate=yes