View Single Post
Old 23rd November 2015, 21:55   #2
Major Dude
LoRd_MuldeR's Avatar
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
If you try to start a process that requires "elevation" (i.e. admin-rights), which your Uninstaller probably does, from a "non-elevated" process (i.e. a process not running with admin rights) using a function like Exec or ExecWait, then it's just going to fail! 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:

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration:
LoRd_MuldeR is offline   Reply With Quote