I have an issue using Exec/Exec wait from a script that sets RequestExecutionLevel user and new process requires elevation. Sample code:
I tried the CreateProcess code suggested here
and it returned error code ERROR_ELEVATION_REQUIRED. I digged a little more and found this article
which suggests all CreateProcess() calls should be replaced by ShellExecute(). I searched the NSIS code, seems like the myCreateProcess() function has to use ShellExecute() instead of CreateProcess() ...