I am having WDF driver installing using WiX installer via custom action using API DriverPackageInstall. but its failing with error "0x80030005" STG_E_ACCESSDENIED. I am running as admin (assuming no priviledge issues) created test "c" console application that is able to install driver successfully.
<InstallExecuteSequence>
<Custom Action='UninstallDriver'
After='InstallInitialize'>
REMOVE~="ALL" OR REINSTALL</Custom>
</InstallExecuteSequence>
<CustomAction Id='UninstallDriver'
BinaryKey='install_lib'
DllEntry='InstallDriver'
Execute='deferred'
Impersonate="no"
Return='check'/>
Not able to figure why is it failing enabled full logs and checked.
MSI (s) (E8:50) [11:56:09:296]: Invoking remote custom action. DLL: C:\Windows\Installer\XXXXXX.tmp, Entrypoint: InstallMyDriver
CustomAction InstallMY.XXXXX_9XX_XXXX_XXXX_XXXXXXXX returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 11:56:10: InstallFinalize. Return value 3.
MSI (s) (E8:38) [11:56:10:144]: Note: 1: 2265 2: 3: -2147287035
MSI (s) (E8:38) [11:56:10:144]: User policy value 'DisableRollback' is 0
MSI (s) (E8:38) [11:56:10:144]: Machine policy value 'DisableRollback' is 0
Checked INF file is present at expected input location.
Any help appreciated.