引用:
原帖由 leny 于 2007-12-18 15:22 发表 
原来还可以写,一直以为就只是个INI形式的文件
如果做普普通通的安装程序,用不上[Code]段,如果有特殊要求,[Code]段可以干 N 多事情滴。。。
The Pascal scripting feature (modern Delphi-like Pascal) adds lots of new possibilities to customize your Setup or Uninstall at run-time. Some examples:
- Support for aborting Setup or Uninstall startup under custom conditions.
- Support for adding custom wizard pages to Setup at run-time.
- Support for extracting and calling DLL or other files from the Pascal script before, during or after the installation.
- Support for scripted constants that can do anything the normal constants, the read-from-registry, read-from-ini and read-from-commandline constants can do + more.
- Support for run-time removal of types, components and/or tasks under custom conditions.
- Support for conditional installation of [Files], [Registry], [Run] etc. entries based on custom conditions.
- Lots of support functions to do from the Pascal script just about everything Inno Setup itself does/can do + more.
An integrated run-time debugger to debug your custom Pascal script is also available.
The scripting engine used by Inno Setup is RemObjects Pascal Script by Carlo Kok. Like Inno Setup, RemObjects Pascal Script is freely available and comes with source. See
http://www.remobjects.com/?ps
for more information.