@echo off REM perform upgrade of WPKG client IF EXIST "%SystemDrive%\FWSUpdates\assets.upgrade" ( RMDIR /S /Q "%SystemDrive%\FWSUpdates\assets" RENAME "%SystemDrive%\FWSUpdates\assets.upgrade" assets ) IF EXIST "%SystemDrive%\FWSUpdates\bin.upgrade" ( RMDIR /S /Q "%SystemDrive%\FWSUpdates\bin" RENAME "%SystemDrive%\FWSUpdates\bin.upgrade" bin ) IF EXIST "%SystemDrive%\FWSUpdates\lang.upgrade" ( RMDIR /S /Q "%SystemDrive%\FWSUpdates\lang" RENAME "%SystemDrive%\FWSUpdates\lang.upgrade" lang ) IF EXIST "%SystemRoot%\System32\GroupPolicy\Machine\Scripts\Shutdown\wpkg.bat" DEL /F /Q "%SystemRoot%\System32\GroupPolicy\Machine\Scripts\Shutdown\wpkg.bat" IF EXIST "%SystemRoot%\System32\GroupPolicy\Machine\Scripts\Shutdown\fwsupdates.upgrade.vbs" ( DEL /Q "%SystemRoot%\System32\GroupPolicy\Machine\Scripts\Shutdown\fwsupdates.vbs" RENAME "%SystemRoot%\System32\GroupPolicy\Machine\Scripts\Shutdown\fwsupdates.upgrade.vbs" fwsupdates.vbs ) reg delete "HKLM\Software\FWS\Updates" /v PendingChanges /f reg delete "HKLM\Software\FWS\Updates" /v PendingChangesList /f