[Libosinfo] [PATCH 36/39] data: split windows-* into one file per install script
Daniel P. Berrange
berrange at redhat.com
Mon Sep 28 15:51:54 UTC 2015
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
configure.ac | 1 +
data/install-scripts/Makefile.am | 10 +-
data/install-scripts/windows/Makefile.am | 1 +
.../windows-cmd-desktop.xml.in} | 1 -
.../windows-reg-desktop.xml.in} | 1 -
.../windows-sif-desktop.xml.in} | 73 -------
.../windows/windows-sif-jeos.xml.in | 71 +++++++
.../windows-unattend-desktop.xml.in} | 224 ---------------------
.../windows/windows-unattend-jeos.xml.in | 224 +++++++++++++++++++++
9 files changed, 298 insertions(+), 308 deletions(-)
create mode 100644 data/install-scripts/windows/Makefile.am
rename data/install-scripts/{windows-cmd.xml => windows/windows-cmd-desktop.xml.in} (99%)
rename data/install-scripts/{windows-reg.xml => windows/windows-reg-desktop.xml.in} (97%)
rename data/install-scripts/{windows-sif.xml => windows/windows-sif-desktop.xml.in} (68%)
create mode 100644 data/install-scripts/windows/windows-sif-jeos.xml.in
rename data/install-scripts/{windows-unattend.xml => windows/windows-unattend-desktop.xml.in} (55%)
create mode 100644 data/install-scripts/windows/windows-unattend-jeos.xml.in
diff --git a/configure.ac b/configure.ac
index 2f588ab..a26a5be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -181,6 +181,7 @@ AC_CONFIG_FILES([
data/install-scripts/fedora/Makefile
data/install-scripts/rhel/Makefile
data/install-scripts/ubuntu/Makefile
+ data/install-scripts/windows/Makefile
data/oses/Makefile
data/oses/altlinux/Makefile
data/oses/centos/Makefile
diff --git a/data/install-scripts/Makefile.am b/data/install-scripts/Makefile.am
index 8b18cd8..0c995b2 100644
--- a/data/install-scripts/Makefile.am
+++ b/data/install-scripts/Makefile.am
@@ -4,13 +4,5 @@ SUBDIRS = \
fedora \
rhel \
ubuntu \
+ windows \
$(NULL)
-
-databasedir = $(pkgdatadir)/db/install-scripts/
- windows-sif.xml \
- windows-cmd.xml \
- windows-reg.xml \
- windows-unattend.xml \
- $(NULL)
-
-EXTRA_DIST = $(database_DATA)
diff --git a/data/install-scripts/windows/Makefile.am b/data/install-scripts/windows/Makefile.am
new file mode 100644
index 0000000..ee4552b
--- /dev/null
+++ b/data/install-scripts/windows/Makefile.am
@@ -0,0 +1 @@
+include ../../Makefile.inc
diff --git a/data/install-scripts/windows-cmd.xml b/data/install-scripts/windows/windows-cmd-desktop.xml.in
similarity index 99%
rename from data/install-scripts/windows-cmd.xml
rename to data/install-scripts/windows/windows-cmd-desktop.xml.in
index 6059a98..475870e 100644
--- a/data/install-scripts/windows-cmd.xml
+++ b/data/install-scripts/windows/windows-cmd-desktop.xml.in
@@ -1,5 +1,4 @@
<libosinfo version="0.0.1">
- <!-- DESKTOP PROFILE -->
<install-script id='http://microsoft.com/windows/cmd/desktop'>
<profile>desktop</profile>
<path-format>dos</path-format>
diff --git a/data/install-scripts/windows-reg.xml b/data/install-scripts/windows/windows-reg-desktop.xml.in
similarity index 97%
rename from data/install-scripts/windows-reg.xml
rename to data/install-scripts/windows/windows-reg-desktop.xml.in
index c7bfa27..af5951e 100644
--- a/data/install-scripts/windows-reg.xml
+++ b/data/install-scripts/windows/windows-reg-desktop.xml.in
@@ -1,5 +1,4 @@
<libosinfo version="0.0.1">
- <!-- DESKTOP PROFILE -->
<install-script id='http://microsoft.com/windows/reg/desktop'>
<profile>desktop</profile>
<path-format>dos</path-format>
diff --git a/data/install-scripts/windows-sif.xml b/data/install-scripts/windows/windows-sif-desktop.xml.in
similarity index 68%
rename from data/install-scripts/windows-sif.xml
rename to data/install-scripts/windows/windows-sif-desktop.xml.in
index dc28533..9114c35 100644
--- a/data/install-scripts/windows-sif.xml
+++ b/data/install-scripts/windows/windows-sif-desktop.xml.in
@@ -1,76 +1,4 @@
<libosinfo version="0.0.1">
- <!-- JEOS PROFILE -->
- <install-script id='http://microsoft.com/windows/sif/jeos'>
- <profile>jeos</profile>
- <path-format>dos</path-format>
- <product-key-format>$$$$$-$$$$$-$$$$$-$$$$$-$$$$$</product-key-format>
- <expected-filename>winnt.sif</expected-filename>
- <can-pre-install-drivers/>
- <config>
- <param name="admin-password" policy="optional"/>
- <param name="reg-product-key" policy="required"/>
- <param name="user-realname" policy="required"/>
- <param name="driver-signing" policy="optional"/>
- </config>
- <injection-method>floppy</injection-method>
- <template>
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="text"/>
-
- <xsl:template match="/install-script-config">
-;SetupMgrTag
-[Data]
- AutoPartition=1
- MsDosInitiated=No
- UnattendedInstall=Yes
-
-[Unattended]
- UnattendMode=FullUnattended
- OemSkipEula=Yes
- OemPreinstall=No
- TargetPath=\WINDOWS
-<xsl:if test="config/driver-signing = 'false'">
- DriverSigningPolicy=Ignore
-</xsl:if>
- Repartition=Yes
- WaitForReboot=No
- UnattendSwitch=Yes
-
-[GuiUnattended]
- AdminPassword=<xsl:value-of select="config/admin-password"/>
- EncryptedAdminPassword=NO
- OEMSkipRegional=1
- TimeZone=35
- OemSkipWelcome=1
-
-[UserData]
- ProductKey=<xsl:value-of select="config/reg-product-key"/>
- FullName="<xsl:value-of select="config/user-realname"/>"
- ComputerName=
-
-[Display]
- BitsPerPel=16
- Xresolution=640
- YResolution=480
- Vrefresh=60
-
-[RegionalSettings]
- LanguageGroup=1
-
-[Identification]
- JoinWorkgroup=WORKGROUP
-
-[Networking]
- InstallDefaultComponents=Yes
- </xsl:template>
- </xsl:stylesheet>
- </template>
- </install-script>
-
- <!-- DESKTOP PROFILE -->
<install-script id='http://microsoft.com/windows/sif/desktop'>
<profile>desktop</profile>
<path-format>dos</path-format>
@@ -216,5 +144,4 @@
</xsl:stylesheet>
</template>
</install-script>
-
</libosinfo>
diff --git a/data/install-scripts/windows/windows-sif-jeos.xml.in b/data/install-scripts/windows/windows-sif-jeos.xml.in
new file mode 100644
index 0000000..02faca6
--- /dev/null
+++ b/data/install-scripts/windows/windows-sif-jeos.xml.in
@@ -0,0 +1,71 @@
+<libosinfo version="0.0.1">
+ <install-script id='http://microsoft.com/windows/sif/jeos'>
+ <profile>jeos</profile>
+ <path-format>dos</path-format>
+ <product-key-format>$$$$$-$$$$$-$$$$$-$$$$$-$$$$$</product-key-format>
+ <expected-filename>winnt.sif</expected-filename>
+ <can-pre-install-drivers/>
+ <config>
+ <param name="admin-password" policy="optional"/>
+ <param name="reg-product-key" policy="required"/>
+ <param name="user-realname" policy="required"/>
+ <param name="driver-signing" policy="optional"/>
+ </config>
+ <injection-method>floppy</injection-method>
+ <template>
+ <xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:output method="text"/>
+
+ <xsl:template match="/install-script-config">
+;SetupMgrTag
+[Data]
+ AutoPartition=1
+ MsDosInitiated=No
+ UnattendedInstall=Yes
+
+[Unattended]
+ UnattendMode=FullUnattended
+ OemSkipEula=Yes
+ OemPreinstall=No
+ TargetPath=\WINDOWS
+<xsl:if test="config/driver-signing = 'false'">
+ DriverSigningPolicy=Ignore
+</xsl:if>
+ Repartition=Yes
+ WaitForReboot=No
+ UnattendSwitch=Yes
+
+[GuiUnattended]
+ AdminPassword=<xsl:value-of select="config/admin-password"/>
+ EncryptedAdminPassword=NO
+ OEMSkipRegional=1
+ TimeZone=35
+ OemSkipWelcome=1
+
+[UserData]
+ ProductKey=<xsl:value-of select="config/reg-product-key"/>
+ FullName="<xsl:value-of select="config/user-realname"/>"
+ ComputerName=
+
+[Display]
+ BitsPerPel=16
+ Xresolution=640
+ YResolution=480
+ Vrefresh=60
+
+[RegionalSettings]
+ LanguageGroup=1
+
+[Identification]
+ JoinWorkgroup=WORKGROUP
+
+[Networking]
+ InstallDefaultComponents=Yes
+ </xsl:template>
+ </xsl:stylesheet>
+ </template>
+ </install-script>
+</libosinfo>
diff --git a/data/install-scripts/windows-unattend.xml b/data/install-scripts/windows/windows-unattend-desktop.xml.in
similarity index 55%
rename from data/install-scripts/windows-unattend.xml
rename to data/install-scripts/windows/windows-unattend-desktop.xml.in
index d514ee5..e31df1f 100644
--- a/data/install-scripts/windows-unattend.xml
+++ b/data/install-scripts/windows/windows-unattend-desktop.xml.in
@@ -1,228 +1,4 @@
<libosinfo version="0.0.1">
- <install-script id='http://microsoft.com/windows/unattend/jeos'>
- <profile>jeos</profile>
- <path-format>dos</path-format>
- <product-key-format>$$$$$-$$$$$-$$$$$-$$$$$-$$$$$</product-key-format>
- <expected-filename>autounattend.xml</expected-filename>
- <can-pre-install-drivers/>
- <config>
- <param name="admin-password" policy="optional"/>
- <param name="hardware-arch" policy="optional"/>
- <param name="l10n-language" policy="optional" value-map="http://microsoft.com/win/8/l10n-language-reverse"/>
- <param name="user-login" policy="optional"/>
- <param name="user-password" policy="optional"/>
- <param name="user-realname" policy="optional"/>
- <param name="reg-product-key" policy="required"/>
- <param name="target-disk" policy="optional"/>
- <param name="pre-install-drivers-disk" policy="optional"/>
- <param name="pre-install-drivers-location" policy="optional"/>
- </config>
- <injection-method>floppy</injection-method>
- <template>
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:output method="xml" indent="yes"/>
-
- <xsl:template name="target-disk">
- <xsl:choose>
- <xsl:when test="config/target-disk != ''">
- <xsl:value-of select="config/target-disk"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>C</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="arch">
- <xsl:choose>
- <xsl:when test="count(config/hardware-arch) > 0">
- <xsl:value-of select="config/hardware-arch"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>x86</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="pre-install-drivers-disk">
- <xsl:choose>
- <xsl:when test="config/pre-install-drivers-disk != ''">
- <xsl:value-of select="config/pre-install-drivers-disk"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>A</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="pre-install-drivers-location">
- <xsl:choose>
- <xsl:when test="config/pre-install-drivers-location != ''">
- <xsl:value-of select="config/pre-install-drivers-location"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>\</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="ui-language">
- <xsl:choose>
- <xsl:when test="config/l10n-language = 'EN-GB'">
- <xsl:text>EN-US</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="config/l10n-language"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="/install-script-config">
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <component name="Microsoft-Windows-PnpCustomizationsWinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xsl:attribute name="processorArchitecture">
- <xsl:call-template name="arch"/>
- </xsl:attribute>
- <DriverPaths>
- <PathAndCredentials wcm:keyValue="1" wcm:action="add">
- <Path><xsl:call-template name="pre-install-drivers-disk"/>:<xsl:call-template name="pre-install-drivers-location"/></Path>
- </PathAndCredentials>
- </DriverPaths>
- </component>
- <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xsl:attribute name="processorArchitecture">
- <xsl:call-template name="arch"/>
- </xsl:attribute>
- <DiskConfiguration>
- <WillShowUI>OnError</WillShowUI>
- <Disk>
- <CreatePartitions>
- <CreatePartition>
- <Order>1</Order>
- <Size>1</Size>
- <Type>Primary</Type>
- </CreatePartition>
- </CreatePartitions>
- <DiskID>0</DiskID>
- <WillWipeDisk>true</WillWipeDisk>
- <ModifyPartitions>
- <ModifyPartition>
- <Active>true</Active>
- <Extend>true</Extend>
- <Format>NTFS</Format>
- <Label><xsl:call-template name="target-disk"/> drive</Label>
- <Letter><xsl:call-template name="target-disk"/></Letter>
- <Order>1</Order>
- <PartitionID>1</PartitionID>
- </ModifyPartition>
- </ModifyPartitions>
- </Disk>
- </DiskConfiguration>
- <ImageInstall>
- <OSImage>
- <InstallTo>
- <DiskID>0</DiskID>
- <PartitionID>1</PartitionID>
- </InstallTo>
- <WillShowUI>OnError</WillShowUI>
- </OSImage>
- </ImageInstall>
- <UserData>
- <AcceptEula>true</AcceptEula>
- <ProductKey>
- <Key><xsl:value-of select="config/reg-product-key"/></Key>
- </ProductKey>
- </UserData>
- </component>
- <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xsl:attribute name="processorArchitecture">
- <xsl:call-template name="arch"/>
- </xsl:attribute>
- <SetupUILanguage>
- <UILanguage><xsl:call-template name="ui-language"/></UILanguage>
- </SetupUILanguage>
- <SystemLocale><xsl:value-of select="config/l10n-language"/></SystemLocale>
- <UILanguage><xsl:call-template name="ui-language"/></UILanguage>
- <UserLocale><xsl:value-of select="config/l10n-language"/></UserLocale>
- </component>
- </settings>
- <settings pass="oobeSystem">
- <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xsl:attribute name="processorArchitecture">
- <xsl:call-template name="arch"/>
- </xsl:attribute>
- <UserAccounts>
- <AdministratorPassword>
- <Value><xsl:value-of select="config/admin-password"/></Value>
- <PlainText>true</PlainText>
- </AdministratorPassword>
-
- <xsl:if test="count(config/user-login) > 0">
- <LocalAccounts>
- <LocalAccount wcm:action="add">
- <Password>
- <Value><xsl:value-of select="config/user-password"/></Value>
- <PlainText>false</PlainText>
- </Password>
- <Name><xsl:value-of select="config/user-login"/></Name>
- <DisplayName><xsl:value-of select="config/user-realname"/></DisplayName>
- <Group>users</Group>
- </LocalAccount>
- </LocalAccounts>
- </xsl:if>
- </UserAccounts>
- <xsl:if test="count(config/user-login) > 0">
- <AutoLogon>
- <Password>
- <Value><xsl:value-of select="config/user-password"/></Value>
- <PlainText>true</PlainText>
- </Password>
- <Enabled>true</Enabled>
- <LogonCount>5</LogonCount>
- <Username><xsl:value-of select="config/user-login"/></Username>
- </AutoLogon>
- </xsl:if>
- <OOBE>
- <NetworkLocation>Work</NetworkLocation>
- <HideEULAPage>true</HideEULAPage>
- <ProtectYourPC>3</ProtectYourPC>
- <SkipMachineOOBE>true</SkipMachineOOBE>
- <SkipUserOOBE>true</SkipUserOOBE>
- </OOBE>
- <FirstLogonCommands>
- <SynchronousCommand wcm:action="add">
- <Order>1</Order>
- <Description>Turn Off Network Selection pop-up</Description>
- <CommandLine>cmd /c reg add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine>
- </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
- <Order>2</Order>
- <Description>Shutting down Windows</Description>
- <CommandLine>cmd /C shutdown /s /t 0</CommandLine>
- </SynchronousCommand>
- </FirstLogonCommands>
- </component>
- </settings>
- <settings pass="specialize">
- <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xsl:attribute name="processorArchitecture">
- <xsl:call-template name="arch"/>
- </xsl:attribute>
-
- <ProductKey><xsl:value-of select="config/reg-product-key"/></ProductKey>
- </component>
- </settings>
- </unattend>
- </xsl:template>
- </xsl:stylesheet>
- </template>
- </install-script>
-
- <!-- DESKTOP PROFILE -->
<install-script id='http://microsoft.com/windows/unattend/desktop'>
<profile>desktop</profile>
<path-format>dos</path-format>
diff --git a/data/install-scripts/windows/windows-unattend-jeos.xml.in b/data/install-scripts/windows/windows-unattend-jeos.xml.in
new file mode 100644
index 0000000..749f553
--- /dev/null
+++ b/data/install-scripts/windows/windows-unattend-jeos.xml.in
@@ -0,0 +1,224 @@
+<libosinfo version="0.0.1">
+ <install-script id='http://microsoft.com/windows/unattend/jeos'>
+ <profile>jeos</profile>
+ <path-format>dos</path-format>
+ <product-key-format>$$$$$-$$$$$-$$$$$-$$$$$-$$$$$</product-key-format>
+ <expected-filename>autounattend.xml</expected-filename>
+ <can-pre-install-drivers/>
+ <config>
+ <param name="admin-password" policy="optional"/>
+ <param name="hardware-arch" policy="optional"/>
+ <param name="l10n-language" policy="optional" value-map="http://microsoft.com/win/8/l10n-language-reverse"/>
+ <param name="user-login" policy="optional"/>
+ <param name="user-password" policy="optional"/>
+ <param name="user-realname" policy="optional"/>
+ <param name="reg-product-key" policy="required"/>
+ <param name="target-disk" policy="optional"/>
+ <param name="pre-install-drivers-disk" policy="optional"/>
+ <param name="pre-install-drivers-location" policy="optional"/>
+ </config>
+ <injection-method>floppy</injection-method>
+ <template>
+ <xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template name="target-disk">
+ <xsl:choose>
+ <xsl:when test="config/target-disk != ''">
+ <xsl:value-of select="config/target-disk"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>C</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="arch">
+ <xsl:choose>
+ <xsl:when test="count(config/hardware-arch) > 0">
+ <xsl:value-of select="config/hardware-arch"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>x86</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="pre-install-drivers-disk">
+ <xsl:choose>
+ <xsl:when test="config/pre-install-drivers-disk != ''">
+ <xsl:value-of select="config/pre-install-drivers-disk"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>A</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="pre-install-drivers-location">
+ <xsl:choose>
+ <xsl:when test="config/pre-install-drivers-location != ''">
+ <xsl:value-of select="config/pre-install-drivers-location"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>\</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="ui-language">
+ <xsl:choose>
+ <xsl:when test="config/l10n-language = 'EN-GB'">
+ <xsl:text>EN-US</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="config/l10n-language"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="/install-script-config">
+ <unattend xmlns="urn:schemas-microsoft-com:unattend">
+ <settings pass="windowsPE">
+ <component name="Microsoft-Windows-PnpCustomizationsWinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <xsl:attribute name="processorArchitecture">
+ <xsl:call-template name="arch"/>
+ </xsl:attribute>
+ <DriverPaths>
+ <PathAndCredentials wcm:keyValue="1" wcm:action="add">
+ <Path><xsl:call-template name="pre-install-drivers-disk"/>:<xsl:call-template name="pre-install-drivers-location"/></Path>
+ </PathAndCredentials>
+ </DriverPaths>
+ </component>
+ <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <xsl:attribute name="processorArchitecture">
+ <xsl:call-template name="arch"/>
+ </xsl:attribute>
+ <DiskConfiguration>
+ <WillShowUI>OnError</WillShowUI>
+ <Disk>
+ <CreatePartitions>
+ <CreatePartition>
+ <Order>1</Order>
+ <Size>1</Size>
+ <Type>Primary</Type>
+ </CreatePartition>
+ </CreatePartitions>
+ <DiskID>0</DiskID>
+ <WillWipeDisk>true</WillWipeDisk>
+ <ModifyPartitions>
+ <ModifyPartition>
+ <Active>true</Active>
+ <Extend>true</Extend>
+ <Format>NTFS</Format>
+ <Label><xsl:call-template name="target-disk"/> drive</Label>
+ <Letter><xsl:call-template name="target-disk"/></Letter>
+ <Order>1</Order>
+ <PartitionID>1</PartitionID>
+ </ModifyPartition>
+ </ModifyPartitions>
+ </Disk>
+ </DiskConfiguration>
+ <ImageInstall>
+ <OSImage>
+ <InstallTo>
+ <DiskID>0</DiskID>
+ <PartitionID>1</PartitionID>
+ </InstallTo>
+ <WillShowUI>OnError</WillShowUI>
+ </OSImage>
+ </ImageInstall>
+ <UserData>
+ <AcceptEula>true</AcceptEula>
+ <ProductKey>
+ <Key><xsl:value-of select="config/reg-product-key"/></Key>
+ </ProductKey>
+ </UserData>
+ </component>
+ <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <xsl:attribute name="processorArchitecture">
+ <xsl:call-template name="arch"/>
+ </xsl:attribute>
+ <SetupUILanguage>
+ <UILanguage><xsl:call-template name="ui-language"/></UILanguage>
+ </SetupUILanguage>
+ <SystemLocale><xsl:value-of select="config/l10n-language"/></SystemLocale>
+ <UILanguage><xsl:call-template name="ui-language"/></UILanguage>
+ <UserLocale><xsl:value-of select="config/l10n-language"/></UserLocale>
+ </component>
+ </settings>
+ <settings pass="oobeSystem">
+ <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <xsl:attribute name="processorArchitecture">
+ <xsl:call-template name="arch"/>
+ </xsl:attribute>
+ <UserAccounts>
+ <AdministratorPassword>
+ <Value><xsl:value-of select="config/admin-password"/></Value>
+ <PlainText>true</PlainText>
+ </AdministratorPassword>
+
+ <xsl:if test="count(config/user-login) > 0">
+ <LocalAccounts>
+ <LocalAccount wcm:action="add">
+ <Password>
+ <Value><xsl:value-of select="config/user-password"/></Value>
+ <PlainText>false</PlainText>
+ </Password>
+ <Name><xsl:value-of select="config/user-login"/></Name>
+ <DisplayName><xsl:value-of select="config/user-realname"/></DisplayName>
+ <Group>users</Group>
+ </LocalAccount>
+ </LocalAccounts>
+ </xsl:if>
+ </UserAccounts>
+ <xsl:if test="count(config/user-login) > 0">
+ <AutoLogon>
+ <Password>
+ <Value><xsl:value-of select="config/user-password"/></Value>
+ <PlainText>true</PlainText>
+ </Password>
+ <Enabled>true</Enabled>
+ <LogonCount>5</LogonCount>
+ <Username><xsl:value-of select="config/user-login"/></Username>
+ </AutoLogon>
+ </xsl:if>
+ <OOBE>
+ <NetworkLocation>Work</NetworkLocation>
+ <HideEULAPage>true</HideEULAPage>
+ <ProtectYourPC>3</ProtectYourPC>
+ <SkipMachineOOBE>true</SkipMachineOOBE>
+ <SkipUserOOBE>true</SkipUserOOBE>
+ </OOBE>
+ <FirstLogonCommands>
+ <SynchronousCommand wcm:action="add">
+ <Order>1</Order>
+ <Description>Turn Off Network Selection pop-up</Description>
+ <CommandLine>cmd /c reg add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff"</CommandLine>
+ </SynchronousCommand>
+ <SynchronousCommand wcm:action="add">
+ <Order>2</Order>
+ <Description>Shutting down Windows</Description>
+ <CommandLine>cmd /C shutdown /s /t 0</CommandLine>
+ </SynchronousCommand>
+ </FirstLogonCommands>
+ </component>
+ </settings>
+ <settings pass="specialize">
+ <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <xsl:attribute name="processorArchitecture">
+ <xsl:call-template name="arch"/>
+ </xsl:attribute>
+
+ <ProductKey><xsl:value-of select="config/reg-product-key"/></ProductKey>
+ </component>
+ </settings>
+ </unattend>
+ </xsl:template>
+ </xsl:stylesheet>
+ </template>
+ </install-script>
+</libosinfo>
--
2.4.3
More information about the Libosinfo
mailing list