[Libosinfo] [PATCHv2] installer,win7: Require product key

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Thu Feb 28 12:49:32 UTC 2013


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

It turns out that windows installer media can have multiple products and
product key is a way for windows to choose which product to install.
Since we already require product key for windows XP and it is required
by Windows 8 too (for which we'll use this same script), its not too bad
to start requiring this for Windows 7 as well.

Also, the product key will be used to automatically activate the Windows
copy during unattended installation rather than requiring the user to do
it him/herself at most 30 days after installation.

Moreover, the following patch that removes /IMAGE/INDEX, will break
unattended install without a product key in place.

Co-author: Christophe Fergeau <cfergeau at redhat.com>
---
 data/install-scripts/windows-unattend.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/install-scripts/windows-unattend.xml b/data/install-scripts/windows-unattend.xml
index d4e1b98..743d918 100644
--- a/data/install-scripts/windows-unattend.xml
+++ b/data/install-scripts/windows-unattend.xml
@@ -12,7 +12,7 @@
       <param name="user-login" policy="optional"/>
       <param name="user-password" policy="optional"/>
       <param name="user-realname" policy="optional"/>
-      <param name="reg-product-key" 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"/>
@@ -228,7 +228,7 @@
     <param name="user-password" policy="optional"/>
     <param name="user-realname" policy="optional"/>
     <param name="hostname" policy="required"/>
-    <param name="reg-product-key" 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"/>
-- 
1.8.1.2




More information about the Libosinfo mailing list