                     __          _______           _
                     \ \        / /_   _|         | |
                      \ \  /\  / /  | |  _ __  ___| |_
                       \ \/  \/ /   | | | '_ \/ __| __|
                        \  /\  /   _| |_| | | \__ \ |_
                         \/  \/   |_____|_| |_|___/\__|

                           *** Windows Installer ***

0. 
   ----------
    Windows 7-10 :
   -      Windows setup.exe  
      .     Windows 10  
        winsetup.dll
   -  Windows    (    ,   
      )    VHD    wimlib-imagex.exe 
         .

1. 
   ------------
                              ()
                            ~~~~~~~~~~~~~~~~~~~~~~~
   ,   :
   -     WIM, ESD, SWM.   "install.esd"
   -   () {   .  ""}
   -  $OEM$ ()
   -   unattend.xml ()
   -   setup.exe ()

            .

                                 ()
                               ~~~~~~~~~~~~~~~~
   ,   :
   -  
   -  $OEM$ ()
   - (-)  unattend.xml (<_>.xml)

2. 
   ---------
       :

                                 
                                 ~~~~~~~~~~~~
        . :

   F:\
      \
         \
         \
         \
         ...

                                  
                                  ~~~~~~~~~~~
     "WInstall"        WInst
"WInst.cmd". :

   F:\
      Folder\
             WInst\
                   WInstall\
                            \
                            \
                            \
                            ...
                   WInst.cmd


                                 
                                 ~~~~~~~~~~~~
     ,      . :

   F:\
      Folder\
             
      Folder1\
              Folder2\
                      
                      
                      Folder3\
                              


3. 
   ----------
                                
                              ~~~~~~~~~~~~~~~~~~~
      ,    "".
      dirlist.txt
,        :

   F:\
      Install\
              Windows\
                      Win7x86\
                      Win81x64\
                      Win10x64\

       -  F:\Install\Windows\
          ,  "\Install\Windows"
         dirlist.txt:

   \Install\Windows

      ,    dirlist.txt  .

      dirlist.txt   ( ,  
   ).       ,
   dirlist.txt:

   \Install\Windows\Win7x86\@
   \Install\Windows\Win81x64\@
   \Install\Windows\Win10x64\@

      ,    "" ( WInstall).

       ""  ""   ,   
   fudlist.txt (. ),     
 .

      :
-       ,    
-    ,       

                            
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~
     : "/" -     
                                                       
                                                  .
      -     ( 
                                  ESD, WIM, SWM).
        -      
                                              WIM, ESD, SWM  
                                              1 000 000 000 .
      -   (   )
                                        diskpart.
   / VHD(X) -  /  VHD(X)- 
                                  
                              Windows.
     -  /VHD-   Windows;
                               / ;
                              /  ;
                                 /.

    ,  ,  ""  . 
    fudlist.txt      
 WInst (   dirlist.txt,    ( ) 
 ).  fudlist.txt    dirlist.txt. 
 :
  fudlist.txt -> fud2dir.txt (  fud2dir)   dirlist.txt
  fudlist.txt -> fud4dir.txt (  fud4dir)    dirlist.txt
  WInst.

         VHD  
Windows  .

    "Fix boot":
   * MBR/PBR (PBR)         -    .
   * MBR/PBR + update BCD  -     BCD.
   * Advanced Boot Options -     "Advanced Boot Options".

   -   "WINDOWS"    ;
   -   "BOOTLOADER"      MBR ,
       "BOOTLOADER";
   -   "Advanced Boot Options"    "WINDOWS" 
      "AdvBootOpt_off.cmd"   .

       WInst   "\Windows\Temp"  
  "WInst_Add_Drivers.bak",   , 
 .  ,    -   
,     .

                                 
                                ~~~~~~~~~~~~~~~
     -   "/"
    $OEM$  -     : , , WInstall. ,
                    : $OEM$, ..\$OEM$, _WInst_\$OEM$
                      ,    .
     -   $OEM$.   :
                  unattend.xml, ..\unattend.xml, _WInst_\unattend.xml
                      WInstall       xml,
                     .
      -     setup.exe,      .
                    setup.exe  .
                        "setup_x86.exe" /
                  "setup_x64.exe",    setup.exe  
                  ,        
                   .

     -       .
            -       
                          .
    EI.cfg      -   Volume/Retail
              -        
                             .
    Winsetup.dll   -   "".     
                           "   ",   
                           "".


4. 
   -------------
      :
   -        (   VHD)
   -       Windows (   )

    :
   1.  ,    ;
   2.  ,   (  ) ;
   3.   .

        (  RAW)
           "" [ WINDOWS = ... ]
   -      Windows,     
           "" [ BOOTLOADER = ... ]
   -   /  
      :
   * ALL  -      BIOS,    UEFI
   * BIOS -      BIOS
   * UEFI -      UEFI

                               
                              ~~~~~~~~~~~~~~~~~~~

   New BCD -     BCD (    
              )    .
   Drivers -      .
   Reboot  -    .

     :
   *  -     ,  
                     Windows.   
                     Windows (   ".msu"
                   ".cab"),    .
   *  -       Windows.
   * + -   .

5. :
   ------
   docs      -    .
   packs     -       .
   schemes   -    diskpart  "  ".
   WInst.cmd -  .

   :
   ~~~~~~~~~~~
   dirlist.txt  -        "" .
   settings.txt -      , 
                   .
   WInstall    -     $OEM$, unattend.xml    ""
                   .

6. 
   ----------
-   :
  *    setup.exe: - WinPE 7-10 x86/x64
  *    : - Win7-10 x86/x64  WinPE 7-10 x86/x64
-    dirlist.txt    fudlist.txt    
-   ""  ,     $OEM$ 
  unattend.xml   WInstall
-  ""  " "    
   BCD   "\Boot\{WInst}.bak"  "\EFI\Microsoft\Boot\{WInst}.bak"
   BIOS  UEFI .

    :
  -  WIN-1251
  -    =    +  "txt"
    : "install.esd.txt"
  - :
    *   -   
    *   -   ()   "N=Title"
    ,  "install.esd.txt":

    Windows 7 SP1 (x86-x64) Russian

    1=Windows 7 (x86)    
    2=Windows 7 (x86_64) 
    7=Windows 7 (x86)     
    8=Windows 7 (x86_64)  

    ,       ,  
   Windows     ,   
"Windows 7"  "Windows 10".        
 ,       [N],  N=2,3 ...

__________________
(c) 2018, Ander_73

