How to write in a registry key own by TrustedInstaller

前端 未结 3 1871
[愿得一人]
[愿得一人] 2021-02-19 17:21

In order to install a new property page into the Active Directory SnapIn, I need to write into the following registry key of W2K8 R2 (as documented by Microsoft)

HKEY_LO

3条回答
  •  南笙
    南笙 (楼主)
    2021-02-19 17:28

    If you use the Registry table in an MSI installer you should be able to write the entry without problems. This is because the installation process is performed under the TrustedInstaller account (you don't need to change ownership).

    Edit: It seems that you are trying to write in a registry key that is under the Windows protection system. The TrustedInstaller account doesn't matter in this case.

    Basically, a regular MSI cannot write in that key because it's protected by Windows. You will need to find another approach for installing the property page.

提交回复
热议问题