直接用bat命令对Inno Setup的脚本文件.iss进行编译
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了直接用bat命令对Inno Setup的脚本文件.iss进行编译相关的知识,希望对你有一定的参考价值。
参考技术A Command Line Compiler ExecutionScripts can also be compiled by the Setup Compiler from the command line. Command line usage is as follows:
compil32 /cc <script name>
Example:
compil32 /cc "c:\isetup\samples\my script.iss"
As shown in the example above, filenames that include spaces must be enclosed in quotes.
Running the Setup Compiler from the command line does not suppress the normal progress display or any error messages. The Setup Compiler will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid, or 2 if the compile failed.
Alternatively, you can compile scripts using the console-mode compiler, ISCC.exe. Command line usage is as follows:
iscc [options] <script name>
Or to read from standard input:
iscc [options] -
Example:
iscc "c:\isetup\samples\my script.iss"
As shown in the example above, filenames that include spaces must be enclosed in quotes.
Valid options are: "/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), "/S" to specify a Sign Tool, "/Q" for quiet compile (print only error messages), and "/?" to show a help screen.
Example:
iscc /Q /O"My Output" /F"MyProgram-1.0" /Sbyparam=$p "c:\isetup\samples\my script.iss"
ISCC will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid or an internal error occurred, or 2 if the compile failed.
The Setup Script Wizard can be started from the command line. Command line usage is as follows:
compil32 /wizard <wizard name> <script name>
Example:
compil32 /wizard "MyProg Script Wizard" "c:\temp.iss"
As shown in the example above, wizard names and filenames that include spaces must be enclosed in quotes.
Running the wizard from the command line does not suppress any error messages. The Setup Script Wizard will return an exit code of 0 if there was no error and additionally it will save the generated script file to the specified filename, 1 if the command line parameters were invalid, or 2 if the generated script file could not be saved. If the user cancelled the Setup Script Wizard, an exit code of 0 is returned and no script file is saved.本回答被提问者采纳
用inno setup如何让程序在安装后删除安装文件夹中无用的文件?
用inno setup编译器制作安装程序时,如何加上一段代码让程序在安装后删除无用的文件?
参考技术A 呵呵 这个再简单不过了, [InstallDelete] Type: files; Name: "app\MYPROG.INI" 或者: Source: embedded\md5.exe; DestDir: tmp; Flags: overwritereadonly deleteafterinstall dontcopy PS:注意,看FLAGS的参数!!! 欢迎来梦想吧交流 参考技术B 注意两点,一个是工作目录在临时文件夹内,第二个就是参数设置overwritereadonly 仅读写
deleteafterinstall 安装后删除
dontcopy 不复制到程序工作目录中
DestDir: tmp; Flags: overwritereadonly deleteafterinstall dontcopy
以上是关于直接用bat命令对Inno Setup的脚本文件.iss进行编译的主要内容,如果未能解决你的问题,请参考以下文章
怎么把已做好的ISS用Inno Setup做成EXE输出目录在哪