Hey guys, wondering if anyone can help.
I know you can add some stuff to the manifest of an exe and it will throw up a UAC prompt as soon as the program is executed, but I was wondering is it possible to run an exe without admin rights (ie without the additions to the manifest file), but then if at some point they DO become required if theres a way to throw up the UAC prompt there and then, rather than when the exe is first run?
For example, the exe was run without UAC prompt, but now needs to save something to HKLM or to c:\program files, can the exe display the UAC prompt and then have admin rights to do these things?
Thanks in advance.
EDIT: For clarification, I am asking if there is some API etc which will do this.
I know you can add some stuff to the manifest of an exe and it will throw up a UAC prompt as soon as the program is executed, but I was wondering is it possible to run an exe without admin rights (ie without the additions to the manifest file), but then if at some point they DO become required if theres a way to throw up the UAC prompt there and then, rather than when the exe is first run?
For example, the exe was run without UAC prompt, but now needs to save something to HKLM or to c:\program files, can the exe display the UAC prompt and then have admin rights to do these things?
Thanks in advance.
EDIT: For clarification, I am asking if there is some API etc which will do this.