Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function FlashInstallPage_DoInstall
  2.     StrCpy $R0 "$PLUGINSDIR\install_flash_player_10.exe"
  3.     File /oname=$R0  build\redist\win32\install_flash_player_10.exe
  4.     ${If} ${UAC_IsAdmin}
  5.         ExecWait $R0
  6.     ${Else}
  7.         ; TODO improve this section...
  8.         ;ExecShell "" $R0
  9.        
  10.         System::Call '*(&i60)i.r0'
  11.         System::Call '*$0(i 60,i 0x40,i $hwndparent,i,t "$R0",i ,i,i ${SW_SHOW})i.r0'
  12.         System::Call 'shell32::ShellExecuteEx(ir0)i.r1 ?e'
  13.         ${If} $1 <> 0
  14.             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 ;)
  15.             System::Call 'kernel32::WaitForSingleObject(ir1,i-1)'
  16.             System::Call 'kernel32::GetExitCodeProcess(ir1s,*i.r1)'
  17.             System::Call 'kernel32::CloseHandle(is)'
  18.          
  19.         ${Else}
  20.             pop $1
  21.         ${EndIf}
  22.         System::Free $0
  23.        
  24.        
  25.     ${EndIf}
  26.     Delete $R0
  27. FunctionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement