Folks,
Thanks to some help within AT&T I have modified the UWIN uninstall to remove 
UWIN on Windows 7 and later. The change replaces the KSH script with a Windows 
command script. The script doesn't work on Windows XP, due to the command , 
TAKEOWN, is not supported on Windows XP.

Here is the script for your use until the next release of UWIN that 
incorporates the script.

        :WINDOWS 7 and later

        @Echo off
        :REMOVESERVICE
        Net Stop UWin_MS
        Sc Delete UWin_MS

        :REMOVEDIRECTORY
        TakeOwn /F "C:\Program Files\UWin" /R /D Y
        Echo Y| Cacls "C:\Program Files\UWin" /G sysdep:F /T
        Rd /S /Q "C:\Program Files\UWin"

        :CLEANUPOTHERFILES
        Rd /s /q "C:\Users\All Users\Microsoft\Windows\Start Menu\Programs\UWIN
5.0"
        TakeOwn /F  C:\Users\Public\Desktop\ksh*.*
        Echo Y| Cacls C:\Users\public\desktop\ksh*.* /G sysdep:F /T
        Del C:\Users\Public\Desktop\ksh*.* /F
        Echo Y| Cacls C:\Windows\System32\uwin.cpl /G sysdep:F /T
        Takeown /F  C:\Windows\System32\uwin.cpl
        Del C:\Windows\System32\uwin.cpl /F

        :CLEANREGISTRY
        Reg Delete "HKEY_LOCAL_MACHINE\SOFTWARE\AT&T Labs" /F
        Reg Delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersio
n\Uninstall\UWIN 5.0" /F

        : Do not delete user to allow for a reinstall.
_______________________________________________
uwin-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/uwin-users

Reply via email to