繁体   English   中英

Inno Setup编译目录

[英]Inno Setup compile directory

这是我第一次使用Inno Setup。 我在ANT脚本中包含Inno Setup:

<target name="generate-installer-exe" depends="generate-exe">
  <exec executable="C:/Program Files (x86)/Inno Setup 5/ISCC.exe">
    <arg value="${etc.dir}/innoSetup_config.iss"/>
    <arg value="/dMySourcePath=${deployment.dir}"/>
  </exec>
</target> 

它在${etc.dir}创建Output和setup.exe,因为那是我的.iss文件所在的位置,但是我希望将其编译为${deployment.dir} 无论如何,是否可以通过传递参数来动态更改编译目录,还是需要通过ANT移动文件?

根据文档,/ O参数可以满足您的需求。

“ / O”指定输出路径(覆盖脚本中的任何OutputDir设置),“ / F”指定输出文件名(覆盖脚本中的任何OutputBaseFilename设置)

因此,如果只想将/ O传递给输出目录,则可能需要类似以下内容:

<target name="generate-installer-exe" depends="generate-exe">
  <exec executable="C:/Program Files (x86)/Inno Setup 5/ISCC.exe">
    <arg value="${etc.dir}/innoSetup_config.iss"/>
    <arg value="/dMySourcePath=${deployment.dir}"/>
    <arg value="/O${deployment.dir}"/>
  </exec>
</target> 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM