Basic INFO - InstallScript脚本编程的限制
2012-04-25 23:14 Kevin.Wan 阅读(917) 评论(0) 编辑 收藏 举报大家在InstallShield中用InstallScript脚本编程时,有没有意识到其实它是有限制的?
下面是编译脚本文件的限制(setup.inx):
- Maximum number of statements: about 4,294,967,295 (如果超过此限制,在安装初始化时会报错误 -5009)
- Maximum number of global variables: about 196,605 (65,535 numbers, 65,535 variants, 65,535 strings)
- Maximum number of typedefs: about 65,535
- Maximum number of prototypes: about 65,535
- Maximum number of functions: about 65,535
- Maximum number of statements per function: about 65,535
- Maximum local variables per function: about 196,605 (65,535 numbers, 65,535 variants, 65,535 strings)
下面是脚本文件的限制(.rul):
- Maximum line width: 1,024 characters
- Maximum number of nested include files: 80
- Maximum number of include files: 2,048
- Maximum identifier length: 63 characters
- Maximum number of macro expansions: 100
- Maximum macro expansion text length: 256 characters
- Maximum file name length: 256 characters
- Maximum number of nested #if statements: 10
- Maximum number of parameters per function: 16
如果上述有一个或多个限制被超越,则会出现编译错误。
InstallShield建议,如果遇到上述超限的问题,可以考虑减少代码降低安装脚本的大小,或者将安装脚本分散到多个工程中,然后通过主安装包调用各个子安装包。
万炳宏(Kevin Wan)
Avizo/Amira技术交流,欢迎加我微信:13911850365或QQ:17842153