开发者

Wix custom-action dll relies on files installed at execution

I'm using a dll to 开发者_运维百科install a driver that's packaged inside the msi. When I schedule the custom-action for after InstallFinalize it succeeds, but if I schedule it either 1) after InstallFiles 2) after InstallFiles, execute=deferred, 3) after InstallFiles, execute=deferred, impersonate=no, or 4) before InstallFinalize it fails with "file not found" for the .inf file.

I've read This SO post and this page, but still don't understand how I get my driver to be installed.

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


According to this answer to the question you linked, you should schedule it after InstallFiles and make it deferred.

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

After InstallFinalized, your installation is already complete.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜