Can a non-elevated Windows process request elevation later in execution?

16 Views Asked by At

I'm running a program installed in Program Files, which of course is read-only without elevation. For some download-on-first-use features of the program, I'd like to download new files to the installation directory. That requires elevation. If possible, how do I elevate the current process to do the copy?

I could launch a separate process to do the installation but that seems cumbersome. I can't find anything in my searches about elevating a process (permanently or temporarily) except when the process starts. If that's how Windows elevation is designed, fine, I just haven't been able to find that definitively in documentation or Q&A.

0

There are 0 best solutions below