text stringlengths 0 834k |
|---|
echo _________________________________________________________________ |
echo: |
%ELine% |
echo Run the Online KMS Complete Uninstall script and then try again. |
echo _________________________________________________________________ |
) else ( |
echo: |
echo __________________________________________________________________________________________ |
echo: |
if defined DelDeskCont ( |
%EchoYellow% Previous desktop context menu entry for Online KMS Activation is deleted. |
echo: |
) |
if defined _SkipWinAct ( |
%EchoYellow% %_dest%\Activate.cmd is set to skip Windows Activation. |
echo: |
) |
echo Files created: |
echo %_dest%\BIN\cleanosppx64.exe |
echo %_dest%\BIN\cleanosppx86.exe |
echo %_dest%\Activate.cmd |
echo %_dest%\Info.txt |
echo: |
echo Scheduled Tasks created: |
echo \Online_KMS_Activation_Script-Renewal |
if defined ActTask (echo \Online_KMS_Activation_Script-Run_Once) |
echo: |
echo It's recommended to set exclusion for the following file in your Antivirus Program. |
echo: |
echo %_dest%\Activate.cmd |
echo __________________________________________________________________________________________ |
echo: |
if defined ActTask ( |
%EchoGreen% Online KMS Activation - Renewal and Activation Tasks are successfully created. |
) else ( |
%EchoGreen% Online KMS Activation - Renewal Task is successfully created. |
) |
echo __________________________________________________________________________________________ |
echo: |
) |
goto Done |
::======================================================================================================================================== |
:ContextMenu |
cls |
title Add Desktop Context Menu |
If exist ""%ProgramData%\Online_KMS_Activation.cmd"" ( |
del /f /q ""%ProgramData%\Online_KMS_Activation.cmd"" %nul% |
set DelDeskCont=1 |
) |
reg delete ""HKCR\DesktopBackground\shell\Activate Windows - Office"" /f %nul% |
if exist ""%_dest%\BIN\"" ( |
@RD /s /q ""%_dest%\BIN\"" %nul% |
) |
md ""%_dest%\BIN\"" %nul% |
copy /y /b ""!_work!\BIN\cleanosppx64.exe"" ""%_dest%\BIN\cleanosppx64.exe"" %nul% |
copy /y /b ""!_work!\BIN\cleanosppx86.exe"" ""%_dest%\BIN\cleanosppx86.exe"" %nul% |
if exist ""%_dest%\Activate.cmd"" ( |
del /f /q ""%_dest%\Activate.cmd"" %nul% |
) |
cd /d ""!_work!"" |
if defined _SkipWinAct ( |
%nul% %_psc% ""(gc Activate.cmd) -replace 'set ActWindows=1', 'set ActWindows=0' | Out-File -encoding ASCII ""%_dest%\Activate.cmd"""" || (set error_=1) |
) else ( |
copy /y /b ""!_work!\Activate.cmd"" ""%_dest%\Activate.cmd"" %nul% |
) |
if exist ""%_dest%\Info.txt"" ( |
del /f /q ""%_dest%\Info.txt"" %nul% |
) |
call :Export info ""%_dest%\Info.txt"" ASCII |
reg add ""HKCR\DesktopBackground\shell\Activate Windows - Office"" /v ""Icon"" /t REG_SZ /d ""%SystemRoot%%\System32\shell32.dll,71"" /f >nul 2>&1 || (set error_1=1) |
reg add ""HKCR\DesktopBackground\shell\Activate Windows - Office\command"" /ve /d ""%_dest%\Activate.cmd"" /f %nul% || (set error_1=1) |
If not exist ""%_dest%\Activate.cmd"" (set error_=1) |
If not exist ""%_dest%\Info.txt"" (set error_=1) |
If not exist ""%_dest%\BIN\cleanosppx64.exe"" (set error_=1) |
If not exist ""%_dest%\BIN\cleanosppx86.exe"" (set error_=1) |
reg query ""HKCR\DesktopBackground\shell\Activate Windows - Office"" %nul% || (set error_1=1) |
if defined error_1 ( |
reg query ""%key%"" /f Path /s | find /i ""\Online_KMS_Activation_Script-Renewal"" >nul && ( |
schtasks /delete /tn Online_KMS_Activation_Script-Renewal /f %nul% |
) |
reg query ""%key%"" /f Path /s | find /i ""\Online_KMS_Activation_Script-Run_Once"" >nul && ( |
schtasks /delete /tn Online_KMS_Activation_Script-Run_Once /f %nul% |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.