Hello!
I'm trying to write an auto updater for my exe file, but I have face a problem when I trigger the auto update I want to remove the old version of my program by running an uninstaller, and here is the problem I can't do that because I need the AdminRights, is there a way I trigger the UAC window to prompt the users permission? or maybe there is another way of bypassing the UAC (giving addition rights for the process)?
I use the CreateProcess function and it is vital to use it only, because I will need the handle of the created process. I tried to use the ShellExecute function it worked ok, everything run nicely but I could not get the handle for the process, the WaitForSingleObject function did not want to work with the ShellExecute, therefore I switched to CreateProcess, so In advance I need a smth like ShellExecute but with CreateProcess on board.
Thank you!