认识NSIS入门之基本语法篇.doc
文本预览下载声明
认识入门之基本语法篇
注释
单行注释用井号”#”或分号”;”,跨行注释用可以用++中注释语法。
数据类型
数字
数字常量可以用十进制、十六进制(0x为前缀)、八进制(0为前缀)表示,颜色用类似的中表示法,但去井号”#”。
字符串
字符串常量可以用引号引用,转意字符用”$”作前缀。美元符号、常用转意字符换行、回车、制表符的语法表示分别为:$$,$,$,$
续行符
脚本用行尾的反斜杠”“表示下一行和当前行逻辑上是同一行
默认头文件
如果在同目录下有文件,该文件会被自动包含,除非编译时指定选项
标号
使用语句和, x,x及进行程序控制流表示,标号是这些语句的目标语句认识入门之基本语法篇。标号定义的语法:
标号:语句
标号必须定义在函数和区段中,其作用范围仅限于定义它的区段或函数。以点号”.”开头的标号是全局标号。
相对跳转
脚本常常使用相对跳转表示条件分枝,其语法是[+-][1-9],加号表示从当前位置往前跳转,减号则表示从当前位置往后跳转认识入门之基本语法篇。数字表示跳转的语句条数示例:
+4
x _ “ ”
+3
x _ “ x”
-3
x _ “”
页面
向导页面是安装程序中最重要的界面元素,在脚本中可以使用内置页面或者定制界面,通过脚本可以指定页面的顺序、显示样子和行为。指令用来定义安装程序中的页面,用来定义,此外x指令提供类是功能,但提供更多选项认识入门之基本语法篇。页面的顺序和它在脚本中出现的次序一致。
页面选项
不同的页面有不同的选项:
有x,,;
页面有x;
页面有x,(仅能在x中使用),;
页面有x,x;
页面有(仅能在x中使用),x
对于内置的,支持三个回调函数用于定制界面和验证,对于自定义页面支持两个回调函数。
指令语法
||||) [_][_] [_]
或者:
[_] [_] []
指令语法
[_] [_] []
(||||)[_] [_] [_]
x语法
常用的指令
大致可以分为基本指令、注册表及操作指令、通用指令、流程控制指令、文件操作指令、卸载指令、字符串处理指令、多语言支持指令、重启指令。
以下是常用的基本指令:
[]
x
x
x
x [] [_ | _X |_ | _]x “” 示例”:”
x
x [_(x )]
daily morning exercises or class-break setting-up exercise and discipline inspection and appraisal of public signs;2, daily cleaning and inspection;3, the daily student school appearance, dress, wearing school card check;4, the daily duty guide to the leadership class discipline three rounds.Weekly moral education work:L, the flag raising ceremony and the national flag speech under the flag raising ceremony held on Monday;2, every week a class meeting, the meeting;3, every week two exercises, cleaning and hygiene, behavior norms, attendance situation published cloth appraisal, and the issue of the code of conduct;;4, weekly work week.Monthly moral education work:1, at least once a month, the theme of education activities, to patriotism education, behavior norms of education as the focus, combined with major
显示全部