Цитата mPaSoft:
но Autounattend.xml на флэшке может не подхватиться »
|
mPaSoft, А если таким методом...
Создать файл winpeshl.ini со следующим содержанием:
Цитата:
[LaunchApps]
x:\windows\system32\Install.cmd
|
Создать файл Install.cmd (сохранить в ОЕМ 866 кодировке) со следующим содержанием:
Код:
![Выделить весь код](images/misc/selectcode.png)
@Echo off
Color 02
Title
SetLocal EnableExtensions EnableDelayedExpansion
For %%I 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 (Dir %%I:>Nul 2>&1 && Set "zz=!zz!%%I ")
For %%I In (!zz!) Do (If Exist %%I:\sources\install.wim Set Letter=%%I)
If Not Defined Letter (
Echo Файл \sources\install.wim не найден, дальнейшая установка невозможна.
Echo Нажмите любую клавишу для перезагрузки.
Pause >Nul
Exit
)
Echo 1. Автоматическая установка Windows.
Echo 2. Ручная установка Windows.
Echo 3. Восстановление системы.
Echo.
Set /p choice="Выберите номер действия (1/2/3):"
If %choice%==1 X:\sources\setup.exe /installfrom:%Letter%:\sources\install.wim /unattend:automatic.xml
If %choice%==2 X:\sources\setup.exe /installfrom:%Letter%:\sources\install.wim
If %choice%==3 X:\sources\recovery\RecEnv.exe
Exit
Назвать файл ответов с автоматической инсталляцией automatic.xml.
Смонтируй второй образ boot.wim.
Скопируй все 3 файла в Папка_монтирования\Windows\System32\ и сохранить изменения.
Содержание файла automatic.xml:
Скрытый текст
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>ru-RU</UILanguage>
</SetupUILanguage>
<InputLocale>en-US; ru-RU</InputLocale>
<SystemLocale>ru-RU</SystemLocale>
<UILanguage>ru-RU</UILanguage>
<UserLocale>ru-RU</UserLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserData>
<AcceptEula>true</AcceptEula>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
</ProductKey>
</UserData>
<ImageInstall>
<OSImage>
<InstallFrom>
<Path>install.wim</Path>
<MetaData wcm:action="add">
<Key>/IMAGE/INDEX</Key>
<Value>1</Value>
</MetaData>
</InstallFrom>
</OSImage>
</ImageInstall>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComputerName>MyComputer</ComputerName>
<TimeZone>Russian Standard Time</TimeZone>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-US; ru-RU</InputLocale>
<UILanguage>ru-RU</UILanguage>
<UserLocale>ru-RU</UserLocale>
<SystemLocale>ru-RU</SystemLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Password>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>Admin</Username>
</AutoLogon>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>UABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<DisplayName>Admin</DisplayName>
<Group>Administrators</Group>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>
</unattend>