[Libosinfo] [PATCH v3 07/12] win8.1, installer: Tune for the Volume License variants

Fabiano Fidêncio fidencio at redhat.com
Wed Apr 20 15:55:35 UTC 2016


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

An error occurs when trying to express install Windows 8.1 Professional
(Volume License) variant, 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..7e56d84 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, '-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