ADK cannot installed OFFLINE, moved to optional!

This commit is contained in:
Michael H.G. Schmidt 2023-08-14 14:48:48 +02:00
parent 5dd0d1e99e
commit 59a80fc00e
4 changed files with 37 additions and 24 deletions

37
optional/install-adk.cmd Normal file
View File

@ -0,0 +1,37 @@
@echo off
set EXE=..\software\adk-setup.exe
set OSCDPATH="%ProgramFiles(x86)%\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg"
set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs"
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
echo.
echo installing Microsoft ADK deployment tools ...
%EXE% /q /ceip off /norestart /features OptionId.DeploymentTools
if NOT EXIST %OSCDPATH%\oscdimg.exe (
echo ERROR: cannot find oscdimg.exe!
echo INFO: Installation of "Assessment and Deployment Kit (ADK)" failed!
echo.
echo ####### %0 #######
exit /b
)
rem ADK ...
move /Y %STARTMENU%\"Windows Kits\Windows ADK\Windows System Image Manager.lnk" ^
%STARTMENU%\"System Tools\Image Manager.lnk" 2>nul
rd /S /Q %STARTMENU%\"Windows Kits" 2>nul
rem show oscdimg usage:
%OSCDPATH%\oscdimg.exe
echo.
echo ####### %0 #######

View File

@ -201,9 +201,6 @@ echo.
call install-tweaks.cmd
echo.
call install-adk.cmd
echo.
call install-git.cmd
echo.

View File

@ -26,11 +26,6 @@ rem VLC ...
move /Y %STARTMENU%\"VideoLan\VLC media player.lnk" %STARTMENU% 2>nul
rd /S /Q %STARTMENU%\VideoLan 2>nul
rem ADK ...
move /Y %STARTMENU%\"Windows Kits\Windows ADK\Windows System Image Manager.lnk" ^
%STARTMENU%\"System Tools\Image Manager.lnk" 2>nul
rd /S /Q %STARTMENU%\"Windows Kits" 2>nul
rem Windows stuff (Character map)...
move /Y %STARTMENU%\"Accessories\System Tools\Character*.*" ^
%STARTMENU%\"Accessories" 2>nul

View File

@ -1,16 +0,0 @@
@echo off
set EXE=..\software\adk-setup.exe
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
echo installing Microsoft ADK deployment tools ...
%EXE% /q /ceip off /norestart /features OptionId.DeploymentTools
echo ####### %0 #######