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

时间:2018-09-29 17:12:23

标签: inno-setup pascalscript

我有这个工作线:

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)

1 个答案:

答案 0 :(得分:1)

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