age of empires 1 trial uninstall script

puoti at inwind.it puoti at inwind.it
Thu Aug 7 17:52:08 CDT 2003


The age of empires trial uninstaller writes a batch script to the c drive, then
exits, the script

:Repeat
del "C:\Program Files\Microsoft Games\Age of Empires Trial\UNINSTAL.EXE"
del "C:\Program Files\Microsoft Games\Age of Empires Trial\SETUPENU.DLL"
if exist "C:\Program Files\Microsoft Games\Age of Empires Trial\UNINSTAL.EXE"
goto Repeat
if exist "C:\Program Files\Microsoft Games\Age of Empires Trial\SETUPENU.DLL"
goto Repeat
rmdir "C:\Program Files\Microsoft Games\Age of Empires Trial"
rmdir "C:\Program Files\Microsoft Games"
rmdir "C:\Program Files"
rmdir "C:"
del "\DelUS.bat"

is meant to delete itself, but ti dosen'tas after the uninstall has finished, I
find it in the fake c: directory.
Running it under wcmd outputs this

C:\>delus
C:\>del "C:\Program Files\Microsoft Games\Age of Empires Trial\UNINSTAL.EXE"
C:\Program Files\Microsoft Games\Age of Empires Trial\UNINSTAL.EXE :File Not Found
C:\>del "C:\Program Files\Microsoft Games\Age of Empires Trial\SETUPENU.DLL"
C:\Program Files\Microsoft Games\Age of Empires Trial\SETUPENU.DLL :File Not Found
C:\>if exist "C:\Program Files\Microsoft Games\Age of Empires
Trial\UNINSTAL.EXE" goto Repeat
C:\>if exist "C:\Program Files\Microsoft Games\Age of Empires
Trial\SETUPENU.DLL" goto Repeat
C:\>rmdir "C:\Program Files\Microsoft Games\Age of Empires Trial"
File not found

C:\>rmdir "C:\Program Files\Microsoft Games"
Directory is not empty

C:\>rmdir "C:\Program Files"
Directory is not empty

C:\>rmdir "C:"
Directory is not empty

C:\>del "\DelUS.bat"
Sharing violation

C:\>
The rmdir errors are normal, they aren't meant to do anything if they try to
delete not-empty folders, but the 
del "DelUS.bat" instructions, (The self destruction mechanism of the script) gives
a sharing violation error. This is a very trivial problem, the rest of the
uninstall works, and (If it's there) the game directory is deleted successfully,
so one only has to delete the script by hand, but it would at least look good if
this was fixed before 1.0





More information about the wine-devel mailing list