Exec 里面使用{app}等常量组成路径是 需要 ExpandConstant 将其转换为字符串
Exec(ExpandConstant('{app}\TaskScheduler.bat'),'/INST',ExpandConstant('{app}'), SW_SHOW, ewWaitUntilTerminated, ResultCode);
[Run]
Filename: "{tmp}\vcredist_x64.exe"; Parameters: "/quiet /norestart"; Flags: 64bit waituntilterminated runhidden; Check: Is64BitInstallMode
默认使用的是管理员权限。
如果设置了 Flag : runasoriginaluser 就会使用普通用户权限去启动。
使用ExpandConstant与Exec函数
751

被折叠的 条评论
为什么被折叠?



