diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2012-12-05 03:53:06 +0200 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2012-12-07 03:50:03 +0200 |
commit | 2152569983a0593a06efde8d0a90a7b4efc82db8 (patch) | |
tree | f34f53a15d044f745b73e3e6d8dc779e5af5692b | |
parent | 951a02e0430b65f48dbc0e07fc8151dfa90c6382 (diff) |
win7,installer: Setup pre-installation drivers
-rw-r--r-- | data/install-scripts/windows-unattend.xml | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/data/install-scripts/windows-unattend.xml b/data/install-scripts/windows-unattend.xml index 2cf2235..de84b65 100644 --- a/data/install-scripts/windows-unattend.xml +++ b/data/install-scripts/windows-unattend.xml @@ -14,6 +14,8 @@ <param name="user-realname" policy="optional"/> <param name="reg-product-key" policy="optional"/> <param name="target-disk" policy="optional"/> + <param name="pre-install-drivers-disk" policy="optional"/> + <param name="pre-install-drivers-location" policy="optional"/> </config> <template> <xsl:stylesheet @@ -61,9 +63,41 @@ </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 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"/> @@ -213,6 +247,8 @@ <param name="hostname" policy="required"/> <param name="reg-product-key" policy="optional"/> <param name="target-disk" policy="optional"/> + <param name="pre-install-drivers-disk" policy="optional"/> + <param name="pre-install-drivers-location" policy="optional"/> </config> <template> <xsl:stylesheet @@ -263,9 +299,41 @@ </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 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"/> |