home *** CD-ROM | disk | FTP | other *** search
/ The Mother of All Windows Books / CD-MOM.iso / cd_mom / workmodl / drafix / winstal2.inf < prev    next >
INI File  |  1992-05-11  |  13KB  |  314 lines

  1. ; About This File
  2. ; ===============
  3. ;
  4. ; This file, APPSETUP.INF, contains information that Install uses to 
  5. ; install applications. This file must be in the same directory as the 
  6. ; program file INSTALL.EXE. The two files can be on a floppy disk, a hard 
  7. ; disk, or a network disk drive.
  8. ;
  9. ; The information in this file determines
  10. ;   * The names of the disks and directories from which, and to which, Install
  11. ;     copies files
  12. ;
  13. ;   * The name of the group that Install creates in Program Manager's window, and the
  14. ;     names of program items that Install adds to that group
  15. ;
  16. ; You can create your own Install program by changing some of the information
  17. ; in this file.
  18. ;
  19. ; The Parts of APPSETUP.INF
  20. ; -------------------------
  21. ;
  22. ; APPSETUP.INF is similar in format to a Windows initialization (.INI) file.
  23. ;
  24. ; Sections: APPSETUP.INF is divided     into sections. Each section is identified by an     
  25. ;           alphanumeric name enclosed in square brackets.
  26. ;
  27. ;           Most section names are "hard-coded": Install is written to search for
  28. ;           in APPSETUP.INF for that specific section name. However, some section
  29.  ;          names are defined within other sections, and are therefore easily 
  30. ;           customizable.
  31. ;
  32. ; Comments: A comment begins with a semicolon. You can include a comment 
  33. ;           on the same line as syntax, as long as it comes after the syntax.
  34. ; Spaces:   Spaces are ignored, except when between double quotes.
  35. ;           Blank lines are also ignored.
  36. ;
  37. ; Sections in This File
  38. ; ---------------------
  39. ; The rest of this file contains the actual sections and statements
  40. ; that make up the working file. It also includes comments that 
  41. ; explain each section and statement.
  42. ;
  43.  
  44. [dialog]
  45. ; The [dialog] section contains information pertaining to Install's dialog box. 
  46. ;
  47. ; The Caption statement determines the text that appears in the title bar 
  48. ; of Install's dialog box. 
  49. ;
  50. ; The following Caption statement specifies the caption "Demo App Installation".
  51. ; To specify your own caption, replace the text "Demo App Installation" with the 
  52. ; title you want (enclosed in double quotes).
  53.  
  54.   caption = "Drafix Windows CAD Demo Installation"
  55.  
  56. [data]
  57. ; The [data] section includes information about the location to which the 
  58. ; application's files should be copied.
  59. ;
  60. ; The Defdir statement specifies the default directory for installing the 
  61. ; application. This is the drive and directory name that will appear in the
  62. ; Install dialog box. The user can specify a different installation directory 
  63. ; by typing a different name. (The Defdir statement MUST include a drive letter.) 
  64. ;
  65. ; The following Defdir statement tells Install to display the default directory 
  66. ; C:\DEMOAPP when asking the user where to install the application.
  67. ; To specify your own default directory, replace the text C:\DEMOAPP with
  68. ; the drive and directory you want.
  69.  
  70.   defdir = C:\CAD
  71.  
  72. [disks]
  73. ; The [disks] section defines the distribution disks that contain the application 
  74. ; files. Install uses this information to tell the user to insert the correct disk.
  75. ; Elsewhere within this .INF file, the distribution disks are normally referred to
  76. ; by a single-character disk ID. This section defines those disk IDs, and includes 
  77. ; information about the disk to which each disk ID refers.
  78. ;
  79. ; The disk ID '0' is reserved; it represents the installation directory -- 
  80. ; the directory in which the user is installing the application. 
  81. ;
  82. ; The format of each disk definition is:
  83. ;     n = path, title
  84. ;
  85. ;  where
  86. ;     n       is the disk ID (a single character from 1-9 or A-Z). 
  87. ;
  88. ;     path    the path of the source directory from which Install should copy 
  89. ;             the files to the disk  The path can be relative to the
  90. ;             source directory (see examples below).
  91. ;
  92. ;     title   is a descriptive name for the disk. The title should match 
  93. ;             the disk's printed or written label exactly.
  94. ; The following disk-definition statements define two distribution disks.
  95.  
  96.   1 =.,        "Drafix Windows CAD Setup Disk"
  97. ;  2 =.,        "Drafix Windows Cad Utility Disk"
  98. ;  2 =.\files,  "Drafix Windows Cad Disk 2"
  99.  
  100. ; The first statement tells Install to refer to Disk 1 as "Demo Application 
  101. ; Disk 1". Because the period (.) denotes the current directory, the files 
  102. ; on that disk will be copied from the root directory of the
  103. ; distribution disk. 
  104. ;
  105. ; The second statement tells Install to refer to Disk 2 as "Demo Application 
  106. ; Disk 2"; the files that Disk 2 contains will be copied from the \FILES 
  107. ; directory of the distribution disk.
  108. ;
  109. ; You can include as many disk-definition statements as necessary. Every 
  110. ; distribution disk should have a corresponding disk-definition statement;
  111. ; otherwise, Install cannot tell the user to insert the appropriate disk.
  112.  
  113. [needed.space]
  114. ; The [needed.space] section defines how much disk space, in bytes, your 
  115. ; application files require. If the specified amount of space is not available,
  116. ; Install will ask the user to specify a different hard disk, or exit Install.
  117. ; The following statement tells Install that this application requires 300KB of disk
  118. ; space:
  119. ;
  120.   minspace = 2000000
  121. ;
  122. [app.copy.appstuff]
  123.  
  124. ; The [app.copy.appstuff] section contains section-definition statements.
  125. ; Each statement defines a section that lists application files to be
  126. ; copied as part of installation. The sections are organized by file 
  127. ; destination; you should define a separate section for each destination 
  128. ; directory. 
  129. ;
  130. ; Each section definition has the following form:
  131. ;
  132. ;     #section_name, 0:dest_pathname
  133. ;
  134. ; where
  135. ;
  136. ;     #section_name   defines the name of the .INF section that lists the
  137. ;                     files to be copied.
  138. ;     0                   is the disk ID that represents the installation directory.
  139. ;                     (0 is a reserved disk ID, and always represents the
  140. ;                     installation directory -- the directory the user specified
  141. ;                     when asked where to install the application.)
  142. ;     dest_pathname   is the pathname of the destination directory, relative 
  143. ;                     to the installation directory. For example, "0:FILES"
  144. ;                     represents the FILES subdirectory of the installation 
  145. ;                     directory.
  146. ;
  147. ; The following section-definition statements define two sections, [app.user]
  148. ; and [app.system]. The files listed in the [app.user] section will be copied
  149. ; into the installation directory; those listed in the [app.system] directory
  150. ; will be copied into the SYSTEM subdirectory of the installation directory.
  151.  
  152.       #app.usertxt,    0:
  153.       #app.user,       0:
  154.       #app.userdwg,    0:dwg
  155.       #app.userslb,    0:slb
  156. ;      #app.usermacro,  0:macro
  157. ;      #app.system, 0:system
  158.  
  159. [app.user]
  160. ; This section is a user-defined section that lists files to be copied to a
  161. ; particular destination directory. The [app.copy.appstuff] section defines.
  162. ; the name of this section and the destination directory of the files.
  163. ;
  164. ; In each section like this one, you should list all files that you want copied
  165. ; to the same destination. (For example, all the files in this section, [app.user],
  166. ; will be copied to the installation directory.)
  167. ;
  168. ; Install copies the files listed in this section in the order in which they
  169. ; are listed. 
  170. ;
  171. ; The syntax of each file listing is
  172. ;
  173. ;     N:FILENAME, "Description"
  174. ;
  175. ; where
  176. ;
  177. ;     N:           is the disk ID of the disk that contains the file. (Disk IDs
  178. ;                  are defined in the [disks] section.) If the specified disk 
  179. ;                  is not in the disk drive, Install prompts the user to insert it.
  180. ;       
  181. ;     FILENAME     is the name of the file, including the filename extension, if any.
  182. ;
  183. ;     Description  is descriptive text that Install displays as it is copying
  184. ;                  the file or group of files.  If you leave the description blank,
  185. ;                  Install will continue displaying the descriptive text from the 
  186. ;                  previous file. This lets you use a general name for a group of files.
  187. ;
  188. ; For example, the first statement below tells Install to copy the file FILE1.FOO from 
  189. ; Disk 1, and to display the descriptive text "Demo App" while copying that file. As
  190. ; explained above, the destination of the files in this section is determined by a 
  191. ; section-definition statement in the [app.copy.appstuff] section.
  192.  
  193.     1:cad.exe,        "Drafix Windows CAD Application Files"
  194.     1:cadagent.dll
  195.     1:cadchuck.dll
  196.     1:cadprocs.dll
  197.     1:cadgraop.dll
  198.     1:cadmacro.dll
  199.     1:cadmenu.dll
  200.     1:cadmodel.dll
  201.     1:cadpaint.dll
  202.     1:cadstrop.dll
  203.     1:cadtable.dll
  204.     1:cadwin20.dll
  205.     1:drafix.fon,        "Drafix Windows CAD Font Files"
  206.  
  207. [app.usertxt]
  208.     1:readme.txt,    "Drafix Windows CAD Read Me Files"
  209.  
  210. [app.userdwg]
  211.     1:TUTPLAN.cad,    "Drafix Windows CAD Sample Drawings"
  212.     1:TUTTRIM.cad
  213.     1:TUTEDIT.cad
  214.     1:SNAP.cad
  215.  
  216. [app.userslb]
  217.     1:tutorial.slb,    "Drafix Windows CAD Symbol Library"
  218.  
  219. [app.system]
  220. ; Like the [app.user] section, this section is user-defined, and lists 
  221. ; files to be copied to a particular destination directory. The 
  222. ; [app.copy.appstuff] section defines.the name of this section and the 
  223. ; destination directory of the files listed in this section.
  224. ; See the preceding section for a description of the syntax for listing
  225. ; files.
  226.  
  227. ;  2:driver1.foo, "Demo App Drivers"
  228. ;  2:driver2.foo
  229.  
  230.  
  231. [progman.groups]
  232. ; The [progman.groups] section (optional) tells Install to create Program 
  233. ; Manager groups for your application. (Install then uses DDE to communicate 
  234. ; with Program Manager.)
  235. ;
  236. ; The section lists the names of the groups you want to create. You then 
  237. ; define additional sections in this file; those sections list the program 
  238. ; items you want in each group.
  239. ;
  240. ; The syntax for each group name is:
  241. ;
  242. ;     groupname, [groupfile.grp]
  243. ;
  244. ; where
  245. ;
  246. ;     groupname      is the title you want Program Manager to display
  247. ;                    under the icon that represents the group. (The 
  248. ;                    groupname will also be the name of the section
  249. ;                    that defines the contents of the group.)
  250. ;
  251. ;     groupfile.grp  is the filename of the file in which Program Manager
  252. ;                    will save information about the group. (You must include
  253. ;                    the .GRP filename extension.) This parameter is optional;
  254. ;                    if you omit it, Install uses a default name for the 
  255. ;                    group file.
  256. ;
  257. ; The following group-definition statement tells Install to create a group named
  258. ; Demo, and store its information in a file named DEMO_APP.GRP. The [demo] section
  259. ; will contain information about the group's contents.
  260.  
  261.   Drafix Windows CAD,wincad.grp
  262.  
  263. [Drafix Windows CAD]
  264. ; This section is a user-defined section that define the contents of a 
  265. ; Program Manager group file. The [progman.groups] section defines.
  266. ; the name of this section and the group, and the name of the file in which
  267. ; to store information about the group.
  268. ;
  269. ; In each section like this one, you should list all items that you want Install
  270. ; to add to the group.
  271. ;
  272. ; The syntax for item-definition statements is: 
  273. ;
  274. ;     "Description",    APPFILE.EXE, [ICONFILE.EXE[, N]]
  275. ;
  276. ;where
  277. ;
  278. ;     Description   is the text that will appear below the program icon 
  279. ;                   when displayed in the Program Manager group. 
  280. ;
  281. ;     APPFILE.EXE   is the command line that starts the application.
  282. ;     
  283. ;     ICONFILE.EXE  is the application file that contains the icon you
  284. ;                   want to represent the application. Typically, this is 
  285. ;                   the executable application file, but it could be a 
  286. ;                   different file. (You can also specify a .ICO file, created
  287. ;                   using the SDKPaint tool.) This parameter is optional; if you omit it,
  288. ;                   Install will use the first icon it finds in APPFILE.EXE. 
  289. ;
  290. ;     N             is the offset of the icon you want to use within the file
  291. ;                   ICONFILE.EXE.  This parameter is optional; if you omit it, 
  292. ;                   Install uses the first icon it finds in ICONFILE.EXE.
  293. ;                   You must include this parameter if the file you specify
  294. ;                   contains more than one icon, and you want to use an icon
  295. ;                   other than the first icon. 
  296. ;
  297. ;                   To use the Nth icon, specify the number N-1. For example,
  298. ;                   to use the third icon, specify 2.
  299. ;
  300. ; For example, the following item-definition statement tells Install to add an item
  301. ; titled "Demo Application" to Program Manager. The application command line
  302. ; is FILE1.FOO; the file that contains the application icon is DEMO.ICO
  303.     
  304. ;"Drafix Windows CAD", .\cad.exe
  305. ;"Drafix Windows CAD", cad.exe
  306. "Drafix Windows CAD", 0:cad.exe
  307.  
  308.