开发者

File Permission as MSI self-healing feature

开发者 https://www.devze.com 2023-02-22 05:18 出处:网络
On Windows, when a program installed via MSI is run through an advertised shortcut, it checks that all the installed features exist开发者_JS百科 and runs self-healing/auto-repair to replace missing on

On Windows, when a program installed via MSI is run through an advertised shortcut, it checks that all the installed features exist开发者_JS百科 and runs self-healing/auto-repair to replace missing ones.

Is it possible to set a file's ACL as a feature on install that will be self-healed if the ACL is wrong? If it matters, the file in question

  1. is not installed by our MSI
  2. may not exist (not existing is OK, so long as it has the proper permission if it exists)

I'm currently using WiX to build my installers.


No; ACLs aren't resources that MSI uses to validate health. Even if they were, it would likely be tied to a file anyway.

If it's that important, you should check the ACL when your app starts.

0

精彩评论

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