mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-22 23:56:47 +00:00
Proof-read OEM folder script
This commit is contained in:
parent
8494f25ea5
commit
2e05aefa78
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: Set Environment variables, it helps if they are misconfigured in the system
|
:: Set environment variables, it helps if they are misconfigured in the system
|
||||||
|
|
||||||
setlocal EnableExtensions
|
setlocal EnableExtensions
|
||||||
setlocal DisableDelayedExpansion
|
setlocal DisableDelayedExpansion
|
||||||
@ -79,7 +79,7 @@ cls
|
|||||||
pushd "%~dp0"
|
pushd "%~dp0"
|
||||||
>nul findstr /v "$" "%~nx0" && (
|
>nul findstr /v "$" "%~nx0" && (
|
||||||
echo:
|
echo:
|
||||||
echo Error - Script either has LF line ending issue or an empty line at the end of the script is missing.
|
echo Error - Script either has an LF line ending issue or an empty line at the end of the script is missing.
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%troubleshoot
|
||||||
@ -121,13 +121,13 @@ call :dk_setvar
|
|||||||
if %winbuild% LSS 7600 (
|
if %winbuild% LSS 7600 (
|
||||||
%nceline%
|
%nceline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
echo Project is supported only for Windows 7/8/8.1/10/11 and their Server equivalent.
|
echo MAS only supports Windows 7/8/8.1/10/11 and their Server equivalents.
|
||||||
goto done2
|
goto done2
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: Fix special characters limitation in path name
|
:: Fix special character limitations in path name
|
||||||
|
|
||||||
set "_work=%~dp0"
|
set "_work=%~dp0"
|
||||||
if "%_work:~-1%"=="\" set "_work=%_work:~0,-1%"
|
if "%_work:~-1%"=="\" set "_work=%_work:~0,-1%"
|
||||||
@ -147,8 +147,8 @@ setlocal EnableDelayedExpansion
|
|||||||
echo "!_batf!" | find /i "!_ttemp!" %nul1% && (
|
echo "!_batf!" | find /i "!_ttemp!" %nul1% && (
|
||||||
if /i not "!_work!"=="!_ttemp!" (
|
if /i not "!_work!"=="!_ttemp!" (
|
||||||
%eline%
|
%eline%
|
||||||
echo Script is launched from the temp folder,
|
echo Script is launched from the temp folder.
|
||||||
echo Most likely you are running the script directly from the archive file.
|
echo You are most likely running the script directly from the archive file.
|
||||||
echo:
|
echo:
|
||||||
echo Extract the archive file and launch the script from the extracted folder.
|
echo Extract the archive file and launch the script from the extracted folder.
|
||||||
goto done2
|
goto done2
|
||||||
@ -188,8 +188,8 @@ goto done2
|
|||||||
%nul1% fltmc || (
|
%nul1% fltmc || (
|
||||||
if not defined _elev %psc% "start cmd.exe -arg '/c \"!_PSarg!\"' -verb runas" && exit /b
|
if not defined _elev %psc% "start cmd.exe -arg '/c \"!_PSarg!\"' -verb runas" && exit /b
|
||||||
%eline%
|
%eline%
|
||||||
echo This script needs admin rights.
|
echo This script needs administrator rights.
|
||||||
echo To do so, right click on this script and select 'Run as administrator'.
|
echo Right click on this script and select 'Run as administrator'.
|
||||||
goto done2
|
goto done2
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -248,14 +248,14 @@ if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.6
|
|||||||
if defined old (
|
if defined old (
|
||||||
echo ________________________________________________
|
echo ________________________________________________
|
||||||
%eline%
|
%eline%
|
||||||
echo Version %masver% of MAS is outdated.
|
echo Your version of MAS [%masver%] is outdated.
|
||||||
echo ________________________________________________
|
echo ________________________________________________
|
||||||
echo:
|
echo:
|
||||||
if not %_unattended%==1 (
|
if not %_unattended%==1 (
|
||||||
echo [1] Get Latest MAS
|
echo [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
call :dk_color %_Green% "Choose a menu option using your keyboard [1,0] :"
|
||||||
choice /C:10 /N
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||||
@ -277,7 +277,7 @@ set "_dir=%desktop%\$OEM$\$$\Setup\Scripts"
|
|||||||
|
|
||||||
if exist "!desktop!\" (
|
if exist "!desktop!\" (
|
||||||
%eline%
|
%eline%
|
||||||
echo Desktop location was not detected, aborting...
|
echo Unable to detect Desktop location, aborting...
|
||||||
goto done2
|
goto done2
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ if not defined terminal mode 78, 30
|
|||||||
if exist "!desktop!\$OEM$\" (
|
if exist "!desktop!\$OEM$\" (
|
||||||
echo _____________________________________________________
|
echo _____________________________________________________
|
||||||
%eline%
|
%eline%
|
||||||
echo $OEM$ folder already exists on the Desktop.
|
echo The $OEM$ folder already exists on your Desktop.
|
||||||
echo _____________________________________________________
|
echo _____________________________________________________
|
||||||
goto done2
|
goto done2
|
||||||
)
|
)
|
||||||
@ -349,7 +349,7 @@ call :dk_color2 %_White% " [R] " %_Green% "ReadMe"
|
|||||||
echo: [0] Exit
|
echo: [0] Exit
|
||||||
echo: ________________________________________________________
|
echo: ________________________________________________________
|
||||||
echo:
|
echo:
|
||||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard :"
|
call :dk_color2 %_White% " " %_Green% "Choose a menu option using your keyboard :"
|
||||||
choice /C:123456789R0 /N
|
choice /C:123456789R0 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
@ -689,11 +689,11 @@ goto :done2
|
|||||||
echo ______________________________________________________________
|
echo ______________________________________________________________
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Blue% "%oem%"
|
call :dk_color %Blue% "%oem%"
|
||||||
call :dk_color %Green% "$OEM$ folder is successfully created on the Desktop."
|
call :dk_color %Green% "The $OEM$ folder was successfully created on your Desktop."
|
||||||
echo "%oem%" | find /i "38" %nul% && (
|
echo "%oem%" | find /i "38" %nul% && (
|
||||||
echo:
|
echo:
|
||||||
echo To KMS38 activate Server Cor/Acor editions ^(No GUI Versions^),
|
echo To activate Server Cor/Acor editions ^(No GUI Versions^) using KMS38,
|
||||||
echo Check this page %mas%oem-folder
|
echo Check this page: %mas%oem-folder
|
||||||
)
|
)
|
||||||
echo ______________________________________________________________
|
echo ______________________________________________________________
|
||||||
|
|
||||||
@ -701,13 +701,13 @@ echo ______________________________________________________________
|
|||||||
|
|
||||||
echo:
|
echo:
|
||||||
if defined fixes (
|
if defined fixes (
|
||||||
call :dk_color2 %Blue% "Press [1] To Open Troubleshoot Page " %Gray% " Press [0] To Ignore"
|
call :dk_color2 %Blue% "Press [1] to Open Troubleshoot Page " %Gray% " Press [0] to Ignore"
|
||||||
choice /C:10 /N
|
choice /C:10 /N
|
||||||
if !errorlevel!==1 (for %%# in (%fixes%) do (start %%#))
|
if !errorlevel!==1 (for %%# in (%fixes%) do (start %%#))
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined terminal (
|
if defined terminal (
|
||||||
call :dk_color %_Yellow% "Press 0 key to %_exitmsg%..."
|
call :dk_color %_Yellow% "Press [0] to %_exitmsg%..."
|
||||||
choice /c 0 /n
|
choice /c 0 /n
|
||||||
) else (
|
) else (
|
||||||
call :dk_color %_Yellow% "Press any key to %_exitmsg%..."
|
call :dk_color %_Yellow% "Press any key to %_exitmsg%..."
|
||||||
|
Loading…
Reference in New Issue
Block a user