Brett Posted April 29, 2011 Share Posted April 29, 2011 I have been messing with this for a while but I am at a loss. For my install script I have the following... XCOPY /D /E /C /R /K /Y "%userfilespath%web" "C:\Inetpub\wwwroot\%hostname%\" RMDIR /S /Q "%userfilespath%web" This works perfectly. However, my uninstall script for some reason deletes the entire "wwwroot" directory (very frustrating as it removed phpmyadmin along with a bunch of other stuff when testing). RMDIR /S /Q "C:\Inetpub\wwwroot\%hostname%\" Is there something wrong with that script I am missing? I have tried both with and without the trailing slash, both times it removed the whole "wwwroot" directory. Link to comment Share on other sites More sharing options...
Brett Posted May 2, 2011 Author Share Posted May 2, 2011 Sorry to bump but anyone have a clue? Can't really ask anywhere else since this is pretty specific to TCA. Link to comment Share on other sites More sharing options...
ECF Posted May 3, 2011 Share Posted May 3, 2011 Take out the /S flag. The flag rmoves everything including the top level folder and subfolders. Link to comment Share on other sites More sharing options...
Brett Posted May 4, 2011 Author Share Posted May 4, 2011 Ah, thank you very much! Link to comment Share on other sites More sharing options...
ECF Posted May 4, 2011 Share Posted May 4, 2011 No problem Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.