Thread: RunAsAdmin
View Single Post
Old 30th July 2011, 23:29   #5
Forum King
Yathosho's Avatar
Join Date: Jan 2002
Location: AT-DE
Posts: 3,364
so now i'm using ShellExecWait and it does the job for ExecWait.

however, i looking for the same to perform a simple Exec. i commented the following portion of the code and it works as desired.

${If} $1 <> 0
System::Call '*$0(is,i,i,i,i,i,i,i,i,i,i,i,i,i,i.r1)' ;stack value not really used, just a fancy pop
System::Call 'kernel32::WaitForSingleObject(ir1,i-1)'
System::Call 'kernel32::GetExitCodeProcess(ir1,*i.s)'
System::Call 'kernel32::CloseHandle(ir1)'

as i don't really understand this, i was wondering if there's more code i could leave?
Yathosho is offline   Reply With Quote