PowerBASIC Forums
  Third-Party Addons
  Inno Setup: Commented Install Script

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Inno Setup: Commented Install Script
Michael Mattias
Member
posted June 08, 2003 04:05 PM     Click Here to See the Profile for Michael Mattias     Edit/Delete Message   Reply w/Quote

; SAMPLE_RELEASE_SCRIPT.ISS
; Cleaned up and commmented "Actual, Real, Live" Inno Setup Script.
; This script ("more or less" is used by Tal Systems, Inc. to create the
; 'setup.exe' file supplied to licensed users of the EDI Pal (tm) ANSI EDI
; viewer-editor-printer tool
; This scipt is for Inno Setup v 3.0.x, and WILL NOT WORK with Inno Setup
; version 2.X
; Author: Michael Mattias, Racine WI USA
; Inno Setup is Copyright (C) 1997-2002 Jordan Russell. All rights reserved.
; =================================================================
; In the 'actual' process of creating the setup file, I use additional
; software to generate the INCLUDE file for the kits; and the EDI Pal
; does NOT use a password. The Provider Payment Partner (tm) System
; does use a password with the message strings as below which I modified
; for this demo script.
; The installation software then calls the Inno Command line compiler
; passing this file's name as a parameter.
; ======================================================================

; =====================================================================
; Override the default message to change 'password' to 'serial number'
; =====================================================================
[Messages]
PasswordLabel1=Installation of EDI Pal requires the serial number from your disk.
PasswordLabel3=Please enter the serial number in the form 1234-4567-90AB (case-sensitive), then click <Next> to continue
PasswordEditLabel=&Serial Number:
IncorrectPassword=The serial number you entered is not correct. Please try again.
; =====================================================================
; Create the directories needed on the user system
; =====================================================================
[Dirs]
; programs and support files
Name: "{app}\System"
; EDI Files
Name: "{app}\EDI Files"
; =====================================================================
; [SETUP] Section: options used when creating Setup.exe and in the
; Setup Wizard the user sees
; =====================================================================
[Setup]
AppName=EDI Pal ANSI EDI Tool
AppVerName=EDI Pal 2.0
Appversion=2.0
AppCopyright=Copyright 2003 Michael C. Mattias Racine WI
; The AppMutex is not currently used by the EDI Pal; however, if used
; it prevents installing and upgrade or uninstalling if the program is
; running. Inno diplays a message similar to "This program is currently
; running, please end and click retry.' Of course, this only works
; if your program actually does create a mutex.
;AppMutex=EDIPAL_Mutex_NAME
; Make sure the uninstall program is created
Uninstallable=yes
; NEXT PARAMETER MAJOR CHANGE BETWEEN INNO v2 and v3
; NEXT NOT SUPPORTED IN INNO v 3, must use [ICON] section entry
;AlwaysCreateUninstallIcon=yes << NOT VALID INNO V3
; --------------------------------------------------------------------
; Default Directory which comes up in the Wizard when user asked for
; an installation directory
; -------------------------------------------------------------------
DefaultDirName=C:\EDIPAL
; --------------------------------------------------------------------
; Name of the entry on the "Programs" menu
; -------------------------------------------------------------------
DefaultGroupName=EDI Pal(tm) ANSI EDI Tool
; --------------------------------------------------------------------
; 'source' directory for unqualified files specified in [Setup]
; and [Files] sections of this script
; -------------------------------------------------------------------
SourceDir=C:\Software_Development\pbwin70\work\edipal\2_0_0004\Inno_SourceDir
; I forgot what next means. Let's check the Inno Help File:
; "If this is set to yes, Setup will not show the Select Start Menu Folder
; wizard page. In this case, it uses the folder name specified by the
; DefaultGroupName [Setup] section directive, or "(Default)" if none is specified.
DisableProgramGroupPage=yes
; --------------------------------------------------------------------
; What Setup.exe is named and where it is created.
; Outputdir is relative to sourcedir unless fully qualified
; -------------------------------------------------------------------
OutputDir="..\Registered"
; create "setuppal.exe" rather than "setup.exe"
OutputBaseFileName="setupPal"
; ---------------------------------------------------------------------
; Password or serial number required for setup wizard to continue.
; Any quotation marks on this line become part of the password; i.e.,
; the user will be required to enter the quotes
Password=1234-5678-9012
; ----------------------------------------------------------------------
; Displayed to user BEFORE user selected installation directory.
; May be plain text or rich text.
InfoBeforeFile="user_before_install.txt"
; License file which user may read before he clicks, " I accept the agreement"
; If no license file supplied here, user does not need to 'accept' anything.
; May be text or rich text.
LicenseFile="C:\My Documents\Tal Systems\products\edipal\edipal_license.rtf"
; Image used on install wizard
WizardImageFile="C:\My Documents\Tal Systems\Corporate\Artwork\Tal_lg_120x60.bmp"
; Color used on Setup Wizard
; Inno wants "$bbggrr"; bb=blue, gg=green, rr=red, in hex
WizardImageBackColor=$75AC94
; ======================================================
; FILES SECTION. Uses SourceDir from Setup Section unless
; Source is fully qualified
; ======================================================
[FILES]
; main User Interface Executable:
Source: "edipal.exe"; DestDir: "{app}\system"
; help file
Source: "edipal.hlp"; DestDir: "{app}\system"
Source: "edipal.cnt"; DestDir: "{app}\system"
; DDOC PRINT SUPPORT FROM UTILITY FOLDER:
Source: "C:\Utility\Dlls\ddoc.exe"; DestDir: "{app}\system"
Source: "C:\Utility\Dlls\ddoc32.Dll"; DestDir: "{app}\system"
; ---------------------------------------------------------------
; Implementation kits - Extra charge
; In actual installation process, I create the #include file on the fly
; based on which kits the customer actually ordered.
#include "edipal_inno_files.txt"
; =================================================
; TYPICAL ENTRIES IN THE #include file (except not commented):
; Source: "tsiig015.dll"; DestDir: "{app}\system"
; Source: "tsiig022.dll"; DestDir: "{app}\system"
; Source: "tsiig041.dll"; DestDir: "{app}\system"
; Source: "tsiig051.dll"; DestDir: "{app}\system"
; =================================================
; Add a price list (MS-Word format)
Source: "C:\My Documents\Tal Systems\Products\Edipal\edipal_price_list.doc" ; Destdir: "{app}\system"

;=====================================================
; CREATE DEFAULT ENTRIES IN THE EDIPAL.INI FILE
;=====================================================
[INI]
Filename: "{app}\system\edipal.ini"; Section: "Settings" ;Key:"EDIFolder"; String:"{app}\EDI Files"
Filename: "{app}\system\edipal.ini"; Section: "Settings" ;Key:"SaveMode"; String:"T"
Filename: "{app}\system\edipal.ini"; Section: "Settings" ;Key:"RetotalTrailers"; String:"Y"
Filename: "{app}\system\edipal.ini"; Section: "Settings" ;Key:"ProgressFileSize"; String:"75"

; =====================================================================
; Actual registry key containing the value of the {app}\system folder
; =====================================================================
[REGISTRY]
Root: HKLM; Subkey:"Software\Tal Systems\EdiPal";Flags:uninsdeletekey; ValueType:string; ValueName:"Install Path"; ValueData:"{app}\system"

[Icons]
; Group icon goes on Start Menu, userdesktop goes on user desktop
; Include price list, email and web site links
Name: "{group}\EDI Pal ANSI EDI Tool"; Filename: "{app}\system\edipal.exe"; workingdir:"{app}"
Name: "{group}\Tal Systems on the 'Net"; Filename: "http://www.talsystems.com"
Name: "{group}\Send email to Tal Systems"; Filename: "mailto:edipal@talsystems.com"
Name: "{group}\Price and Kits List"; Filename: "{app}\system\edipal_price_list.doc"; workingdir:"{app}"
; Add uninstall icon entry on program menu:
Name: "{group}\Uninstall the EDI Pal Software"; Filename: "{uninstallexe}"
; have not yet figured out how to ASK the user if he wants a desktop icon or not.
Name: "{userdesktop}\EDI Pal"; Filename: "{app}\system\edipal.exe"; workingdir:"{app}"

; END OF INSTALL SCRIPT FOR EDIPAL Release

------------------
Michael Mattias
Tal Systems Inc.
Racine WI USA
mmattias@talsystems.com
www.talsystems.com

IP: Logged

All times are EasternTime (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | PowerBASIC BASIC Compilers

Copyright 1999-2005 PowerBASIC, Inc. All Rights Reserved.


Ultimate Bulletin Board 5.45c