[Libosinfo] [PATCH v2 07/12] win8.1: Tune the install-script for the professional-vl variant

Fabiano Fidêncio fidencio at redhat.com
Wed Apr 20 00:21:25 UTC 2016


From: Fabiano Fidêncio <fabiano at fidencio.org>

An error occurs when trying to express install Windows 8.1 Professional
VL variants, as they don't need a ProductKey during the WindowsPE phase
of the setup.

Signed-off-by: Fabiano Fidêncio <fabiano at fidencio.org>
---
 data/install-script/microsoft.com/windows-unattend-desktop.xml.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/data/install-script/microsoft.com/windows-unattend-desktop.xml.in b/data/install-script/microsoft.com/windows-unattend-desktop.xml.in
index e31df1f..5496a4c 100644
--- a/data/install-script/microsoft.com/windows-unattend-desktop.xml.in
+++ b/data/install-script/microsoft.com/windows-unattend-desktop.xml.in
@@ -149,9 +149,11 @@
          </ImageInstall>
          <UserData>
           <AcceptEula>true</AcceptEula>
+          <xsl:if test="count(media/variant) = 0 or not(contains(media/variant, 'professional-vl'))">
            <ProductKey>
             <Key><xsl:value-of select="config/reg-product-key"/></Key>
            </ProductKey>
+          </xsl:if>
          </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">
@@ -249,7 +251,6 @@
          <xsl:attribute name="processorArchitecture">
           <xsl:call-template name="arch"/>
          </xsl:attribute>
-
          <ProductKey><xsl:value-of select="config/reg-product-key"/></ProductKey>
         </component>
        </settings>
-- 
2.7.3




More information about the Libosinfo mailing list