直接用bat命令对Inno Setup的脚本文件.iss进行编译

2010-06-17 15:17 qjn0059 | 浏览 2163 次
分享到:

 
举报| 2010-06-29 11:16

提问者采纳

 
  1. Command Line Compiler Execution
    Scripts can also be compiled by the Setup Compiler from the command line. Command line usage is as follows:
  2.  
  3. compil32 /cc <script name>
  4.  
  5. Example:
    compil32 /cc "c:\isetup\samples\my script.iss"
    As shown in the example above, filenames that include spaces must be enclosed in quotes.
  6.  
  7. 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.
  8.  
  9. Alternatively, you can compile scripts using the console-mode compiler, ISCC.exe. Command line usage is as follows:
  10.  
  11. iscc [options] <script name>
  12.  
  13. Or to read from standard input:
  14.  
  15. iscc [options] -
  16.  
  17. Example:
    iscc "c:\isetup\samples\my script.iss"
    As shown in the example above, filenames that include spaces must be enclosed in quotes.
  18.  
  19. 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.
  20.  
  21. 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.
  22.  
  23. The Setup Script Wizard can be started from the command line. Command line usage is as follows:
  24.  
  25. compil32 /wizard <wizard name> <script name>
  26.  
  27. 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.
  28.  
  29. 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.
  30.  
  31. 命令行编译器执行
  32.  
  33. 脚本也可以由命令行的安装编译器编译。命令行使用如下:
  34.  
  35. compil32 /cc <script name>
  36.  
  37. 例子
  38.  
  39. compil32 /cc "c:\isetup\samples\my script.iss"
  40.  
  41. 如上面的例子所示,包括空间的文件名必须用引号括起来。
  42.  
  43. 在命令行中运行安装编译器不会抑制正常进度显示或任何错误消息。如果编译成功,设置编译器将返回一个0的退出代码,如果命令行参数无效,或2如果编译失败,则返回1
  44.  
  45. 或者,您可以编写脚本使用控制台模式编译,iscc.exe。命令行使用如下:
  46.  
  47. iscc [options] <script name>
  48.  
  49. 或从标准输入读取:
  50.  
  51. iscc [options] -
  52.  
  53. 例子
  54.  
  55. iscc "c:\isetup\samples\my script.iss"
  56.  
  57. 如上面的例子所示,包括空间的文件名必须用引号括起来。
  58.  
  59. 可用的选项是:“/o”指定输出路径(重写任何脚本中设置outputdir),“/F”指定输出文件名(重写任何脚本中设置outputbasefilename),“/s”指定一个签名工具,“/Q”安静的编译(只打印错误信息),和“/?”显示帮助屏幕。
  60.  
  61. 例子
  62.  
  63. iscc /Q /O"My Output" /F"MyProgram-1.0" /Sbyparam=$p "c:\isetup\samples\my script.iss"
  64.  
  65. 如果编译ISCC成功返回的退出代码为01如果命令行参数无效或发生内部错误,或2如果编译失败。
  66.  
  67. 可以从命令行启动安装脚本向导。命令行使用如下:
  68.  
  69. compil32 /向导<向导名称> <脚本名称>
    compil32 /wizard <wizard name> <script name>
  70.  
  71. 例子
  72.  
  73. compil32 /wizard "MyProg Script Wizard" "c:\temp.iss"
  74.  
  75. 如上面的例子所示,向导的名称和文件名中包含空格必须用引号括起来。
  76.  
  77. 在命令行中运行该向导不抑制任何错误消息。
    设置脚本向导将返回一个0的退出代码,如果没有错误,
    另外它将保存生成的脚本文件到指定的文件名,1如果命令行参数无效,或2,如果生成的脚本文件不能保存。
    如果用户取消了设置脚本向导,则返回0的退出代码,并没有保存脚本文件。

直接用bat命令对Inno Setup的脚本文件.iss进行编译的更多相关文章

  1. 查看程序是否启动或者关闭--比如查看Tomcat是否开启!直接用ps命令查看进程就行了啊

    1.查看程序是否启动或者关闭--比如查看Tomcat是否开启!直接用ps命令查看进程就行了啊 2.Tomcat服务器和虚拟机的关系,Tomcat启动运行过程要调用系统环境变量的java_home啊,J ...

  2. 一个比较完整的Inno Setup 安装脚本(转)

    一个比较完整的Inno Setup 安装脚本,增加了对ini文件设置的功能,一个安装包常用的功能都具备了. [Setup] ; 注: AppId的值为单独标识该应用程序. ; 不要为其他安装程序使用相 ...

  3. Inno setup 安装*.inf文件_示例

    nno setup 调用*.Inf文件的条目区段名称_示例 首先自己编写一个INF文件来供 Inno setup 进行测试: ;复制以下代码到记事本然后另存为123.inf .然后把123.inf文件 ...

  4. 一个比较完整的Inno Setup 安装脚本

    一个比较完整的Inno Setup 安装脚本,增加了对ini文件设置的功能,一个安装包常用的功能都具备了. [Setup] ; 注: AppId的值为单独标识该应用程序. ; 不要为其他安装程序使用相 ...

  5. 使用inno setup 制作安装文件-demo1

    ; 脚本由 Inno Setup 脚本向导 生成! ; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档! #define MyAppName "查体管理系统" # ...

  6. Inno Setup自定义卸载文件名称的脚本

    Inno Setup 支持在同一个目录中安装多个应用程序,所以根据安装的先后次序自动将卸载程序文件命名为 unins000.exe,unins001.exe,unins002.exe 等等.这是 IN ...

  7. Inno Setup 打包的文件以管理员权限执行

    最近发现一个问题,就是Inno Setup打包的程序安装完毕后执行需求管理员权限的程序的时候会失败( inno createprocess   须要提升),解决问题的最简单办法就是打包的后的程序也以管 ...

  8. Inno Setup 如何读写文件

    软件安装的实质就是拷贝,对于简单的打包当然不需要考虑修改某(配置)文件.通过inno修改文件的目的在于把安装时相关信息写入文件中,提供其它应用的读取,而这些信息也只能在安装时才能确定,比如安装用户选择 ...

  9. bat命令行实现全盘遍历搜索文件

    背景:当想要查找一个文件时,记得放在某个盘里.手动去遍历时感觉好心累,找了半天还是没有找着(虽然win有自带的搜索框,但是看着进度条的速度,我便果断的点了取消).基于这个情况,所以写了脚本满足自身查找 ...

随机推荐

  1. PowerDesigner中导出设计说明文档

    点击下图的新建按钮,新建一个导出内容的模板 模板设计界面分为2栏,左边是可选的模板内容,右侧是模板,双击左侧条目会添加到右侧,最后生成的文件中就有此项内容. 已经添加到右侧的内容可以编辑,双击右侧的条 ...

  2. vs2016 vsto excel addin deploy error: vsto 无法解析属性type的值

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ea33e391-21d7-4f54-92cb-c7af72f19c61/outlook- ...

  3. C# + winserver2008 openfiledialog 写入 textbox1 中的 路径不正确

    System.IO.Path.GetFullPath(openFileDialog1.FileName);//绝对路径 System.IO.Path.GetExtension(openFileDial ...

  4. JDE修改Grid列样式

    Set Grid Color :to change the background color of a cell, row, column, or the entire control. Set Gr ...

  5. BZOJ3942 [Usaco2015 Feb]Censoring

    维护一个栈...如果栈顶出现了要被删除的字符串就全删掉就好了,判断的话...kmp就行了 /****************************************************** ...

  6. js图片轮播图

    /*焦点图*/        var Box='.carousel';//盒子        var Menu=$(Box+' .l_cursor li');//圆点菜单        var Con ...

  7. [转]使用maven镜像

    综述 用maven做项目,最郁闷的莫过于某些依赖库下载不了.被墙了,你懂的.使用maven镜像仓库及其重要,特别是国内的镜像,可以有效缓解被墙疼痛. 常用的镜像 国外镜像 ibiblio.org &l ...

  8. uboot启动 及命令分析(3)

    u-boot命令 先贴一个重要结构,位于uboot/include/command.h,这个结构代表每个uboot命令 struct cmd_tbl_s { char     *name;   /* ...

  9. php头像上传并裁剪支持3个尺寸

    源码下载

  10. .className = "highlight";.setAttribute("class", "highlight");

    document.getElementById("top").innerHTML = newHTML; document.getElementById("contact& ...