View Single Post
Old 24th November 2015, 09:14   #4
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
Originally Posted by LoRd_MuldeR View Post
You can use ExecShell, which will trigger an UAC dialog and, if the user agrees, launch the process. But then you can not wait for the process to finish...

I implemented the ExecShellWaitEx function for exactly that reason:
ExecShell nor any kind of ExecShellWait is enough to reliably start a process elevated, this is bad advice.

Two issues off the top of my head:

A) Vista, 7 (and 8?) with UAC turned off.

B) 2000, XP and 2003 with non-admin credentials used in the runas dialog.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote