[jawsscripts] Re: an installer for jaws scripts

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 26 Sep 2007 15:46:08 -0400 (EDT)

The section below from the JS Install documentation indicates that
customizing the installation is possible.  The author gives examples of
easy changes, but the Inno Setup script may also be modified with more
complex changes, including programming in the Pascal language.

Whereas JSX uses a seperate program for the dialog with JAWS script
installation options, JS Install uses built-in dialogs of Inno Setup,
thereby saving considerable size in the resulting installer.

Jamal


Customizing the source file

Customizing the source file.
There is a certain amount of customization that you can do to the Inno
Setup source file that doesn't require programming knowledge and is not
too difficult.
First, click on your Inno source file such as Notepad.iss. This will
launch the source file in the Inno Setup program. This is a plain text
file like you
would create in Notepad or your Word Processor, and you can edit the text,
copy, paste and delete text in the same way you do in the Notepad program.
The
text in the source file is divided into sections that are enclosed within
square brackets such as: [Setup] and [Files].

Arrow down to the [Files] section. This shows all files that will be
installed on the user's computer. for example:

[Files]
Source: "Notepad.j*"; DestDir: "{code:GetScriptDir}"
Source: "*.txt"; DestDir: "{app}"

The first line below the [Files] line installs all notepad scripts
(Notepad.j*) into the JAWS settings folder. The following line installs
all text files
(*.txt) into the additional files folder.

Suppose you want to create a subfolder called "Help" in the Additional
files folder and install the file Notepad.hlp in it. You would copy and
paste a copy
of the last line listed above and then substitute the appropriate words so
that The new line would read as follows, and notice where the \Help is
inserted:
Source: "Notepad.hlp"; DestDir: "{app}\Help"

You can also customize your Start menu entries without too much
difficulty. Arrow down the listing to find the [Icons] section. Here is an
example of this
section.

[Icons]
Name: "{group}\Notepad Scripts help"; Filename: "{app}\Help.txt"

Suppose you want to change the line below [Icons] to read Notepad Scripts
documentation and you want to use the Notepad.hlp file that we created in
the
Help subfolder above in the files section. You would change the line to
read:
Name: "{group}\Notepad Scripts documentation"; Filename:
"{app}\Help\Notepad.hlp"

The part that reads {app} is a constant that represents the name of the
Additional files folder, you just put your folder and filename immediately
after
that. Keeping these things in mind you can add as many start menu entries
as you wish.

Once you have finished making any changes to the source file you then
compile it by pressing control+f9. This will generate a new setup.exe
file. If you
get an error you've probably typed something wrong. The syntax has to be
correct including the position of the quotation marks. You can also save
the changes
to the source file listing by pressing control+s. You can then close the
source file, go to the new setup.exe file and run it to see how your
changes worked.

You can do a lot of additional customization to the Inno source file. if
you are interested in learning more see the Inno Setup help file named
ISetup.txt.

Troubleshooting and tips

__________ 
View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: