Inno Setup Manual

  • View
    639

  • Download
    0

Embed Size (px)

DESCRIPTION

Manual for Inno Setup program

Text of Inno Setup Manual

  • Table of ContentsForeword 0

    Part I What is Inno Setup? 3

    Part II Documentation Conventions 3

    Part III How to Use 4................................................................................................................................... 41 Creating Installations ................................................................................................................................... 42 Script Format Overview ................................................................................................................................... 53 Parameters in Sections ................................................................................................................................... 54 Constants

    ................................................................................................................................... 105 Common Parameters

    ................................................................................................................................... 116 Components and Tasks Parameters

    ................................................................................................................................... 127 Setup Script Sections .......................................................................................................................................................... 12[Setup] section .......................................................................................................................................................... 14[Types] section .......................................................................................................................................................... 15[Components] section .......................................................................................................................................................... 17[Tasks] section .......................................................................................................................................................... 18[Dirs] section .......................................................................................................................................................... 20[Files] section .......................................................................................................................................................... 26[Icons] section .......................................................................................................................................................... 28[INI] section .......................................................................................................................................................... 29[InstallDelete] section .......................................................................................................................................................... 29[Languages] section .......................................................................................................................................................... 30[Messages] section .......................................................................................................................................................... 31[CustomMessages] section .......................................................................................................................................................... 32[LangOptions] section .......................................................................................................................................................... 33[Registry] section .......................................................................................................................................................... 36[Run] section .......................................................................................................................................................... 39[UninstallDelete] section .......................................................................................................................................................... 39[UninstallRun] section

    ................................................................................................................................... 428 Pascal Scripting .......................................................................................................................................................... 42Introduction .......................................................................................................................................................... 43Creating the [Code] Section .......................................................................................................................................................... 43Event Functions .......................................................................................................................................................... 45Scripted Constants .......................................................................................................................................................... 46Check Parameters .......................................................................................................................................................... 47BeforeInstall and AfterInstall Parameters .......................................................................................................................................................... 48Uninstall Code .......................................................................................................................................................... 48Examples .......................................................................................................................................................... 48Support Functions Reference .......................................................................................................................................................... 55Support Classes Reference .......................................................................................................................................................... 69Using Custom Wizard Pages .......................................................................................................................................................... 69Using DLLs .......................................................................................................................................................... 70Using COM Automation objects

    IContents

    I

    2005 ... Your company

  • Part IV Other Information 71................................................................................................................................... 711 Frequently Asked Questions ................................................................................................................................... 712 Wizard Pages ................................................................................................................................... 723 Installation Order ................................................................................................................................... 734 Miscellaneous Notes ................................................................................................................................... 735 Command Line Compiler Execution ................................................................................................................................... 746 Setup Command Line Parameters ................................................................................................................................... 757 Setup Exit Codes ................................................................................................................................... 768 Uninstaller Command Line Parameters ................................................................................................................................... 769 Uninstaller Exit Codes ................................................................................................................................... 7710 Unsafe Files ................................................................................................................................... 7811 Credits ................................................................................................................................... 7812 Contacting Me

    Index 79

    Inno Setup HelpII

    2005 ... Your company

  • What is Inno Setup? 3

    2005 ... Your company

    1 What is Inno Setup?

    Inno Setup version 5.0.7Copyright (C) 1997-2005 Jordan Russell. All rights reserved.Portions Copyright (C) 2000-2005 Martijn Laan. All rights reserved.Contacting Me

    Inno Setup is a free installer for Windows programs. First introduced in 1997, Inno Setup today rivalsand even surpasses many commercial installers in feature set and stability.

    Key features: Support for all 32-bit Windows versions in use today -- Windows 95, 98, 2000, 2003, XP, Me,

    and NT 4.0. (No service packs are required.) Supports creation of a single EXE to install your program for easy online distribution. Disk

    spanning is also supported. Standard Windows 2000/XP-style wizard interface. Customizable setup types, e.g. Full, Minimal, Custom. Complete uninstall capabilities. Installation of files:Includes integrated support for "deflate", bzip2, and 7-Zip LZMA file compression. The installer has

    the ability to compare file version info, replace in-use files, use shared file counting, registerDLL/OCX's and type libraries, and install fonts.

    Creation of shortcuts anywhere, including in the Start