1

是否可以使用变量和某些条件构建脚本行(根据自定义页面上检查的内容,可执行文件需要不同的开关。可能是这样的:

var
linecommand : string;
function FileParams();
  begin
    if check1 then linecommand := linecommand+' conditionone' end;
    if check2 then linecommand := linecommand+' conditiontwo' end;
    if check3 then linecommand := linecommand+' conditiontwo' end;
  end;
function check123()
  begin
    if check1 or check2 or check3 then
      begin
        linecommand='Executable file name.exe '+linecommand;
        Shellexec(linecommand);
      end;
   end;
4

1 回答 1

2

You can use a {code:...} constant to insert a value calculated in a [Code] function into a specific value within a standard entry that accepts both strings and constants (such as the Parameters value of a [Run] entry).

Or you can write multiple entries and use a Check function to determine which (if any) of them actually get executed.

于 2013-05-28T20:59:00.263 回答