You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.0 KiB
23 lines
1.0 KiB
9 years ago
|
@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
|