Build Scripts And Inno Setup

2,645 views

Published on

Shows how to use batch files and InnoSetup to quickly and repeatedly build application setups for distributing your finished program.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,645
On SlideShare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Build Scripts And Inno Setup

    1. 1. Build Scripts and InnoSetup Oregon Delphi User Group April, 2006
    2. 2. Command-Line Tips <ul><li>DCC32 </li></ul><ul><li>BRCC32 </li></ul><ul><li>Where are ALL the command line options? </li></ul><ul><ul><li>Delphi 5-7: Search for “command-line compiler options” </li></ul></ul><ul><ul><li>Delphi 2006: dcc32 /? </li></ul></ul><ul><ul><li>Delphi 2006: Use Build Configurations </li></ul></ul><ul><li>Keep your old batch files! </li></ul>
    3. 3. Batch Files and Macros <ul><li>.BAT or .CMD </li></ul><ul><li>Remember DOS environment variables? </li></ul><ul><ul><li>They’re still useful! </li></ul></ul><ul><ul><li>SET name=value </li></ul></ul><ul><ul><li>Usage: %name% </li></ul></ul><ul><ul><li>Make your batch files more readable </li></ul></ul><ul><li>ERRORLEVEL </li></ul><ul><li>Long directory names </li></ul>
    4. 4. Examples <ul><li>Simple component package </li></ul><ul><ul><li>TurboPower Abbrevia </li></ul></ul><ul><li>Add resource compiler </li></ul><ul><ul><li>TurboPower Orpheus </li></ul></ul><ul><li>More later... </li></ul>
    5. 5. InnoSetup <ul><li>http://www.jrsoftware.org/ </li></ul><ul><li>Commercial-quality, free installer for Windows since 1997 </li></ul><ul><li>Creates single .EXE </li></ul><ul><li>Supports 64-bit </li></ul><ul><li>Supports disk-spanning </li></ul><ul><li>Customizable setup types </li></ul><ul><li>Complete Uninstall </li></ul>
    6. 6. InnoSetup (cont) <ul><li>Several compression choices </li></ul><ul><li>Integrated Pascal scripting engine </li></ul><ul><li>Creation of shortcuts everywhere </li></ul><ul><li>Multilingual support </li></ul><ul><li>Passworded and encrypted installs </li></ul><ul><li>Silent install/uninstall </li></ul><ul><li>Complete uninstall capability </li></ul><ul><li>Full Delphi 5 source code available </li></ul>
    7. 7. InnoSetup (cont) <ul><li>Can register OCX/DLLs, type libraries, and install fonts </li></ul><ul><li>Compare file version info, dates </li></ul><ul><li>Can replace in-use files </li></ul><ul><li>Creates .INI file or registry entries </li></ul><ul><li>Standard Windows 2000/XP-style interface </li></ul><ul><li>Professional and complete Help file </li></ul><ul><li>Support is via several active newsgroups </li></ul>
    8. 8. Examples <ul><li>Samples included </li></ul><ul><li>Pre-processor add-on </li></ul><ul><li>Macros to the max! </li></ul><ul><li>Foodguys </li></ul><ul><ul><li>Full Install </li></ul></ul><ul><ul><li>Upgrade Install </li></ul></ul><ul><ul><li>Sun Food Service </li></ul></ul>

    ×