如何在 ShellExec 行中用常量替换目录

How to replace directory with its constant in a ShellExec line

我有这条工作线:

ShellExec('',ExpandConstant('{app}\iush.exe'),'/ui "C:\Program Files (x86)\Myapp"', ' ', SW_HIDE, ewWaitUntilTerminated, errorCode)

但我想用它的常量替换 Program Files (x86) 目录:"C:\Program Files (x86)\Myapp" >> {pf32}\Myapp

那么它想:

ShellExec('',ExpandConstant('{app}\iush.exe'),'/ui "{pf32}\Myapp"', ' ', SW_HIDE, ewWaitUntilTerminated, errorCode)
ShellExec('',ExpandConstant('{app}\iush.exe'),ExpandConstant('/ui "{pf32}\Myapp"'),'',SW_HIDE,ewWaitUntilTerminated,errorCode);