我有这个工作线:
ShellExec('',ExpandConstant('{app}\iush.exe'),'/ui "C:\Program Files (x86)\Myapp"', ' ', SW_HIDE, ewWaitUntilTerminated, errorCode)
但是我想用其常数替换程序文件(x86)目录:"C:\Program Files (x86)\Myapp"
>> {pf32}\Myapp
然后要:
ShellExec('',ExpandConstant('{app}\iush.exe'),'/ui "{pf32}\Myapp"', ' ', SW_HIDE, ewWaitUntilTerminated, errorCode)
答案 0 :(得分:1)
ShellExec('',ExpandConstant('{app}\iush.exe'),ExpandConstant('/ui "{pf32}\Myapp"'),'',SW_HIDE,ewWaitUntilTerminated,errorCode);