[英]Inno Setup compile directory
This is the first time I've used Inno Setup. 这是我第一次使用Inno Setup。 I am including Inno Setup in an ANT script:
我在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>
It creates the Output and setup.exe in the ${etc.dir}
since that is where my .iss file is, but i want it to compile to the ${deployment.dir}
. 它在
${etc.dir}
创建Output和setup.exe,因为那是我的.iss文件所在的位置,但是我希望将其编译为${deployment.dir}
。 Is there anyway to dynamically change the compile directory by passing an argument or do I need to move the files via ANT? 无论如何,是否可以通过传递参数来动态更改编译目录,还是需要通过ANT移动文件?
According to the docs, the /O parameter can do what you need. 根据文档,/ O参数可以满足您的需求。
"/O" to specify an output path (overriding any OutputDir setting in the script), "/F" to specify an output filename (overriding any OutputBaseFilename setting in the script)
“ / O”指定输出路径(覆盖脚本中的任何OutputDir设置),“ / F”指定输出文件名(覆盖脚本中的任何OutputBaseFilename设置)
So, if you want to just pass the /O for an output directory, you would probably need something like: 因此,如果只想将/ 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.