首页 > 代码库 > Fix: When installing msi, custom action about deleting registy key does not work
Fix: When installing msi, custom action about deleting registy key does not work
Problem description:
The problem may happen when UAC is enabled, it is usually because of the insufficient right to delete the registry key.
Solution:
1. Run installer in command prompt as administrator
2. Set custom action In-script execution to be Deferred Execution in System Context, this can work even if UAC is enabled and without using command line to install
Like Deferred Execution actions, these actions do not launch until the script generated by the Windows Installer service is run. However, actions of this type execute with no user impersonation.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。