Released Windows stand alone Game need Write permission to write Xml files

Hello ,
i have Windows stand alone Game .the game create XML file to save data .

the problem :

-After Building the game

–if the user did not run it as Admin the game crash

–if he run it as Admin every thing go will (My Os is Win 8 )

The Quotations :

-How to Add write permeation into the game ?

-How can i make the game run as Admin by defaulte ?

PS: in windows stand alone thr location i save in is Application .datapath
and in android is Application.presetansdatapath

Where are you saving the xml file? You should use Application.persistentDataPath which will give you a location where the game should have permission to write data. In Windows this will be a user specific location.