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