1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <unattend xmlns="urn:schemas-microsoft-com:unattend"
|
---|
3 | xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
|
---|
4 |
|
---|
5 | <settings pass="windowsPE">
|
---|
6 | <component name="Microsoft-Windows-International-Core-WinPE"
|
---|
7 | processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
|
---|
8 | publicKeyToken="31bf3856ad364e35" language="neutral"
|
---|
9 | versionScope="nonSxS">
|
---|
10 | <InputLocale>en-US</InputLocale>
|
---|
11 | <SystemLocale>@@VBOX_INSERT_DASH_LOCALE@@</SystemLocale>
|
---|
12 | <UserLocale>@@VBOX_INSERT_DASH_LOCALE@@</UserLocale>
|
---|
13 | <!-- UILanguage must match the installation media language. Stuff like de-CH does not work for
|
---|
14 | example de_windows_7_enterprise_with_sp1_x64_dvd_u_677649.iso. However, stupidly we cannot
|
---|
15 | omit this element (kudos to brilliant minds at MS). -->
|
---|
16 | <UILanguage>@@VBOX_INSERT_LANGUAGE@@</UILanguage>
|
---|
17 | </component>
|
---|
18 |
|
---|
19 | <component name="Microsoft-Windows-Setup"
|
---|
20 | processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
|
---|
21 | publicKeyToken="31bf3856ad364e35" language="neutral"
|
---|
22 | versionScope="nonSxS">
|
---|
23 |
|
---|
24 | <DiskConfiguration>
|
---|
25 | <WillShowUI>OnError</WillShowUI>
|
---|
26 | <Disk>
|
---|
27 | <DiskID>0</DiskID>
|
---|
28 | <WillWipeDisk>true</WillWipeDisk>
|
---|
29 | @@VBOX_COND_IS_NOT_FIRMWARE_UEFI@@
|
---|
30 | <CreatePartitions>
|
---|
31 | <!-- TODO: Use the standard partitioning scheme at starting with Windows 8 maybe, using 2 partitions as described by Microsoft? -->
|
---|
32 | <CreatePartition>
|
---|
33 | <Order>1</Order>
|
---|
34 | <Type>Primary</Type>
|
---|
35 | <Extend>true</Extend>
|
---|
36 | </CreatePartition>
|
---|
37 | </CreatePartitions>
|
---|
38 | @@VBOX_COND_END@@
|
---|
39 | @@VBOX_COND_IS_FIRMWARE_UEFI@@
|
---|
40 | <CreatePartitions>
|
---|
41 | <CreatePartition wcm:action="add">
|
---|
42 | <Order>1</Order>
|
---|
43 | <Type>Primary</Type>
|
---|
44 | <Size>300</Size>
|
---|
45 | </CreatePartition>
|
---|
46 | <CreatePartition wcm:action="add">
|
---|
47 | <Order>2</Order>
|
---|
48 | <Type>EFI</Type>
|
---|
49 | <Size>100</Size>
|
---|
50 | </CreatePartition>
|
---|
51 | <CreatePartition wcm:action="add">
|
---|
52 | <Order>3</Order>
|
---|
53 | <Type>MSR</Type>
|
---|
54 | <Size>128</Size>
|
---|
55 | </CreatePartition>
|
---|
56 | <CreatePartition wcm:action="add">
|
---|
57 | <Order>4</Order>
|
---|
58 | <Type>Primary</Type>
|
---|
59 | <Extend>true</Extend>
|
---|
60 | </CreatePartition>
|
---|
61 | </CreatePartitions>
|
---|
62 | <ModifyPartitions>
|
---|
63 | <ModifyPartition wcm:action="add">
|
---|
64 | <Order>1</Order>
|
---|
65 | <PartitionID>1</PartitionID>
|
---|
66 | <Label>WINRE</Label>
|
---|
67 | <Format>NTFS</Format>
|
---|
68 | <TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
|
---|
69 | </ModifyPartition>
|
---|
70 | <ModifyPartition wcm:action="add">
|
---|
71 | <Order>2</Order>
|
---|
72 | <PartitionID>2</PartitionID>
|
---|
73 | <Label>EFI</Label>
|
---|
74 | <Format>FAT32</Format>
|
---|
75 | </ModifyPartition>
|
---|
76 | <ModifyPartition wcm:action="add">
|
---|
77 | <Order>3</Order>
|
---|
78 | <PartitionID>3</PartitionID>
|
---|
79 | </ModifyPartition>
|
---|
80 | <ModifyPartition wcm:action="add">
|
---|
81 | <Order>4</Order>
|
---|
82 | <PartitionID>4</PartitionID>
|
---|
83 | <Label>Windows</Label>
|
---|
84 | <Letter>C</Letter>
|
---|
85 | <Format>NTFS</Format>
|
---|
86 | </ModifyPartition>
|
---|
87 | </ModifyPartitions>
|
---|
88 | @@VBOX_COND_END@@
|
---|
89 | </Disk>
|
---|
90 | </DiskConfiguration>
|
---|
91 |
|
---|
92 | <UserData>
|
---|
93 | <ProductKey>
|
---|
94 | <Key>@@VBOX_INSERT_PRODUCT_KEY_ELEMENT@@</Key>
|
---|
95 | <WillShowUI>OnError</WillShowUI>
|
---|
96 | </ProductKey>
|
---|
97 | <AcceptEula>true</AcceptEula>
|
---|
98 | </UserData>
|
---|
99 |
|
---|
100 | <ImageInstall>
|
---|
101 | <OSImage>
|
---|
102 | <InstallFrom>
|
---|
103 | <!-- TODO: This stuff doesn't work for en_windows_vista_enterprise_sp1_x64_and_x86.iso ... -->
|
---|
104 | <MetaData wcm:action="add">
|
---|
105 | <Key>/IMAGE/INDEX</Key>
|
---|
106 | <Value>@@VBOX_INSERT_IMAGE_INDEX_ELEMENT@@</Value>
|
---|
107 | </MetaData>
|
---|
108 | <!-- <Path>d:\sources\install.wim</Path> - the w7 tests doesn't specify this -->
|
---|
109 | </InstallFrom>
|
---|
110 | <InstallTo>
|
---|
111 | <DiskID>0</DiskID>
|
---|
112 | @@VBOX_COND_IS_NOT_FIRMWARE_UEFI@@
|
---|
113 | <PartitionID>1</PartitionID>
|
---|
114 | @@VBOX_COND_END@@
|
---|
115 | @@VBOX_COND_IS_FIRMWARE_UEFI@@
|
---|
116 | <PartitionID>4</PartitionID>
|
---|
117 | @@VBOX_COND_END@@
|
---|
118 | </InstallTo>
|
---|
119 | <WillShowUI>OnError</WillShowUI>
|
---|
120 | <InstallToAvailablePartition>false</InstallToAvailablePartition>
|
---|
121 | </OSImage>
|
---|
122 | </ImageInstall>
|
---|
123 |
|
---|
124 | <ComplianceCheck>
|
---|
125 | <DisplayReport>OnError</DisplayReport>
|
---|
126 | </ComplianceCheck>
|
---|
127 |
|
---|
128 | <!-- Apply registry tweaks to Windows PE, skipping the checks in the Windows 11 setup program. This will not make it to the final install, and should do no harm with older Windows versions. -->
|
---|
129 | <RunAsynchronous>
|
---|
130 | <RunAsynchronousCommand>
|
---|
131 | <Order>1</Order>
|
---|
132 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1</Path>
|
---|
133 | <Description>Windows 11 disable CPU check</Description>
|
---|
134 | </RunAsynchronousCommand>
|
---|
135 | <RunAsynchronousCommand>
|
---|
136 | <Order>2</Order>
|
---|
137 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1</Path>
|
---|
138 | <Description>Windows 11 disable RAM check</Description>
|
---|
139 | </RunAsynchronousCommand>
|
---|
140 | <RunAsynchronousCommand>
|
---|
141 | <Order>3</Order>
|
---|
142 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1</Path>
|
---|
143 | <Description>Windows 11 disable Secure Boot check</Description>
|
---|
144 | </RunAsynchronousCommand>
|
---|
145 | <RunAsynchronousCommand>
|
---|
146 | <Order>4</Order>
|
---|
147 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1</Path>
|
---|
148 | <Description>Windows 11 disable Storage check</Description>
|
---|
149 | </RunAsynchronousCommand>
|
---|
150 | <RunAsynchronousCommand>
|
---|
151 | <Order>5</Order>
|
---|
152 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1</Path>
|
---|
153 | <Description>Windows 11 disable TPM check</Description>
|
---|
154 | </RunAsynchronousCommand>
|
---|
155 | </RunAsynchronous>
|
---|
156 |
|
---|
157 | </component>
|
---|
158 | </settings>
|
---|
159 |
|
---|
160 | <settings pass="specialize">
|
---|
161 | <component name="Microsoft-Windows-Shell-Setup"
|
---|
162 | processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
|
---|
163 | publicKeyToken="31bf3856ad364e35" language="neutral"
|
---|
164 | versionScope="nonSxS">
|
---|
165 | <ComputerName>@@VBOX_INSERT_HOSTNAME_WITHOUT_DOMAIN_MAX_15@@</ComputerName>
|
---|
166 | </component>
|
---|
167 |
|
---|
168 | <component name="Microsoft-Windows-Deployment"
|
---|
169 | processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
|
---|
170 | publicKeyToken="31bf3856ad364e35" language="neutral"
|
---|
171 | versionScope="nonSxS">
|
---|
172 |
|
---|
173 | <!-- Apply registry tweaks in the final Windows install, skipping the checks in the Windows 11 setup program. This means upgrades started in this install will work without compatibility complaints. -->
|
---|
174 | <RunAsynchronous>
|
---|
175 | <RunAsynchronousCommand>
|
---|
176 | <Order>1</Order>
|
---|
177 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /t REG_DWORD /d 1</Path>
|
---|
178 | <Description>Windows 11 disable CPU check</Description>
|
---|
179 | </RunAsynchronousCommand>
|
---|
180 | <RunAsynchronousCommand>
|
---|
181 | <Order>2</Order>
|
---|
182 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1</Path>
|
---|
183 | <Description>Windows 11 disable RAM check</Description>
|
---|
184 | </RunAsynchronousCommand>
|
---|
185 | <RunAsynchronousCommand>
|
---|
186 | <Order>3</Order>
|
---|
187 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1</Path>
|
---|
188 | <Description>Windows 11 disable Secure Boot check</Description>
|
---|
189 | </RunAsynchronousCommand>
|
---|
190 | <RunAsynchronousCommand>
|
---|
191 | <Order>4</Order>
|
---|
192 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /t REG_DWORD /d 1</Path>
|
---|
193 | <Description>Windows 11 disable Storage check</Description>
|
---|
194 | </RunAsynchronousCommand>
|
---|
195 | <RunAsynchronousCommand>
|
---|
196 | <Order>5</Order>
|
---|
197 | <Path>reg.exe ADD /f HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1</Path>
|
---|
198 | <Description>Windows 11 disable TPM check</Description>
|
---|
199 | </RunAsynchronousCommand>
|
---|
200 | </RunAsynchronous>
|
---|
201 | </component>
|
---|
202 | </settings>
|
---|
203 |
|
---|
204 | <settings pass="oobeSystem">
|
---|
205 | <component name="Microsoft-Windows-Shell-Setup"
|
---|
206 | processorArchitecture="@@VBOX_INSERT_OS_ARCH_ATTRIB_DQ@@"
|
---|
207 | publicKeyToken="31bf3856ad364e35" language="neutral"
|
---|
208 | versionScope="nonSxS">
|
---|
209 | <AutoLogon>
|
---|
210 | <Password>
|
---|
211 | <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
|
---|
212 | <PlainText>true</PlainText>
|
---|
213 | </Password>
|
---|
214 | <Enabled>true</Enabled>
|
---|
215 | <Username>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Username>
|
---|
216 | </AutoLogon>
|
---|
217 |
|
---|
218 | <UserAccounts>
|
---|
219 | @@VBOX_COND_IS_USER_LOGIN_NOT_ADMINISTRATOR@@
|
---|
220 | <AdministratorPassword>
|
---|
221 | <Value>@@VBOX_INSERT_ROOT_PASSWORD_ELEMENT@@</Value>
|
---|
222 | <PlainText>true</PlainText>
|
---|
223 | </AdministratorPassword>
|
---|
224 |
|
---|
225 | <LocalAccounts>
|
---|
226 | <LocalAccount wcm:action="add">
|
---|
227 | <Name>@@VBOX_INSERT_USER_LOGIN_ELEMENT@@</Name>
|
---|
228 | <DisplayName>@@VBOX_INSERT_USER_FULL_NAME_ELEMENT@@</DisplayName>
|
---|
229 | <Group>administrators;users</Group>
|
---|
230 | <Password>
|
---|
231 | <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
|
---|
232 | <PlainText>true</PlainText>
|
---|
233 | </Password>
|
---|
234 | </LocalAccount>
|
---|
235 | </LocalAccounts>
|
---|
236 | @@VBOX_COND_END@@
|
---|
237 | @@VBOX_COND_IS_USER_LOGIN_ADMINISTRATOR@@
|
---|
238 | <AdministratorPassword>
|
---|
239 | <Value>@@VBOX_INSERT_USER_PASSWORD_ELEMENT@@</Value>
|
---|
240 | <PlainText>true</PlainText>
|
---|
241 | </AdministratorPassword>
|
---|
242 | @@VBOX_COND_END@@
|
---|
243 | </UserAccounts>
|
---|
244 |
|
---|
245 | <VisualEffects>
|
---|
246 | <FontSmoothing>ClearType</FontSmoothing>
|
---|
247 | </VisualEffects>
|
---|
248 |
|
---|
249 | <OOBE>
|
---|
250 | <ProtectYourPC>3</ProtectYourPC>
|
---|
251 | <HideEULAPage>true</HideEULAPage>
|
---|
252 | <SkipUserOOBE>true</SkipUserOOBE>
|
---|
253 | <SkipMachineOOBE>true</SkipMachineOOBE>
|
---|
254 | <!-- Make this (NetworkLocation) default to public and make it configurable -->
|
---|
255 | <NetworkLocation>Home</NetworkLocation>
|
---|
256 | </OOBE>
|
---|
257 |
|
---|
258 | <FirstLogonCommands>
|
---|
259 | <SynchronousCommand wcm:action="add">
|
---|
260 | <!-- For which OS versions do we need to do this? -->
|
---|
261 | <Order>1</Order>
|
---|
262 | <Description>Turn Off Network Selection pop-up</Description>
|
---|
263 | <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine>
|
---|
264 | </SynchronousCommand>
|
---|
265 | <SynchronousCommand wcm:action="add">
|
---|
266 | <Order>2</Order>
|
---|
267 | <Description>VirtualBox post guest install steps </Description>
|
---|
268 | <CommandLine>cmd.exe /c @@VBOX_INSERT_AUXILIARY_INSTALL_DIR@@VBOXPOST.CMD --vista-or-newer</CommandLine>
|
---|
269 | </SynchronousCommand>
|
---|
270 | </FirstLogonCommands>
|
---|
271 |
|
---|
272 | <TimeZone>@@VBOX_INSERT_TIME_ZONE_WIN_NAME@@</TimeZone>
|
---|
273 | </component>
|
---|
274 |
|
---|
275 | </settings>
|
---|
276 | </unattend>
|
---|
277 |
|
---|