home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / iw351.zip / APPSETUP.INF < prev    next >
INI File  |  1994-08-22  |  24KB  |  534 lines

  1. ; -------------------------------------------------------------
  2. ;
  3. ;  Sample Installation Script -- 070894 -- Version 3.3
  4. ;
  5. ; -------------------------------------------------------------
  6. ; *************************************************************
  7. ; -------------------------------------------------------------
  8.  
  9.  
  10. ; -------------------------------------------------------------
  11. ; *************************************************************
  12. ; -------------------------------------------------------------
  13. ; About This File
  14. ; ===============
  15. ;
  16. ; This file, APPSETUP.INF, contains information that InstallWare uses to 
  17. ; install applications. This file must be in the same directory as the 
  18. ; program files IW.EXE(if used) and INSTALL.EXE. The two files can be on 
  19. ; a floppy disk, a hard disk, or a network disk drive.
  20. ;
  21. ; The information in this file determines
  22. ;   * The names of the disks and directories from which, and to which, 
  23. ;     InstallWare copies files.
  24. ;
  25. ;   * The name of the group that InstallWare creates in Program Manager's
  26. ;     window, and the names of program items that InstallWare adds to that 
  27. ;     group.
  28. ;
  29. ; You can create your own InstallWare program by changing some of the 
  30. ; information in this file.
  31. ;
  32. ; The Parts of APPSETUP.INF
  33. ; -------------------------
  34. ;
  35. ; APPSETUP.INF is similar in format to a Windows initialization (.INI) file.
  36. ;
  37. ; Sections: APPSETUP.INF is divided into sections. Each section is identified
  38. ;           by a name enclosed in square brackets.
  39. ;
  40. ;           Most section names are "hard-coded". However, some section names
  41. ;           are defined within other sections, and are therefore easily 
  42. ;           customizable.
  43. ;
  44. ; Comments: A comment begins with a semicolon. You can include a comment 
  45. ;           on the same line as syntax, as long as it comes after the syntax.
  46. ; Spaces:   Spaces are ignored, except when between double quotes.
  47. ;           Blank lines are also ignored.
  48. ;
  49. ; Sections in This File
  50. ; ---------------------
  51. ; The rest of this file contains the actual sections and statements
  52. ; that make up the working file. It also includes comments that 
  53. ; explain each section and statement.
  54. ;
  55. ; Macros
  56. ; ------
  57. ;
  58. ; Any String that you define in this file can include one of the following
  59. ; macros to enable defining directory locations that would be impossible
  60. ; otherwise.  Simply place the desired macro in the string where you would
  61. ; normally use a pathspec.
  62. ;
  63. ; Supported Macros in this Version
  64. ; #W The user's WINDOWS directory
  65. ; #S The user's SYSTEM directory
  66. ; #D The directory in which the installation actually occurred
  67. ; #V The DRIVE on which the installation occurred, such as C: (no backslash)
  68. ;
  69. ; If you need to specify any of these letter combinations and do not want
  70. ; the macro expansion to take place, just precede the combination with an
  71. ; extra #, as in the following: "The ##Workplace ##Solution"
  72. ;
  73. ;
  74. ;
  75. ; -------------------------------------------------------------
  76. ; *************************************************************
  77. ; -------------------------------------------------------------
  78. ; INFOFILE
  79. ; -------------------------------------------------------------
  80. ; *************************************************************
  81. ; -------------------------------------------------------------
  82. ; The [infofile] section describes various miscellaneous aspects
  83. ; of the installation.  The FILENAME label indicates the name of 
  84. ; the text file that is shown to the user when the program starts 
  85. ; up.  The APPNAME label is used to refer to the name of the 
  86. ; application being installed.
  87. ;
  88. ; The EXEFILE label is used to tell InstallWare that you would
  89. ; like to run a file after the installation is complete.  This
  90. ; is useful for showing a readme file, unpacking some archives,
  91. ; or just starting up the program that was just installed.  In
  92. ; the example below, note that the filename starts with a backslash.
  93. ; This indicates that the program is in the PATH.  Otherwise,
  94. ; it is assumed to be located relative to the installation
  95. ; directory.  You can also use macros to indicate directories.
  96. ; The MESSAGE label denotes the text that will be
  97. ; displayed in the message box that prompts the user just before
  98. ; the EXEFILE is run.  If there is no MESSAGE, then the EXEFILE
  99. ; is run without prompting the user.
  100. ; -------------------------------------------------------------
  101.  
  102. [infofile]
  103.     filename = README
  104.     appname  = SAMPLE APPL
  105. ;    exefile  = "\notepad.exe sub\readme."
  106.     exefile  = "#W\notepad.exe #D\sub\readme."
  107.     message  = "Do you want to view the readme file?"
  108.  
  109.     
  110. ; -------------------------------------------------------------
  111. ; *************************************************************
  112. ; -------------------------------------------------------------
  113. ; DIALOG
  114. ; -------------------------------------------------------------
  115. ; *************************************************************
  116. ; -------------------------------------------------------------
  117. ; The [dialog caption] section is used to define the caption
  118. ; of the windows that shown in the INSTALL program.
  119. ; -------------------------------------------------------------
  120.  
  121. [dialog]
  122.     caption = "Sample Installation"
  123.  
  124.  
  125. ; -------------------------------------------------------------
  126. ; *************************************************************
  127. ; -------------------------------------------------------------
  128. ; DATA
  129. ; -------------------------------------------------------------
  130. ; *************************************************************
  131. ; -------------------------------------------------------------
  132. ; The [data defdir] section defines the default directory. This
  133. ; directory is placed in the Install location editbox when the
  134. ; program starts.  If the user does not change it, then this
  135. ; will be the base directory of the installation.  To reference
  136. ; the WINDOWS directory on the user's system, use the #W macro.
  137. ; -------------------------------------------------------------
  138.  
  139. [data]
  140. ;    defdir = C:\INSTWARE
  141.     defdir = #W\SYSTEM\INSTWARE
  142.  
  143.  
  144. ; -------------------------------------------------------------
  145. ; *************************************************************
  146. ; -------------------------------------------------------------
  147. ; DISKS
  148. ; -------------------------------------------------------------
  149. ; *************************************************************
  150. ; -------------------------------------------------------------
  151. ;
  152. ; The [disks] section defines the distribution disks that contain the
  153. ; application  files. InstallWare uses this information to tell the user to
  154. ; insert the correct disk.
  155. ; Elsewhere within this .INF file, the distribution disks are normally
  156. ; referred to by a single-character disk ID. This section defines those
  157. ; disk IDs, and includes  information about the disk to which each disk ID
  158. ; refers.
  159. ;
  160. ; The disk ID '0' is reserved; it represents the installation directory -- 
  161. ; the directory in which the user is installing the application. 
  162. ;
  163. ; The format of each disk definition is:
  164. ;     n = path, title
  165. ;
  166. ; where
  167. ;     n       is the disk ID (a single character from 1-9 or A-Z). 
  168. ;
  169. ;     path    the path of the source directory from which InstallWare should 
  170. ;             copy the files to the disk.  The path can be relative to the
  171. ;             source directory (see examples below).
  172. ;
  173. ;     title   is a descriptive name for the disk. The title should match 
  174. ;             the disk's printed or written label exactly.
  175. ;
  176. ; The following statements would define two distribution disks.
  177. ;  1 =.,        "Demo Application Disk 1"
  178. ;  2 =.\files,  "Demo Application Disk 2"
  179. ;
  180. ; The first statement tells InstallWare to refer to Disk 1 as "Demo Application 
  181. ; Disk 1". Because the period (.) denotes the current directory, the files 
  182. ; on that disk will be copied from the root directory of the
  183. ; distribution disk. 
  184. ;
  185. ; The second statement tells InstallWare to refer to Disk 2 as "Demo 
  186. ; Application Disk 2"; the files that Disk 2 contains will be copied 
  187. ; from the \FILES directory of the distribution disk.
  188. ;
  189. ; You can include as many disk-definition statements as necessary. Every 
  190. ; distribution disk should have a corresponding disk-definition statement;
  191. ; otherwise, InstallWare cannot tell the user to insert the appropriate disk.
  192. ;
  193. ; For the purposes of this file we will use this disk definition line:
  194.  
  195. [disks]
  196.     1 =., "INSTALL"
  197.  
  198.  
  199.     
  200. ; -------------------------------------------------------------
  201. ; *************************************************************
  202. ; -------------------------------------------------------------
  203. ; NEEDED.SPACE
  204. ; -------------------------------------------------------------
  205. ; *************************************************************
  206. ; -------------------------------------------------------------
  207. ; This section tells INSTALL how much space is needed on the
  208. ; target disk to do a successful installation.  The user will
  209. ; get an error message if they try to install to a disk that
  210. ; has less space.
  211. ; -------------------------------------------------------------
  212.  
  213. [needed.space]
  214.     minspace = 12000
  215.  
  216.     
  217.  
  218. ; -------------------------------------------------------------
  219. ; *************************************************************
  220. ; -------------------------------------------------------------
  221. ; DEST.DIRECTORIES
  222. ; -------------------------------------------------------------
  223. ; *************************************************************
  224. ; -------------------------------------------------------------
  225. ; The [dest.directories] section contains section-definition statements.
  226. ; Each statement defines a section that lists application files to be
  227. ; copied as part of installation. The sections are organized by file 
  228. ; destination; you should define a separate section for each destination 
  229. ; directory. 
  230. ;
  231. ; Each section definition has the following form:
  232. ;
  233. ;     #section_name, 0:dest_pathname
  234. ;
  235. ; where
  236. ;
  237. ;     #section_name   defines the name of the .INF section that lists the
  238. ;                     files to be copied.
  239. ;     0                  is the disk ID that represents the installation directory.
  240. ;                     (0 is a reserved disk ID, and always represents the
  241. ;                     installation directory -- the directory the user specified
  242. ;                     when asked where to install the application.)
  243. ;     dest_pathname   is the pathname of the destination directory, relative 
  244. ;                     to the installation directory. For example, "0:FILES"
  245. ;                     represents the FILES subdirectory of the installation 
  246. ;                     directory.
  247. ;
  248. ; -------------------------------------------------------------
  249. ; In the example below, the first two entries define application
  250. ; specific directories.  The #app.main directory will be the
  251. ; base directory defined by the user (or the default as
  252. ; described above).  The #app.sub directory will cause a
  253. ; directory called sub to be created off of the base directory.
  254. ;
  255. ; The third and fourth entries refer to the two Windows
  256. ; specific directories: \WINDOWS and \WINDOWS\SYSTEM.
  257. ; INSTALL will find these directories and copy the specified
  258. ; files into them.
  259. ; -------------------------------------------------------------
  260.  
  261. [dest.directories]
  262.     #app.main,    0:
  263.     #app.sub,     0:sub
  264.     #app.SETUPSYSDIR,    0:SETUPSYSDIR
  265.     #app.SETUPWINDIR,    0:SETUPWINDIR
  266.  
  267.  
  268.  
  269. ; -------------------------------------------------------------
  270. ; *************************************************************
  271. ; -------------------------------------------------------------
  272. ; USER-DEFINED SECTION
  273. ; -------------------------------------------------------------
  274. ; *************************************************************
  275. ; -------------------------------------------------------------
  276. ; This section is a user-defined section that lists files to be copied to a
  277. ; particular destination directory. The [dest.directories] section defines.
  278. ; the name of this section and the destination directory of the files.
  279. ;
  280. ; In each section like this one, you should list all files that you want copied
  281. ; to the same destination. (For example, all the files in this section, 
  282. ; [app.user], will be copied to the installation directory.)
  283. ;
  284. ; InstallWare copies the files listed in this section in the order in which they
  285. ; are listed. 
  286. ;
  287. ; The syntax of each file listing is
  288. ;
  289. ;     N:FILENAME, "Description"
  290. ;
  291. ; where
  292. ;
  293. ;     N:           is the disk ID of the disk that contains the file. (Disk 
  294. ;                  IDs are defined in the [disks] section.) If the specified 
  295. ;                  disk is not in the disk drive, InstallWare prompts the
  296. ;                  user to insert it.
  297. ;       
  298. ;     FILENAME     is the name of the file, including any filename extension.
  299. ;
  300. ;     Description  is descriptive text that InstallWare displays as it is 
  301. ;                  copying the file or group of files.  If you leave the 
  302. ;                  description blank, InstallWare will continue displaying 
  303. ;                  the descriptive text from the previous file. This lets 
  304. ;                  you use a general name for a group of files.
  305. ;
  306. ;
  307. ; -------------------------------------------------------------
  308. ; This is the file list for the base directory.
  309. ; -------------------------------------------------------------
  310.  
  311. [app.main]
  312.     1:APPSETUP.INF,    "Application Configuration File"
  313.     1:INSTWAR.HLP,    "Application Help File"
  314.     1:INSTALL.ICO,    "Application Icon"
  315.  
  316. ; -------------------------------------------------------------
  317. ; This is the file list for the \WINDOWS\SYSTEM directory.
  318. ; -------------------------------------------------------------
  319.  
  320. [app.SETUPSYSDIR]
  321.     1:README,        "##WReadme File"    ; This shows the literal ## non-macro
  322.  
  323.  
  324. ; -------------------------------------------------------------
  325. ; This is the file list for the \WINDOWS\SYSTEM directory.
  326. ; -------------------------------------------------------------
  327.  
  328. [app.SETUPWINDIR]
  329.  
  330.  
  331. ; -------------------------------------------------------------
  332. ; This is the file list for the sub directory located off of
  333. ; the base directory.
  334. ; -------------------------------------------------------------
  335. [app.sub]
  336.     1:README,        "README"
  337.     1:INSTALL.EXE,    "INSTALL.EXE"
  338.     1:IW.EXE,        "IW.EXE"
  339.     1:SFX.EXE,        "Test Executable"
  340.  
  341.  
  342. ; -------------------------------------------------------------
  343. ; *************************************************************
  344. ; -------------------------------------------------------------
  345. ; PROGMAN.GROUPS
  346. ; -------------------------------------------------------------
  347. ; *************************************************************
  348. ; -------------------------------------------------------------
  349. ; The [progman.groups] section (optional) tells InstallWare to create Program 
  350. ; Manager groups for your application. (InstallWare then uses DDE to 
  351. ; communicate with Program Manager.)
  352. ;
  353. ; The section lists the names of the groups you want to create. You then 
  354. ; define additional sections in this file; those sections list the program 
  355. ; items you want in each group.
  356. ;
  357. ; The syntax for each group name is:
  358. ;
  359. ;     groupname, [groupfile.grp]
  360. ;
  361. ; where
  362. ;
  363. ;     groupname      is the title you want Program Manager to display
  364. ;                    under the icon that represents the group. (The 
  365. ;                    groupname will also be the name of the section
  366. ;                    that defines the contents of the group.)
  367. ;
  368. ;     groupfile.grp  is the filename of the file in which Program Manager
  369. ;                    will save information about the group. (You must include
  370. ;                    the .GRP filename extension.) This parameter is optional;
  371. ;                    if you omit it, InstallWare uses a default name for the 
  372. ;                    group file.
  373. ;
  374. ; The following group-definition statement tells InstallWare to create a 
  375. ; group named "Bob Dolan Shareware", and store its information in a file
  376. ; named BOBDOLAN.GRP.
  377.  
  378. [progman.groups]
  379.     "Bob Dolan Shareware", BOBDOLAN.GRP
  380.  
  381.  
  382.     
  383. ; -------------------------------------------------------------
  384. ; *************************************************************
  385. ; -------------------------------------------------------------
  386. ; USER-DEFINED PROGMAN.GROUPS
  387. ; -------------------------------------------------------------
  388. ; *************************************************************
  389. ; -------------------------------------------------------------
  390. ; This section describes the Program Item Icon to add to the
  391. ; Program Group defined in the section heading.
  392. ;
  393. ; In each section like this one, you should list all items that you want 
  394. ; InstallWare to add to the group.
  395. ;
  396. ; The syntax for item-definition statements is: 
  397. ;
  398. ;     "Description",    APPFILE.EXE, [ICONFILE.EXE[, N]]
  399. ;
  400. ;where
  401. ;
  402. ;     Description   is the text that will appear below the program icon 
  403. ;                   when displayed in the Program Manager group. 
  404. ;
  405. ;     APPFILE.EXE   is the command line that starts the application.
  406. ;     
  407. ;     ICONFILE.EXE  is the application file that contains the icon you
  408. ;                   want to represent the application. Typically, this is 
  409. ;                   the executable application file, but it could be a 
  410. ;                   different file. (You can also specify a .ICO file, created
  411. ;                   using the SDKPaint tool.) This parameter is optional; if
  412. ;                   you omit it, InstallWare will use the first icon it finds in
  413. ;                   APPFILE.EXE. 
  414. ;
  415. ;     N             is the offset of the icon you want to use within the file
  416. ;                   ICONFILE.EXE.  This parameter is optional; if you omit it, 
  417. ;                   InstallWare uses the first icon it finds in ICONFILE.EXE.
  418. ;                   You must include this parameter if the file you specify
  419. ;                   contains more than one icon, and you want to use an icon
  420. ;                   other than the first icon. 
  421. ;
  422. ;                   To use the Nth icon, specify the number N-1. For example,
  423. ;                   to use the third icon, specify 2.
  424. ;
  425. ; For example, the following item-definition statement tells InstallWare to add 
  426. ; an item titled "Install" to Program Manager. The application command line is
  427. ; a file named INSTALL.EXE which is located in the SUB subdirectory off of the
  428. ; installation directory.
  429.  
  430.  
  431. ["Bob Dolan Shareware"]
  432.     "Install", SUB\IW.EXE
  433.     "Install & Help", INSTWAR.HLP, INSTALL.ICO
  434.  
  435.  
  436. ; -------------------------------------------------------------
  437. ; -------------------------------------------------------------
  438. ; *************************************************************
  439. ; -------------------------------------------------------------
  440. ; INI FILE MODIFICATION
  441. ; -------------------------------------------------------------
  442. ; *************************************************************
  443. ; -------------------------------------------------------------
  444. ; This section defines any INI file modifications that will be performed.
  445. ; The Installation Directory can be referenced by using the #D macro as is
  446. ; shown in the examples below.  If you specify an INI file that does not exist,
  447. ; it will be created.  If you do not specify a path, the WINDOWS directory is
  448. ; used.  Be sure to use quotes around text that contains spaces (see example).
  449. ; The format is as follows:
  450. ;    INIFILENAME, INI SectionName, Entry Label, Actual Text to be added
  451.     
  452. [INIFiles]
  453.     WIN.INI, InstallWare, TestEntry1, TestString1
  454.     WIN.INI, InstallWare, TestEntry2, #D
  455.     SYSTEM.INI, InstallWare, TestEntry1, TestString1
  456.     CONTROL.INI, InstallWare, TestEntry2, #D\SUBDIR\FILENAME.EXT
  457.     BOB.INI,     InstallWare, TestEntry1, "Bob wrote this!"
  458.     
  459. ; -------------------------------------------------------------
  460. ; *************************************************************
  461. ; -------------------------------------------------------------
  462. ; NON-OPTIONAL EXECUTABLE FILE LIST
  463. ; -------------------------------------------------------------
  464. ; *************************************************************
  465. ; -------------------------------------------------------------
  466. ; This section lists the files that will be executed to complete the installation.
  467. ; The user is not prompted as to whether they would like these files to be run.
  468. ; Common uses are running self-extracting archives or tutorials.  The filename
  469. ; that is specified is assumed to be relative to the install path.  The DELETE
  470. ; FLAG parameter indicates whether the file is deleted after it has completed
  471. ; executing.  All files run in succession, and processing of InstallWare is 
  472. ; suspended until each file terminates.  Use the #D or #W macros to reference
  473. ; the directory that was used for the installation.  A directory change is made
  474. ; just before the Command is run.  The directory changed to will be the same as
  475. ; the executable.  If no directory is specified, the installation directory is
  476. ; used.  In the following example using NOTEPAD, the application is in the PATH
  477. ; and the directory is the installation directory so the command line parameter
  478. ; is relative to the installation directory.
  479. ; The format is as follows:           
  480.  
  481. ;    EXECUTABLE FILENAME, DELETE FLAG (YES/NO)
  482. [ExtCmds]
  483.     #D\SUB\SFX.EXE, NO
  484. ;    "NOTEPAD.EXE sub\readme.", NO
  485.     "NOTEPAD.EXE #V\AUTOEXEC.BAT", NO
  486.  
  487. ; -------------------------------------------------------------
  488. ; *************************************************************
  489. ; -------------------------------------------------------------
  490. ; *************************************************************
  491. ; -------------------------------------------------------------
  492. ; OPTIONS
  493. ; -------------------------------------------------------------
  494. ; *************************************************************
  495. ; -------------------------------------------------------------
  496. ; This section allows for the customization of several InstallWare functions.
  497. ; The format is as follows:           
  498. ;    OPTION, FLAG (YES/NO)                                        
  499.  
  500. [Options]
  501.     DirChg, yes            ; If this option is set to NO, the Install directory
  502.                         ; editbox will not be displayed
  503.  
  504.     OverWrite, NO        ; This option determines what the default setting of
  505.                         ; of the OverWrite radio buttons will be.
  506.  
  507.     Restart, YES        ; If this option is set to YES, the user will be
  508.                         ; prompted to restart Windows.  If set to NO, it will
  509.                         ; just happen (the developer should warn about this
  510.                         ; at the beginning of the install).  If the field is not
  511.                         ; present, then no restart will occur.
  512.  
  513. ;    Reboot, YES             ; If this option is set to YES, the user will be
  514.                         ; prompted to reboot the system.  If set to NO, it will
  515.                         ; just happen (the developer should warn about this
  516.                         ; at the beginning of the install).  If the field is not
  517.                         ; present, then no reboot will occur.
  518.  
  519.     RestartString, "The system must be rebooted/restarted for all changes to take effect.  Would you like to do this now?"
  520.                         ; This field MUST be present if you use either of the
  521.                         ; reboot/restart fields.                        
  522.  
  523.     DeleteIW, NO        ; Due to SHARE problems on some systems, you might want 
  524.                         ; to leave IW.EXE on the target system.  To do so, set
  525.                         ; this option to NO (i.e. don't delete it)  Note that
  526.                         ; this is not an issue with single disk installations.
  527.     
  528.