Custom
Application Setup II
Welcome back everyone. So are you ready to
create your Setup Script?
You are!! Okay fire up "Inno Setup". This dialog should
appear :
For the sake of simplicity,
and 'cos it's less work, select the "Create a new script file using
the Script Wizard" option button and then select "OK".
The Wizard will then appear.
Say hello, ask how Harry Potter is and then select "Next".
Fill in each edit box
replacing the contents with your own details if you so wish.
Select "Next".
We would like our Application
to be installed in the Program Files directory and we are happy with the
Application Directory name. You can uncheck the "Allow user to
change the application directory" if you wish. Click on "Next"
again.
Okay, this is the important
part. Firstly you need to select AcadInst.exe as the "Application
main executable file". This is the file that will run after the
installation is complete. You then need to select ALL files AND directories
that you want to include within the installation. DO NOT forget the AcadInst.ini
file.
Once finished with your selections, press "Next".
Now we need to set up our
icons. We would like to "Create an Internet shortcut in the
Start Menu folder", and we would like to "Create an
Uninstall icon in the Start Menu folder". We DO NOT want to "Allow
user to create a desktop icon". "Acad Install" will take
care of that for us. Select "Next" yet again.
This is where we include our
License, Warning and Config text files.
Yep, you've guessed, press "Next" again.
Right, that's us about done.
Now just for a change, select the "Finish" button.
No, we do not want to compile
our script as of yet as we have a few tweeks to take care of. Select "No".
Looks nice hey. Have a look
at these lines under the [Files] section :
Source:
"C:\afralisp2004_Install\Lib2004\*.*"; DestDir: "{app}";
Flags: ignoreversion
Source: "C:\afralisp2004_Install\Lisp2004\*.*"; DestDir:
"{app}"; Flags: ignoreversion
Source: "C:\afralisp2004_Install\Templates\*.*"; DestDir:
"{app}"; Flags: ignoreversion
For some inexplicable reason,
the Wizard does not add the sub-folder paths to the DestDir (Destination
Directory). This means that we need to add them by hand. This is what needs
to be added to your script.
Source:
"C:\afralisp2004_Install\Lib2004\*.*"; DestDir: "{app}\Lib2004";
Flags: ignoreversion
Source: "C:\afralisp2004_Install\Lisp2004\*.*"; DestDir:
"{app}\Lisp2004"; Flags:
ignoreversion
Source: "C:\afralisp2004_Install\Templates\*.*"; DestDir:
"{app}\Templates"; Flags:
ignoreversion
As we do not want "Acad
Install" to run at this time, you now need to comment out the
following section. You comment it out by placing a semi-colon ( ; ) at the
beginning of the line.
;[Run]
;Filename: "{app}\AcadInst.exe";
Description: "Launch AfraLisp 2004 Custom Menu"; Flags: nowait
postinstall skipifsilent
Your script will look something like this.
(I've added the comments by the way).
Now save your script as "AfraLisp.iss"
into the root folder of your application.
Okey Doke, it's now time to test our script. Let's do
that on the next page.
Exciting hey??
|