I have a Windows service that runs as a logged-in user (local administrator). During the start, I get a message with lines: "Unable to generate temporary class (result = 1)" Therefore, I went to the windows / temporary folder and inspired the UAC to increase my privileges - after this I This service started well. So, how do I deal with the perspective of Windows Service from this UAC prompt?
Thank you!
Regarding the original question - beyond the specific issue of event order, which fixes your symptoms.
The XML in the manifest will look something like this:
& lt ;? Xml version = "1.0" encoding = "UTF-8" standalone = "yes"? & Gt; & Lt; Assembly xmlns = "vase: schemas-microsoft-com: asm.v1" manifestVersion = "1.0" & gt; & Lt; Assembly edition = "1.0.0.0" name = "MY_APPLICATION_NAME" type = "win32" /> & Lt; TrustInfo xmlns = "karash: schema-microsoft-com: asm.v3" & gt; & Lt; Security & gt; & Lt; RequestedPrivileges & gt; & Lt; The requested exaction level level = "require Administrator" /> & Lt; / RequestedPrivileges & gt; & Lt; / Safety & gt; & Lt; / TrustInfo & gt; & Lt; / Assembly & gt;
I'm sure you can find a more specific information by googling by "UAC Manifest" ...
Hope this is useful ...
Comments
Post a Comment