// Mesa prerelease uninstallation file // note: P: may be set by install script @option (A!P): H: "exists:%1\mesa2bkg.bmp" @option (!H!P): J: "ask:The Mesa 2 PreRelease does not appear to be installed in %1. Try to Uninstall anyway?" @option (H!P): J: "ask:Are you sure you want to remove the Mesa 2 PreRelease from %1?" @errorexit (!J!P): "Uninstall not attempted." @option A: J: "busy:%1\mesa2.exe" @option J: L: "ask:The Mesa 2 PreRelease appears to be running. Try to uninstall anyway?" @errorexit (AJ!L): "Uninstall not attempted." // turn on extended messages if necessary @poo H: OE // see if the class dlls are busy @option A: L: "busy:%1\wppalets.dll" @option A: J: "busy:%1\mesaprt.dll" // delete the installed files and backups (ignore errors) @delete A: %1\README.TXT %1\LICENSE.TXT %1\autoload.m2 %1\autoload.m2b %1\mesa2.exe %1\Mesa2.HLP %1\MESA2.INI %1\mesa2bkg.bmp %1\mesa2doc.inf %1\mesacore.dll %1\mesafeed.dll %1\mesaprt.dll %1\mesares.dll %1\mesascpt.dll %1\mesasprd.dll %1\mesaui.dll %1\SPF2XX.DLL %1\wppalets.dll %1\wppalets.HLP %1\EXAMPLES\account.m2 %1\EXAMPLES\account.m2b %1\EXAMPLES\BASICS.M2 %1\EXAMPLES\BASICS.M2b %1\EXAMPLES\CURRENCY.M2 %1\EXAMPLES\CURRENCY.M2b %1\EXAMPLES\DATA.M2 %1\EXAMPLES\DATA.M2b %1\EXAMPLES\examples.m2 %1\EXAMPLES\examples.m2b %1\EXAMPLES\fandp.txt %1\EXAMPLES\features.m2 %1\EXAMPLES\features.m2b %1\EXAMPLES\feed.exe %1\EXAMPLES\feed.ico %1\EXAMPLES\FIRST_PA.M2 %1\EXAMPLES\FIRST_PA.M2b %1\EXAMPLES\INVOICE.M2 %1\EXAMPLES\INVOICE.M2b %1\EXAMPLES\page.exe %1\EXAMPLES\page.ico %1\EXAMPLES\portflio.m2 %1\EXAMPLES\portflio.m2b %1\EXAMPLES\present.m2 %1\EXAMPLES\present.m2b %1\EXAMPLES\SALES.M2 %1\EXAMPLES\SALES.M2b %1\EXAMPLES\SRC %1\EXAMPLES\TARIFFS.M2 %1\EXAMPLES\TARIFFS.M2b %1\EXAMPLES\SRC\Feed %1\EXAMPLES\SRC\Page %1\EXAMPLES\SRC\Feed\feed.cpp %1\EXAMPLES\SRC\Feed\feed.def %1\EXAMPLES\SRC\Feed\feed.dep %1\EXAMPLES\SRC\Feed\feed.h %1\EXAMPLES\SRC\Feed\feed.mak %1\EXAMPLES\SRC\Feed\feed.exe %1\EXAMPLES\SRC\Page\os2h.h %1\EXAMPLES\SRC\Page\page.cpp %1\EXAMPLES\SRC\Page\page.def %1\EXAMPLES\SRC\Page\page.dep %1\EXAMPLES\SRC\Page\page.mak %1\EXAMPLES\SRC\Page\page.rc %1\EXAMPLES\SRC\Page\page.exe %1\TEMPLATE\Expense.M2T %1\TEMPLATE\Invoice.M2T // delete the installation log @delete A: %1\install.log // uninstall the WPS dlls (only if tied to this copy) @mdel (AL): %1\wppalets.dll @mdel (AJ): %1\mesaprt.dll // remove directories @rd A: "%1\EXAMPLES\SRC\Feed" "%1\EXAMPLES\SRC\Page" "%1\EXAMPLES\SRC" "%1\TEMPLATE" "%1\EXAMPLES" "%1" // remove objects (except shadows and non-prerelease objects) @var: F: 5 @xwps: F: @xwps: F: @xwps: F: @xwps: F: %5 // close and remove the log file if we got this far // and the executeable is gone @option ABCDE: M: "exists:%1\mesa2.exe" @log (A!M): off @delete (A!M): "%1\uninst.log" // remove the install info @option A: L: "target:%3" @xini (A!ML): * MesaPR INSTALLATIONPATH @getini (A!M!L): * MesaPR INSTALLATIONPATH 5 @option A: L: "target:%5" @xini (A!ML): * MesaPR INSTALLATIONPATH // force the "installed with errors" message if couldn't delete exe @errorcount (AM): + // otherwise reset it @errorcount (A!M): * // one last try at the directory @rd A: "%1"