Advertisement
idleberg

ShellEx

Jun 1st, 2012
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !macro ShellExec verb app param workdir show exitoutvar ;only app and show must be != "", every thing else is optional
  2.     System::Store S
  3.     System::Call '*(&i60)i.r0'
  4.     System::Call '*$0(i 60,i 0x40,i $hwndparent,t "${verb}",t $\'${app}$\',t $\'${param}$\',t "${workdir}",i ${show})i.r0'
  5.     System::Call 'shell32::ShellExecuteEx(ir0)i.r1 ?e'
  6.     System::Free $0
  7.     !if "${exitoutvar}" == ""
  8.         pop $0
  9.     !endif
  10.     System::Store L
  11.     !if "${exitoutvar}" != ""
  12.         pop ${exitoutvar}
  13.     !endif
  14. !macroend
  15. !define ShellExec "!insertmacro ShellExec"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement