Debian Codegraph @

wdoc/windows_install.html

raw
1 <HTML>
2
3 <HEAD>
4
5 <TITLE> ACEDB documentation: packaging databases for windows and
6 making CD-ROMS.</TITLE>
7
8 <LINK rel=stylesheet type="text/css"
9 href="./wdoc.css"
10 title="Style sheet for wdoc developer documents">
11
12 </HEAD>
13
14 <BODY>
15
16 <DIV ALIGN=CENTER>
17
18 <H1 align=center>Packaging Acedb databases for windows and making CD-ROMS.</H1>
19
20
21 <ADDRESS>Originally written by<BR>
22 Simon Kelley &lt;[email protected]&gt, September 2000</ADDRESS>
23
24 </DIV>
25
26 <H2> Packaging an Acedb database for easy installation on
27 windows. </H2>
28
29 The aim is to make a single executable file which can be distributed
30 by FTP, and easily installed on a computer running windows. The
31 installation process involves unpacking all the files comprising the
32 database and creating start-menu and desktop icons which will open the
33 database.
34 <p>
35 Note that this archive does not include the Acedb programs. These
36 should be installed from a suitable installable archive before
37 installing any databases.
38
39 <H3>Tools</H3>
40
41 You will need to download and install "Inno Setup" available from
42
43 <A HREF=http://www.jordanr.dhs.org/isinfo.htm>http://www.jordanr.dhs.org/isinfo.htm</A>
44
45 <H3>Control File</H3>
46 Inno Setup uses script files to control how it creates the program
47 archive. Below is an example with commentary on how to customise it
48 for your needs. The script files have names ending in .iss You can
49 edit them either on Inno Setup or using the text editor of your
50 choice. <font color=red>Red</font> text is things you'll probably want
51 to change. <font color=green>Green</font> text is my comments, don't
52 include that in your control file.
53 <PRE>
54
55 [Setup]
56 Bits=32
57 AppName=<font color=red>MyDatabase</font> <font color=green> Used to name the program in the install wizard. </font>
58 AppVerName=<font color=red>MyDataBase</font> <font color=green> Used to name the program in the install wizard. </font>
59 DefaultGroupName=<font color=red>Acedb Databases</font> <font color=green> The group in the start menu where the database will be installed. </font>
60 DefaultDirName=<font color=red>{sd}\Acedb Databases\MyDatabase</font> <font color=green> Where the files will be installed when the archive is installed - {sd} means system disk. </font>
61 MinVersion=4,4
62 OutputBaseFileName=<font color=red>MyDatabase</font> <font color=green> The archive will be called MyDatabase.exe </font>
63 OutputDir=<font color=red>e:\</font> <font color=green> Where to put the finished archive. </font>
64 SourceDir=<font color=red>e:\dbDir</font>; <font color=green>Where to look for the files specified in [Files] below.</font>
65
66 [Files]
67 Source: <font color=red>"database\*";</font> DestDir: "{app}\<font color=red>database</font>"; <font color=green> Include all the files you want here. </font>
68 Source: <font color=red>"wspec\*";</font> DestDir: "{app}\<font color=red>wspec</font>"; <font color=green> Don't forget pictures and wgf, if needed. </font>
69
70 [ini]
71 Filename: "{app}\<font color=red>MyDatabase</font>.adb"; Section: "ACEDB"; Key: "path"; String: "{app}"; <font color=green> This creates the .adb file used in [Icons} below. </font>
72
73 [Icons]
74 <font color=green>Line below makes an entry in the start menu in the sub-menu specified by DefaultGroupName.</font>
75 Name: "{group}\<font color=red>MyDatabase</font>"; Filename:"{app}\<font color=red>MyDatabase</font>.adb"
76 <font color=green>Line below makes an icon on the desktop.</font>
77 Name: "{userdesktop}\<font color=red>MyDatabase</font>"; Filename: "{app}\<font color=red>MyDatabase</font>.adb"
78
79 <font color=green>Don't change the section below or the uninstall function may not work.</font>
80 [UninstallDelete]
81 Type: filesandordirs; Name: "{app}";
82
83 </PRE>
84
85 Once you have the correct control file, save it using the File/Save
86 menu, and then hit File/Compile. Inno Setup will grind through its
87 stuff and you will end up with a single .exe file which when executed
88 will install your database. Copy that to your FTP site and then go and have a nice
89 cup of tea.
90
91 <H2> Making a CDROM. </H2>
92
93 Once you have an install-archive of your database it is quite simple
94 to go on and make a CD-ROM which allows for automatic installation of
95 both Acedb and you database with only a few clicks. The recommended
96 strategy is to make a CD containing three files.
97 <ul>
98
99 <li> The relevant install archive for Acedb itself, as distributed by
100 the Acedb Team.
101
102 <li> The install archive for your database, created by following the
103 instructions above.
104
105 <li> A small master installer, which guides the user through
106 installing first Acedb, and then your database.
107
108 </ul>
109
110 If you call the master installer Setup.exe, then windows will
111 even run it automatically when the user inserts the CD-ROM.
112 <p>
113 To create the master installer, use Inno Setup, in the way
114 described above, with a control file which looks like this.
115
116 <pre>
117 [Setup]
118 Bits=32
119 AppName=<font color=red>C Elegans Database CDROM</font>
120 AppVerName=<font color=red>the 7th January 2000 beta release</font>
121 CreateAppDir=0
122 MinVersion=4,4
123 OutputDir=.
124 OutputBaseFileName=Setup
125 InfoBeforeFile=<font color=red>cdromblurb.txt</font>
126 Uninstallable=0
127
128 [Run]
129 Filename: "{src}\<font color=red>Acedb-4_8c.exe</font>"; Parameters: "/SP-";
130 Filename: "{src}\<font color=red>MyDatabase.exe</font>"; Parameters: "/SP-";
131
132 </pre>
133
134 Compiling the above with Inno Setup will create Setup.exe, which will in turn run Acedb-4_8c.exe
135 and MyDatabase.exe from the CD-ROM.
136 <p>
137 The file cdromblurb.txt contains
138 text which is displayed to the user as part of the install
139 process. Note that this is copied into Setup.exe when you compile the
140 control file with Inno Setup, so it needs to be available then: it
141 does not have to be on the CD-ROM. Here is an example I used, customise
142 it as necessary.
143
144 <pre>
145 Welcome to the C. elegans Acedb database CD-ROM distribution.
146
147 This installation program will install both the Acedb software
148 and, when that is complete, the C. Elegans database. If you wish
149 to install only one of these components (for instance if you
150 already have the Acedb software installed) then click the
151 Cancel button now and use the separate installation programs
152 on this CD-ROM
153
154 Acedb.exe - to install the acedb software.
155 Wormace.exe - to install the C. Elegans data.
156
157 If you wish to install both components, click the next button,
158 which will take you first through installing the Acedb
159 software, and then the C. Elegans data.
160 </pre>
161
162 Burn Setup.exe, the Acedb installer, and your database installer onto
163 a CD-ROM and all is complete. Inno Setup compresses the data, so even
164 rather large databases will fit on a single CD-ROM. If you database is
165 too large, Inno setup has a spanning feature to
166 allow it to be spread over more than one CD-ROM. See the documentation
167 which comes with Inno Setup for details on this.
168
169
170
171
172 </BODY>
173 </HTML>
174