home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / unimove.txt < prev    next >
Text File  |  1998-03-25  |  4KB  |  104 lines

  1.  
  2.                How to Move UniMaint to a New Location
  3.  
  4. Since you cannot have UniMaint Uninstall or Reinstall itself, I have been 
  5. asked to describe how to move UniMaint manually and that is the purpose of 
  6. this document.
  7.  
  8. Before you do anything you should have both a Desktop Backup of your Desktop 
  9. and a Portable Backup of your Desktop. The Desktop Backup is for safety and 
  10. the Portable Backup will be needed to modify the WPS Objects.
  11.  
  12. There are three problems:
  13.  
  14. 1. The files and directories themselves.
  15.  
  16. 2. The UniMaint and UniWatch references in the OS2.INI file or the private 
  17. UniMaint INI file.
  18.  
  19. 3. The WPS Objects.
  20.  
  21.                    Moving the Files to a new Directory
  22.  
  23. The only problem with the files themselves is that the AcsAgent.DLL file is 
  24. in use if the UniMaint WPS Object is registered. Therefore, the Object must 
  25. be deregistered before the files can be moved or copied.
  26.  
  27. Here is the procedure:
  28.  
  29. 1. Without UniMaint or UniWatch running, run AcsTest with -Z on the parameter 
  30. line. The run should end with a message box telling you that the WPS Class is 
  31. deregistered.
  32.  
  33. 2. Before you restart UniMaint, copy the entire UniMaint directory to the new 
  34. location.
  35.  
  36.                The UniMaint and UniWatch entries in the INI Files
  37.  
  38. Since UniMaint will be used to handle this modification and it is not 
  39. possible to modify the INI file that is in use, a new INI file should be 
  40. used.
  41.  
  42. Here is the procedure:
  43.  
  44. If you do not have a SET UNIMAINT= entry in the config.sys file then the 
  45. UniMaint settings are in the OS2.INI file so you would do the following:
  46.  
  47. 1. Add a SET UNIMAINT= entry to your current config.sys pointing to an INI 
  48. file, lets say UniMaint.INI in the new UniMaint directory. This file will not 
  49. exist at this point and do not create it. Also do not reboot until you have 
  50. finished the entire set of UniMaint modifications.
  51.  
  52. 2. Open the OS2.INI file, select the Uni Maintenance application, then use 
  53. the Action/Copy/Selected Application ot copy it to the INI file in 1. above. 
  54. The target file need not exist, it will get created.
  55.  
  56. 3. Do the same for the UniWatch application if you are using UniWatch.
  57.  
  58. 4. Use the Recover/Translate INI file function to open the newly created INI 
  59. file and modify all instances of the old directory to the new directory.
  60.  
  61. If you have a SET UNIMAINT= entry in your config.sys then you have already 
  62. copied the UniMaint INI file from the old location ot the new location since 
  63. I am assuming you have the UniMaint INI file in the UniMaint directory. 
  64. Therefore, you only need to do the following:
  65.  
  66. 1. Modify the SET UNIMAINT= to refer to the new location.
  67.  
  68. 2. Use the Recover/Translate INI file function to open the copy in the new 
  69. directory and modify all instances of the old directory to the new directory.
  70.  
  71.                            The WPS Objects
  72.  
  73. Just to be sure that the WPS Agent Class is not registered before you reboot 
  74. you should run AcsTest with -Z on the parameter line again.
  75.  
  76. You should now reboot. Start UniMaint by double clicking on the EXE in the 
  77. new location. Do you use the WPS program icons until you get them fixed 
  78. below. You are now using the UniMaint files in the new location and the 
  79. UniMaint INI file that is in the modified SET UNIMAINT= entry in the 
  80. config.sys file.
  81.  
  82. You can now restore the UniMaint Folder and it will automatically modify all 
  83. of the EXE and startup directory information to point to the new location. 
  84. However, before you do this it is important that the Portable Restore no be 
  85. able to find the old files.
  86.  
  87. Here is the procedure:
  88.  
  89. 1. Get rid of the old location by zipping the entire contents of the old 
  90. UniMaint directory to a singe zip file and then deleting the directory.
  91.  
  92. 2. Bring up the Portable Restore and use the generation you created above 
  93. which should have been done just before you started this procedure.
  94.  
  95. 3. Make sure the Existing Objects Menu item is set to Replace Existing 
  96. Objects.
  97.  
  98. 4. Select the UniMaint Folder and Restore it. This will fix all of the WPS 
  99. Program entries and point them all to the new location.
  100.  
  101. 5. Exit UniMaint and reboot.
  102.  
  103. You should now be able to fully use UniMaint in the new location.
  104.