Jump to content

Uninstall Script behaving incorrectly


Brett

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 12 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use