如何包含从INI文件中读取名称的脚本文件?

时间:2015-05-21 12:58:09

标签: inno-setup pascalscript

我想要包含一个脚本文件,其名称将从INI文件中读取。我试过这个:

#include <subfolder\{#ReadIni(SourcePath + "File.ini", "Section", "Key", "")}.iss>

但编译因此错误而失败:

  

找不到文件:“子文件夹\ {#ReadIni(SourcePath +”File.ini“,   “部分”,“密钥”,“”)}。“”“

如何包含名称从INI文件中读取的脚本文件?

1 个答案:

答案 0 :(得分:1)

你不能那样内联函数结果。这样做:

data ORIG_DATA  ;
input Day_ID Salesman_ID $ Other_field $ total ;
cards ;
1  A  R000  10
1  A  R002  20
2  A  R000  10
2  A  R004  30
1  B  R002  20
1  B  R000  40
1  B  R004  0
2  C  R003  40
2  C  R004  10
1  C  R002  20
2  C  R002  20
;run;

proc sort;
   by salesman_id; 
RUN; 

data salesman_id (drop=Day_ID Other_field total); 
  set orig_data; 
  by salesman_id; 
   if first.salesman_id then do; 
     day_1 = 0; 
     day_2 = 0;
   end; 
  if day_id=1 then day_1 + total; 
  if day_id=2 then day_2 + total;
  if last.salesman_id then output; 
RUN; 
相关问题