I have an install script that needs to write to C:\program files\ as well as the registry. But on some win10, this work cannot be done, even if I log in with an administrator account. The "Behavior of the elevation prompt for administrators in Admin Approval Mode" has been disabled in User Account Control, and the UAC control has been changed to "Never notify". However, when viewed in the properties of C:\program files, the administrator still does not have full control rights, and all options are grayed out and cannot be changed. Whether I log in with a domain administrator account or a member of the local administrators group, the result is the same inaccessibility.
So，I have several questions like this:
- Some win10 computers cannot write to C:\program files, and cannot change its access rights, while others can write. What are the reasons for the different results?
- Normally, how to install and configure different application parameters according to the user environment? Can msi be installed silently and carry different installation parameters?
- During the running of the program (ordinary user login), if the configuration needs to be changed according to the dynamic changes of the environment, can the configuration file be placed in the subfolder of C:\program files, and how to ensure writable access rights?
Using a domain administrator account, or a member of the local administrator user group, still cannot write to the c:\program files folder