[Libosinfo] [PATCH 1/2] win7: Use product key in desktop profile as well

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Thu Dec 27 20:23:09 UTC 2012


From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>

Although optional, product key should be used when specifiedy by app.

Before anyone asks, yes I have tested that win7 accepts empty product
key node in installer script XML.
---
 data/install-scripts/windows-unattend.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/data/install-scripts/windows-unattend.xml b/data/install-scripts/windows-unattend.xml
index de84b65..d8c7563 100644
--- a/data/install-scripts/windows-unattend.xml
+++ b/data/install-scripts/windows-unattend.xml
@@ -460,6 +460,15 @@
          </xsl:if>
         </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>
-- 
1.8.0.2




More information about the Libosinfo mailing list