View Single Post
Old 24th November 2015, 09:14   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
Quote:
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:
http://muldersoft.com/docs/stdutils_....html#a3d3af46
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