home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Product / Product.zip / mesa220.zip / uinstall.lst < prev    next >
File List  |  1998-09-24  |  4KB  |  175 lines

  1. // Mesa 2.2 uninstallation file
  2.  
  3. @option         A:      H: "exists:%1\mesa2bkg.bmp"
  4. @option         !H:     I: "ask:Mesa 2 does not appear to be installed in %1.  Try to Uninstall anyway?"
  5. @option         H:      I: "ask:Are you sure you want to remove Mesa 2 from %1?"
  6. @errorexit      !I:     "Uninstall not attempted."
  7.  
  8. @option         A:      K: "busy:%1\mesa2.exe"
  9. @option         K:      L: "ask:Mesa 2 appears to be running.  Try to uninstall anyway?"
  10. @errorexit      (K!L):  "Uninstall not attempted."
  11.  
  12. // turn on extended messages if necessary
  13. @poo            H:      OE
  14.  
  15. // see if the class dlls are busy
  16. @option         A:      I: "busy:%1\wppalets.dll"
  17. @option         A:      J: "busy:%1\mesaprt.dll"
  18.  
  19. // delete the installed files and backups (ignore errors)
  20. @delete         A:
  21. %1\README.TXT
  22. %1\LICENSE.TXT
  23. %1\autoload.m2
  24. %1\autoload.m2b
  25. %1\mesa2.exe
  26. %1\mesa2.HLP
  27. %1\MESA2.INI
  28. %1\mesa2bkg.bmp
  29. %1\mesa2.inf
  30. %1\mesa2doc.inf
  31. %1\mesacore.dll
  32. %1\mesafeed.dll
  33. %1\mesaprt.dll
  34. %1\mesares.dll
  35. %1\mesascpt.dll
  36. %1\mesasprd.dll
  37. %1\mesaui.dll
  38. %1\SPF2XX.DLL
  39. %1\wppalets.dll
  40. %1\wppalets.HLP
  41. %1\EXAMPLES\account.m2
  42. %1\EXAMPLES\account.m2b
  43. %1\EXAMPLES\BASICS.M2
  44. %1\EXAMPLES\BASICS.M2b
  45. %1\EXAMPLES\CURRENCY.M2
  46. %1\EXAMPLES\CURRENCY.M2b
  47. %1\EXAMPLES\DATA.M2
  48. %1\EXAMPLES\DATA.M2b
  49. %1\EXAMPLES\examples.m2
  50. %1\EXAMPLES\examples.m2b
  51. %1\EXAMPLES\fandp.txt
  52. %1\EXAMPLES\features.m2
  53. %1\EXAMPLES\features.m2b
  54. %1\EXAMPLES\feed.exe
  55. %1\EXAMPLES\feed.ico
  56. %1\EXAMPLES\FIRST_PA.M2
  57. %1\EXAMPLES\FIRST_PA.M2b
  58. %1\EXAMPLES\INVOICE.M2
  59. %1\EXAMPLES\INVOICE.M2b
  60. %1\EXAMPLES\page.exe
  61. %1\EXAMPLES\page.ico
  62. %1\EXAMPLES\portflio.m2
  63. %1\EXAMPLES\portflio.m2b
  64. %1\EXAMPLES\present.m2
  65. %1\EXAMPLES\present.m2b
  66. %1\EXAMPLES\SALES.M2
  67. %1\EXAMPLES\SALES.M2b
  68. %1\EXAMPLES\SRC
  69. %1\EXAMPLES\TARIFFS.M2
  70. %1\EXAMPLES\TARIFFS.M2b
  71. %1\EXAMPLES\SRC\Feed
  72. %1\EXAMPLES\SRC\Page
  73. %1\EXAMPLES\SRC\Feed\feed.cpp
  74. %1\EXAMPLES\SRC\Feed\feed.def
  75. %1\EXAMPLES\SRC\Feed\feed.dep
  76. %1\EXAMPLES\SRC\Feed\feed.h
  77. %1\EXAMPLES\SRC\Feed\feed.mak
  78. %1\EXAMPLES\SRC\Feed\feed.exe
  79. %1\EXAMPLES\SRC\Page\os2h.h
  80. %1\EXAMPLES\SRC\Page\page.cpp
  81. %1\EXAMPLES\SRC\Page\page.def
  82. %1\EXAMPLES\SRC\Page\page.dep
  83. %1\EXAMPLES\SRC\Page\page.mak
  84. %1\EXAMPLES\SRC\Page\page.rc
  85. %1\EXAMPLES\SRC\Page\page.exe
  86. %1\TEMPLATE\Expense.M2T
  87. %1\TEMPLATE\Invoice.M2T
  88. %1\DEFAULTS\COLHEAD.MNU
  89. %1\DEFAULTS\FORMAT.TBR
  90. %1\DEFAULTS\GENERAL.TBR
  91. %1\DEFAULTS\GRAPHICS.MNU
  92. %1\DEFAULTS\MAIN.MNU
  93. %1\DEFAULTS\RANGE.MNU
  94. %1\DEFAULTS\ROWHEAD.MNU
  95. %1\DEFAULTS\SHORTCUT.ACL
  96.  
  97. // delete the uninstaller if not busy
  98. @option         A:      M: "busy:%1\uinstall.exe"
  99. @delete         (A!M):
  100. %1\uinstall.exe
  101. %1\uinstall.lst
  102. %1\uinstall.1
  103. %1\uinstall.cmd
  104.  
  105. // delete the installation log
  106. @delete         A:
  107. %1\install.log
  108.  
  109. // uninstall the WPS dlls (only if tied to this copy)
  110. @mdel           (AI):   %1\wppalets.dll
  111. @mdel           (AJ):   %1\mesaprt.dll
  112.  
  113. // remove directories
  114. @rd             A:
  115. "%1\EXAMPLES\SRC\Feed"
  116. "%1\EXAMPLES\SRC\Page"
  117. "%1\EXAMPLES\SRC"
  118. "%1\TEMPLATE"
  119. "%1\EXAMPLES"
  120. "%1\DEFAULTS"
  121. "%1"
  122.  
  123. // remove objects (except uninstall)
  124. @var:            F:      <M2_FOLDER> 5
  125. @xwps:           F:     
  126. <M2_README>
  127. <M2_LICENSE>
  128. <M2_PROGRAM>
  129. <M2_URL>
  130. <M2_DOC>
  131.  
  132. @xwps:           (FI):
  133. <WP_PATPAL>
  134. <WP_LINEWPAL>
  135. <WP_LINEPAL>
  136. <WP_MARKPAL>
  137.  
  138. @xwps:           F:
  139. <M2_WP_CLRPAL>
  140. <M2_WP_HIRESCLRPAL>
  141. <M2_WP_FNTPAL>
  142. <M2_TEMPLATES>
  143. <M2_EXAMPLES>
  144.  
  145. @xwps:           F:
  146. %5
  147.  
  148. // close and remove the log file if we got this far
  149. // and the executeable is gone
  150. @option         ABCDE:  M: "exists:%1\mesa2.exe"
  151. @log            (A!M):  off
  152. @delete         (A!M):  "%1\uninst.log"
  153.  
  154. // remove the install info 
  155. @option         A: N:   "target:%3"
  156. @xini           (A!MN): * Mesa2 INSTALLATIONPATH
  157.  
  158. // force the "uinstalled with errors" message if we couldn't delete the executeable
  159. @errorcount     (AM):   +
  160. // otherwise reset it
  161. @errorcount     (A!M):  *
  162.  
  163. // create the cleanup routine
  164. @option         A:      N: "busy:%1\uinstall.exe"
  165. @errorcount     (A!M):  *
  166. @option         (A!MN): N:  "ask:Remove the Uninstall program after you exit from it?"
  167. @write          (A!MN): create %1\cleanup.cmd "del uinstall.* 2>NUL\ncd ..\n"
  168. @write          (A!MN): append %1\cleanup.cmd "echo del %1\cleanup.cmd cleanupx.cmd ^& rd %1 > cleanupx.cmd\n"
  169. @write          (A!MN): append %1\cleanup.cmd "cleanupx 2> NUL\n"
  170.  
  171. // one last try at the directory
  172. @rd     A:
  173. "%1"
  174.  
  175.