home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / inimaint.zip / INISHARE.TXT < prev    next >
Text File  |  1994-10-12  |  21KB  |  438 lines

  1.  
  2.                          IniMaint
  3.                  Copyright 1992, Carry Associates
  4.  
  5. IniMaint is an OS/2 PM program to display and manage *.INI files and
  6. is distributed by Carry Associates, 990 Ironwood Court, Marco Island,
  7. FL, 33937. Telephone number is 813-642-9126. The application was
  8. written by and is supported by Larry J. Martin. You can obtain
  9. Technical support by calling the number above, by leaving an Email on
  10. Compuserve for 72662,3616 or for the same ID in Section 1 of the
  11. OS2AVEND Forum.
  12.  
  13. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  14.  
  15. IniMaint gives you the ability to make virtually any change you want
  16. to any of the INI files in your OS/2 environment. Making changes to
  17. these files must be done with care because you can do serious and
  18. unpredictable damage to your environment. It is STRONGLY SUGGESTED
  19. that you insure that you have a usable backup of any INI file that
  20. you modify in any way.
  21.  
  22. WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
  23.  
  24.                      SHAREWARE VERSION
  25.  
  26. The version of IniMaint that accompanies this documentation is a
  27. Shareware version of the program that must be registered with Carry
  28. Associates, if you intend to use it except for a brief test. This is
  29. not a free program and has been Copyrighted by Carry Associates. It
  30. is a violation of the Copyright Laws to use the program without
  31. registering and paying for it. The purpose of the unregistered
  32. version is ONLY to give users an opportunity to try the program so
  33. that they can determine whether they feel the program is worth the
  34. $29.95 cost.
  35.  
  36. Unregistered copies of IniMaint will display an initial dialog that
  37. will note the unregistered condition. This dialog will stay on the
  38. screen for 15 seconds, unless dismissed by clicking on the OK button.
  39. The dialog cannot be dismissed until it has been visible for 3
  40. seconds. In addition, the Title Bar will contain a note that this is
  41. an unregistered version of IniMaint.
  42.  
  43. To obtain your registration identifier you can charge if to your Visa
  44. or Mastercard by calling Carry Associates on the phone or leaving an
  45. Email on Compuserve or by sending a check for $29.95 per license for
  46. single licenses or $299 for an unlimited copies license made payable
  47. to:
  48.  
  49. Carry Associates
  50. 990 Ironwood Court
  51. Marco Island, FL 33937
  52.  
  53. IniMaint was written by and is support by:
  54.  
  55. Larry J. Martin
  56. Tel: 813-642-9126
  57. Fax: 813-642-1007
  58. Compuserve: 72662,3616
  59.  
  60. Once you have your registration identifier, you can register your
  61. copy of IniMaint by selecting the Register Your Copy entry
  62. on the Actions Menu. Once you are registered, this entry will no
  63. longer appear on the menu.
  64.  
  65. If you want a preregistered copy of IniMaint, add $7.00 for postage
  66. and handling. We will return a diskette with a preregistered copy of
  67. IniMaint, an Install CMD file and an IniMaint registration ID. The
  68. purpose of the ID is to allow preregistered users to download new
  69. versions, register and use them until they can obtain a preregistered
  70. update. The preregistered version will run as registered without any
  71. need to register it on each system.
  72.  
  73. The cost of a preregistered update is $10.00 per license for single
  74. licenses or $100.00 for an unlimited copies license, plus $7.00
  75. handling and postage.
  76.  
  77.  
  78.                       CURRENT VERSION
  79.  
  80. The enclosed is Version 3.2a of IniMaint and has the following
  81. known problems and/or incomplete features:
  82.  
  83. 1. The Install must be done manually.
  84.  
  85. 2. The Initial Dialog cannot be dismissed using the Enter Key, the
  86. Mouse must be used.
  87.  
  88. 3. If the Groups Dialog is displayed, a new Group is selected and
  89. then OK is selected without actually making any changes to any of the
  90. Groups or the Applications in a Group, then the Last Group Displayed
  91. is not updated and a subsequent use of the Groups Dialog will revert
  92. back to the previous Last Group.
  93.  
  94. 4. There is no Help available for the standard OS/2 New File Dialog.
  95.  
  96.  
  97.                  REPORTED COMMENTS OR PROBLEMS
  98.  
  99. The following items are problems that have been reported, but cannot
  100. be reproduced or comments that I have received from one or more
  101. users. Any assistance on the problems or additions to the comments is
  102. more than welcome.
  103.  
  104. 1. It was pointed out that although the Cursor in the Value MLE can
  105. be an Insert Cursor, there is no way to Insert information. My
  106. response is that the only way to change the length of a Value is by
  107. using the Replace Value Dialog because changing the expected length
  108. of an INI Key Value can cause unusual and unexpected errors. I
  109. further responded that the only way to change the cursor is to
  110. change it System wide, therefore, changing it only when it is in the
  111. MLE is a non trivial problem and I have not attempted to do it even
  112. though it leaves the apparent conflict between the appearance of the
  113. Cursor and the actual effect when a key is depressed.
  114.  
  115.                         INSTALLATION
  116.  
  117. To install the beta version you must:
  118.  
  119. 1. Copy the IniMaint.EXE and INICOPY.EXE files to a subdirectory that
  120. is included in the PATH environment variable in your CONFIG.SYS.
  121.  
  122. 2. Copy the INIMTAPI.DLL file to a subdirectory that
  123. is included in the LIBPATH environment variable in your CONFIG.SYS.
  124.  
  125. 3. Copy the IniMaint.HLP file to a subdirectory that
  126. is included in the HELP environment variable in your CONFIG.SYS.
  127.  
  128. 4. You may optionally add IniMaint to one of the Groups on your
  129. Desktop.
  130.  
  131. 5. You may optionally add the entry: SET INIMAINT= to your CONFIG.SYS
  132. file specifying the path and filename of an INI file that you want
  133. IniMaint to use to store it's operational information. If this entry
  134. is not found in the Environment, IniMaint will store it's operational
  135. information in the OS2.INI file.
  136.  
  137.                      GETTING STARTED
  138.  
  139. If you did not obtain your copy of IniMaint to address a specific
  140. problem or you are not familiar with INI files and the kinds of
  141. things that IniMaint allows you to do with them, then it is strongly
  142. suggested that you review the Getting Started entry in the Help file
  143. along with the other General Help subjects.
  144.  
  145.                         OPERATION
  146.  
  147. To run IniMaint simply start it by clicking on the IniMaint.EXE file
  148. or start it from the Group to which it has been added. When IniMaint
  149. first comes up, it will default to editing the INI file that is
  150. identified by the system as the user INI file. This is normally
  151. C:\OS2\OS2.INI. The name of the current file is always displayed in
  152. the TITLE bar of the main window.
  153.  
  154. IniMaint can also be started with an initial INI file specified on
  155. the command line. This allows IniMaint to be started with a new file
  156. by using the command line, but also allows for it to be started by
  157. dropping a file on the ICON on the desktop or double clicking on an
  158. INI file, once the association is set up.
  159.  
  160. IniMaint will locate the window in a default location, but you can
  161. move and or size the window as you choose. When IniMaint is shut
  162. down, it will remember the file that it was currently working with as
  163. well as the size and location of the window and will restore all of
  164. these the next time it is run.
  165.  
  166. There are a number of IniMaint functions which will take some time
  167. to execute. For example, the maximum length Key Value that IniMaint
  168. will load into the Key Value Window is 60,000 bytes. Since each line
  169. only displays 8 bytes, this comes to 7,500 lines and it takes well
  170. over a minute. There are other similar types of functions, although
  171. the example is the longest. During these long operations, it is not
  172. possible to do any other IniMaint operations. However, the long
  173. functions are done in separate threads and the Message Queue is not
  174. blocked, therefore it is possible to go do some other, non-IniMaint,
  175. function during this time. In addition, since there are a number of
  176. reasons why a user might not want to wait until the lengthy function
  177. is completed, for example, it might have been selected in error,
  178. any IniMaint operation that takes a long time and displays the Wait
  179. Pointer can be terminated by hitting the ESC key.
  180.  
  181. IniMaint will normally store the current operating information such
  182. as the size and position of the windows, that INI file that is
  183. currently being edited and a large number of other items, in the User
  184. INI file, OS2.INI. This is sometimes not a convenient location, since
  185. this file gets completely replaced when a new version is installed
  186. and a problem with the OS2.INI file would mean that IniMaint would
  187. not run. IniMaint will use a different INI file and will create the
  188. file, if necessary, if an Environment Variable IniMaint= is placed in
  189. the CONFIG.SYS file or in a CMD file that executes IniMaint. For
  190. example, if the user wanted IniMaint to use the file IniMaint.INI in
  191. the C:\OS2\APPS subdirectory, they would code:
  192.     SET IniMaint=C:\OS2\APPS\IniMaint.INI
  193.  
  194.                    MAIN WINDOW DESCRIPTION
  195.  
  196. The Main Window contains three standard child windows. Two of these
  197. windows are Listboxes and the third is a MLE.
  198.  
  199. The upper left Listbox will always contain the list of Applications
  200. for the current INI file.
  201.  
  202. The upper right Listbox will contain the list of Key Names for the
  203. Application that is currently selected in the Application Listbox.
  204.  
  205. The MLE, at the bottom, will contain the hex and ASCII display of the
  206. contents of the Key Name that is selected in the Key Listbox.
  207.  
  208. The Cursor will normally be forced to the MLE and the value of the
  209. data can be modified by changing either the hex or the ASCII fields
  210. of the MLE. The cursor cannot be moved to any portion of the MLE that
  211. does not contain data that can be modified and any modification to
  212. one type of data, hex or ASCII, will immediately be reflected in the
  213. other data.
  214.  
  215. The actual data in the INI file is not changed until the user selects
  216. the Update Item on the Action Menu or selects a different Key or
  217. Application in the same INI file. At this time, you will be asked to
  218. confirm that you want the INI file modified, unless you have turned
  219. the warning option off, see below.
  220.  
  221.                  IniMaint POPUP MENUS
  222.  
  223. In addition to the standard menu entries described below, each window
  224. has a Popup Menu that will appear when the standard action is taken,
  225. clicking once with the Right Mouse Button is the default. Each of the
  226. three primary windows has its own Menu and the Menu will contain those
  227. items which are general to the entire Application and those that
  228. apply to the entries in that particular window. Most of the items on
  229. these menus are discussed below, however, there are three items on
  230. each menu that are unique to the Popup Menus and they are:
  231.  
  232. 1. Explain will attempt to give the user an explanation of the
  233. meaning of the currently selected Application and Key. Not every
  234. Application will have an explanation, but an attempt has been made to
  235. explain all of the standard OS/2 entries as completely as possible.
  236. The Explain feature will only operate if the version of IniMaint is a
  237. registered version.
  238.  
  239. 2. Write Window to a File will cause the entries in the window in
  240. question to be written to a file, so they could be reviewed without
  241. IniMaint running.
  242.  
  243. 3. Print Window will cause the entries in the Window to be printed on
  244. the default printer.
  245.  
  246.                  IniMaint MENU OPTIONS
  247.  
  248. The various IniMaint Menu options are:
  249.  
  250. 1. File gives the user the ability to change INI files, refresh the
  251. current INI file, Dump the contents of the IniMaint variables,
  252. compare two INI files and Exit from IniMaint.
  253.  
  254. The Compare option allows the user to Compare two INI files on any
  255. one of three different levels:
  256.  
  257.    A. List Applications that are in one INI file, but not the other.
  258.  
  259.    B. A. above plus any Key Names that are in one file, but not the
  260.       other.
  261.  
  262.    C. A. and B. above plus any Key Values that are in both files, but
  263.       are not equal.
  264. The differences are displayed in a Listbox within a Dialog that
  265. allows the user to print or write a listing of the Listbox contents
  266. and/or create an INI file with some or all of the Applications or
  267. Keys that have differences.
  268.  
  269. 2. Options will display a Dialog that gives you the ability to:
  270.  
  271.    A. Turn off the display of the opening IniMaint Dialog.
  272.  
  273.    B. Turn off the dialogs that will ask for confirmation before
  274.       Deleting or Modifying the contents of the Current INI file.
  275.  
  276. 3. Groups will display a Dialog that allows you to define and manage
  277. the various Groups for this INI file. A bit of explanation is needed
  278. here. IniMaint gives the user the ability to arrange the applications
  279. in any INI file into Groups. These Groups can then be used in a
  280. number of different IniMaint areas and greatly ease the problems of
  281. handling an INI file with a large number of applications. For
  282. example, the OS2.INI file might be divided into two Groups, System
  283. and Private. The System Group would be the applications put in the
  284. file by OS/2 Install and the Private Group would be the remaining
  285. applications. More or fewer Groups could be defined. How the user can
  286. use Groups within the IniMaint structure will become more clear
  287. below. The Groups Dialog gives the user the ability to define new
  288. Groups, to add and delete Applications and Delete Groups.
  289.  
  290. The procedure for establishing a new Group is to select Groups in the
  291. Group Dialog, select New Group, and supply a name. Once this is done,
  292. the Title of the Dialog will show the current Group and the new Group
  293. will be added to the Group Menu. You add Applications to the Group by
  294. selecting them in the Listbox.
  295.  
  296. The Listbox will display a specific Group or, if you want to know if
  297. there are any Applications that are not in a Group, will display all
  298. Groups. A single Application can be a member of up to 5 different
  299. Groups at any one time, so it is possible to define overlapping
  300. Groups.
  301.  
  302. 4. Size will calculate the minimum amount of Disk Space that would be
  303. required for an INI file that contained a selected set of
  304. Applications in the current INI file. When this item is selected, the
  305. user will be asked what he wants to Size. There will always be
  306. several choices, the various standard INI files, the current file and
  307. the currently selected Application. If there are any Groups defined,
  308. then they will be included among the selections. If there are more
  309. than one Group defined, then there will be an All Groups selection.
  310.  
  311. 5. Actions gives the user the ability to do a number of things:
  312.  
  313.    A. Update Current Key will write any changes that have been made
  314.       to the data in the MLE into the current INI file.
  315.  
  316.    B. Delete Application and Delete Key will do the obvious.
  317.  
  318.    C. Add Application, Add Key and Replace Key Value are all the same
  319.       function except entered at different points. Add Application
  320.       will ask for the name of a new Application to add to the
  321.       current INI file and then fall through to the Add Key, since
  322.       the Applications must have at least one Key. The Add Key will
  323.       ask for the name of the new Key and then fall through to the
  324.       Replace Key Value, since any Key Name must have an associated
  325.       Value. This will cause the Key Dialog box to be displayed. The 
  326.       Application and Key Names will be shown at the top of the
  327.       Dialog, followed by the current length of the data, the ASCII
  328.       representation of the data and the hex representation of the
  329.       data. This is the only option that will change the length of
  330.       a Key Value. Care must be taken when doing this, as many
  331.       applications depend on knowing the length of the INI items. As
  332.       the ASCII or hex values are changed, the changes will appear in
  333.       the other window and the length will be updated. The only
  334.       exception is when only a single hex digit is entered. The ASCII
  335.       window is not updated until two hex characters are entered.
  336.  
  337.    D. Rename and Duplicate Key give the user the ability to change
  338.       the name of an existing Key or to make a duplicate copy of the
  339.       Key using a different Key Name.
  340.  
  341.    E. Copy and Move will ask the user to select a Target File for the
  342.       Copy/Move and will then give the user the same choices as Size
  343.       above. The selected Applications will then be moved or copied
  344.       to the Target INI file, which will be created, if it does not
  345.       exist. This function is done Key by Key, so it will sometimes
  346.       take some time. However, the PM message queue is not blocked
  347.       while the move/copy is being done. The actual move or copy is
  348.       done by a separate program INICOPY, that can also be run as a
  349.       batch program, see below.
  350.  
  351.    F. Backup allows for an easy Backup of the System INI File, User 
  352.       INI File or both the System and User INI Files. Once the user
  353.       has selected names for the normal backups for the two files,
  354.       these files will be presented as the default for additional
  355.       backups. The user can set an Option that will bypass asking
  356.       the user if he wants to use the defaults. This selection will
  357.       always delete the target files before doing the backup, which
  358.       is one of the ways it varies from the Copy selection.
  359.  
  360. 6. Recover contains a list of capabilities designed to give the user
  361. the ability to recover from corrupted INI files. These capabilities
  362. are:
  363.  
  364.    A. Change User and/or System INI Files give the user the ability
  365.       to change the INI files that OS/2 is currently using to new
  366.       files. The primary use of this capability is to allow the user
  367.       to make changes to the User or System INI files that he knows
  368.       need to be made, but cannot make to the current User or System
  369.       Files because of protection built into OS/2. Great care must be
  370.       exercised when doing this, but it will sometimes represent the
  371.       only way that problem entries can be removed from an INI File.
  372.  
  373.    B. Repair inconsistencies between the INI file and the Desktop.
  374.  
  375.    C. Condense the Current INI file, the System INI File, the User
  376.       INI File or both the System and User INI Files. The Condense
  377.       is necessary because of the way updating is done to the INI
  378.       files. The updating will leave empty areas in the INI files and
  379.       these areas tend to get fragmented, thus causing the overall
  380.       size of the INI file to grow, sometimes grow very large.
  381.       Condensing the System or User INI files is not a simple task,
  382.       since they cannot be copied or erased while they are being used
  383.       by OS/2. This item switches the files to the copies long enough
  384.       to erase the old files and copy a condensed backup to the
  385.       original names. The only problem this causes is that it will
  386.       reset the desktop to the boot desktop. This function is removed
  387.       for Version 2.1 of OS/2 and beyond, since the handling of the
  388.       INI files was changed to automatically remove the empty space.
  389.  
  390.    D. There are two items to Test for and Reset the condition where
  391.       the User and System INI files cannot be updated. When this
  392.       condition is found, the user will be asked if he wants to 
  393.       correct the condition and, if he answers yes, the User and
  394.       System INI files will get changed so that they will be able
  395.       to be updated. The process involves making a copy of the INI
  396.       files and switching to them, so it takes a minute or so and
  397.       involves resetting the Desktop.
  398.  
  399. 7. Find allows the user to search the Application Listbox, the Key
  400. Name Listbox, the Key Value MLE, all of the Key Names in the current
  401. INI file, all of the Key Values for the current Application or all of
  402. the Key Values in the current INI file for either an Ascii string or a
  403. Hex value.
  404.  
  405.                              INICOPY
  406.  
  407. INICOPY is the program that is used by IniMaint to do the actual
  408. COPY/MOVE operations. This option is implemented as a separate program
  409. so that the user will have the ability to make copies of INI files,
  410. including the User and System INI files, at any time during the day.
  411.  
  412. The parameters expected by INICOPY are:
  413.  
  414. Required Parameters:
  415.  
  416. -Ifilename  - The fully qualified path and filename of the Source,
  417.               Input, INI file.
  418.  
  419. -Ofilename  - The fully qualified path and filename of the Target,
  420.               Output, INI file. The Target will be created if it does
  421.               not exist.
  422.  
  423. Optional Parameters:
  424.  
  425. -Fx         - Function requested - Default is C(opy)
  426.               C = C(opy)
  427.               M = M(ove)
  428.  
  429. -E          - COPY/MOVE Entire INI file - Default
  430.                                             
  431. -A          - COPY/MOVE All Groups
  432.                                              
  433. -Ggroup     - COPY/MOVE Specific Group
  434.                                              
  435. -Sapp       - COPY/MOVE Specific Application
  436.  
  437. -T          - Use Fast Copy. This is only valid if -E is also specified
  438.