簡體   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