O
Oolis Kraprin
Hi, I have a program running with normal user privileges, that needs
to update an entry in an ini file that happens to be in ProgramData,
so that a server program, running as administrator can read it.
Editing the ini file directly causes only the VirtualStore copy to be
edited, so my plan is to prompt for elevation as administrator before
this edit and restore normal user permission after. If the elevation
fails then a message box reminding the user to edit the file as admin
is sufficient.
I haven't found any information on how to do this though. I am using
c# with .net 2.0.
Thanks
Oolis.
to update an entry in an ini file that happens to be in ProgramData,
so that a server program, running as administrator can read it.
Editing the ini file directly causes only the VirtualStore copy to be
edited, so my plan is to prompt for elevation as administrator before
this edit and restore normal user permission after. If the elevation
fails then a message box reminding the user to edit the file as admin
is sufficient.
I haven't found any information on how to do this though. I am using
c# with .net 2.0.
Thanks
Oolis.