C# file write using another account also changed file privilege, How to avoid it?

  • Thread starter Thread starter Siqiao Chen
  • Start date Start date
S

Siqiao Chen

Guest
I noticed this problem on several customers machines. After they used our software in Admin mode, they can not use it using user mode. After looking into the problem, we found that the permission of some of setting files (in c:\program data\) is been set to to Administrator exclusively. I can not duplicate this issue yet but the setting files should be accessed by our software only.

We normally use FileStream and BinaryWriter to write file. But we use XMLDocument as well.

Could I know how to avoid the file privilege change when using a different account?

Continue reading...
 
Back
Top