【问题标题】:Inno Setup compile directoryInno Setup 编译目录
【发布时间】:2012-07-12 06:21:16
【问题描述】:

这是我第一次使用 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} 中创建输出和setup.exe,因为那是我的.iss 文件所在的位置,但我希望它编译到${deployment.dir}。无论如何通过传递参数来动态更改编译目录还是需要通过 ANT 移动文件?

【问题讨论】:

    标签: java ant inno-setup


    【解决方案1】:

    根据文档, /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> 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-05-13
      • 2017-05-30
      • 1970-01-01
      • 1970-01-01
      • 2017-01-08
      • 2019-04-18
      • 1970-01-01
      相关资源
      最近更新 更多