Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have created a windows service, that use as a reminder service.

I have created it to study How windows service is created in c#?

In this service I use one xml file to keep record of reminders and this xml file get installed when service is installled.

This service is work on win xp very well.

But when I installed it on VISTA or WINDOWS 7, I cant edit the xml file because of permission setting.

so can any one tell me how to change that permission while installation.
Posted
Comments
laxmanjan 18-Jan-11 4:44am    
In windows 7 as well as VISTA one property is there "Run as Administrator".
When I checked this property my application as well as service run successfully.
So how to change this property while installation.

Hope this[^] will give you an idea.
 
Share this answer
 
Alternatively, you can store your XML file in location that will not request administrative privileges to write in it.
This[^] MSDN article could give you an idea where to store your file.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900