In 2274» How do I get Add/Remove Programs to display 'optional' components,
I explained how to edit the %SystemRoot%\INF\sysoc.inf file if the operating system is already installed.
I have scripted ShowAllOptionalComponents.bat to unhide all the optional components.
The syntax for using ShowAllOptionalComponents.bat is:
ShowAllOptionalComponents
ShowAllOptionalComponents.bat contains:
@echo off setlocal copy %SystemRoot%\INF\sysoc.inf "%TEMP%\sysoc.inf" del /q %SystemRoot%\INF\sysoc.inf for /f "Tokens=*" %%a in ('type "%TEMP%\sysoc.inf"') DO ( set line=%%a call :unhide ) endlocal goto :EOF :unhide set line=%line:,hide,=,,% @echo %line%>>%SystemRoot%\INF\sysoc.inf
0 comments
Hide comments