Skip to content
Discussion options

You must be logged in to vote

The $OEM$ folder does not necessarily contain drivers. Instead, it contains files that Windows Setup (setup.exe) will simply copy to the target partition. When you use the Generate a .cmd script… setting, setup.exe is only used to run that .cmd script. Therefore, the .cmd script has to replicate the behavior, and this is what the

rem Copy $OEM$ folder if present
set "ROBOCOPY_ARGS=/E /XX /COPY:DAT /DCOPY:DAT /R:0"
if defined OEM_FOLDER (
    if exist "%OEM_FOLDER%\$$" robocopy.exe "%OEM_FOLDER%\$$" W:\Windows %ROBOCOPY_ARGS%
    if exist "%OEM_FOLDER%\$1" robocopy.exe "%OEM_FOLDER%\$1" W:\ %ROBOCOPY_ARGS%
    @for %%d in (C D E F G H I J K L M N O P Q R S T U V W Y Z) do @(
        if exi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MaKaNu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants