The Wix custom action board depends on the files installed at run time.

I am using dll to install a driver that is packaged inside msi. When I plan to configure the action after InstallFinalize completes, but if I plan to: 1) after InstallFiles 2) after InstallFiles, execute = deferred, 3) after InstallFiles, execute = deferred, impersonate = no or 4) before InstallFinalize it does not work with the file not found for .inf file.

I read this SO post and this page , but still don't understand how I can install the driver.

If I use InstallFinalize after, then if for some other reason an error is returned, then it is too late to abort the installation, and it spoiled.

+4
wix custom-action
source share
1 answer

In accordance with this answer to the question you related, you should schedule it after InstallFiles and make it deferred.

Enable verbose logging during installation, and you can see when the files are copied to the hard drive and when your custom action is called.

After installing InstallFinalized, your installation is already complete.

+3
source share

All Articles