How to run my C # application under the trustedinstaller account?

How to run the application in the account trustedinstaller?
I tried to create a Visual Studio installation project and did msi. But even this does not work under the account trustedinstaller. It works only under the system account.

Can someone help me find out how I can run a Windows application in a trusted installer account?

In any case, you are wondering why I need this, because I have to copy some files to the folder winsxsfor the client application C++to work.

Thank you so much in advance.

+3
source share
4 answers
+4

- , Windows ?

devxexec

:

devxexec.exe /user:TrustedInstaller cmd
+4

, devxexec.exe /user:TrustedInstaller cmd Windows 8. , cmd.

+2

, :

  • .
  • ( //).
  • Allow access to r / w by modifying the DACL.
  • Now make changes.
  • Set the owner back to a trusted installer and cancel your permission changes.
+1
source

All Articles