Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !macro ShellExec verb app param workdir show exitoutvar ;only app and show must be != "", every thing else is optional
- System::Store S
- System::Call '*(&i60)i.r0'
- System::Call '*$0(i 60,i 0x40,i $hwndparent,t "${verb}",t $\'${app}$\',t $\'${param}$\',t "${workdir}",i ${show})i.r0'
- System::Call 'shell32::ShellExecuteEx(ir0)i.r1 ?e'
- System::Free $0
- !if "${exitoutvar}" == ""
- pop $0
- !endif
- System::Store L
- !if "${exitoutvar}" != ""
- pop ${exitoutvar}
- !endif
- !macroend
- !define ShellExec "!insertmacro ShellExec"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement