Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function FlashInstallPage_DoInstall
- StrCpy $R0 "$PLUGINSDIR\install_flash_player_10.exe"
- File /oname=$R0 build\redist\win32\install_flash_player_10.exe
- ${If} ${UAC_IsAdmin}
- ExecWait $R0
- ${Else}
- ; TODO improve this section...
- ;ExecShell "" $R0
- System::Call '*(&i60)i.r0'
- System::Call '*$0(i 60,i 0x40,i $hwndparent,i,t "$R0",i ,i,i ${SW_SHOW})i.r0'
- System::Call 'shell32::ShellExecuteEx(ir0)i.r1 ?e'
- ${If} $1 <> 0
- System::Call '*$0(i,i,i,i,i,i,i,i,i,i,i,i,i,i,isr1)' ;stack value not really used, just a fancy pop ;)
- System::Call 'kernel32::WaitForSingleObject(ir1,i-1)'
- System::Call 'kernel32::GetExitCodeProcess(ir1s,*i.r1)'
- System::Call 'kernel32::CloseHandle(is)'
- ${Else}
- pop $1
- ${EndIf}
- System::Free $0
- ${EndIf}
- Delete $R0
- FunctionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement