Okay Guys,
I always stay on topic (Delphi-related) here, but after having scoured the forums for a DOS-specific area to post my question and not finding one, I am posting here. My app is written in Delphi, but that really has nothing to do with the question, so please have mercy on me.![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I have written an application whose uninstaller eventually calls a .BAT file to help uninstall itself, as well as delete the directory the uninstall.exe was sitting in. For some reason, my rmdir command is failing to delete the directory. See code below:
Everything else is working, including the line right after rmdir. What could be preventing my script from deleting that folder? After uninstall.exe is successfully deleted, there's nothing left in the folder, so it can't be a straggler file that is preventing deletion. And the 'if exist' loop should guarantee that, by the time the batch file gets to the rmdir line, uninstall.exe is already gone.
I hope someone here has experience with this sort of thing, and will be able to help me out. Thanks.
-Tony
I always stay on topic (Delphi-related) here, but after having scoured the forums for a DOS-specific area to post my question and not finding one, I am posting here. My app is written in Delphi, but that really has nothing to do with the question, so please have mercy on me.
I have written an application whose uninstaller eventually calls a .BAT file to help uninstall itself, as well as delete the directory the uninstall.exe was sitting in. For some reason, my rmdir command is failing to delete the directory. See code below:
Code:
:Repeat
del "C:\Program Files\MM\Uninstall.exe"
if exist "C:\Program Files\MM\Uninstall.exe" goto Repeat
rmdir "C:\Program Files\MM"
del "C:\fiUninst.bat";
Everything else is working, including the line right after rmdir. What could be preventing my script from deleting that folder? After uninstall.exe is successfully deleted, there's nothing left in the folder, so it can't be a straggler file that is preventing deletion. And the 'if exist' loop should guarantee that, by the time the batch file gets to the rmdir line, uninstall.exe is already gone.
I hope someone here has experience with this sort of thing, and will be able to help me out. Thanks.
-Tony