Changes

Jump to: navigation, search

MS Office 2010

417 bytes added, 21:10, 13 February 2012
KMS Activation: added description of KMS; cleanup
==KMS Activation==
 
"If your organization has 50 or more computers that need to activate Office 2010, we recommend that you use Key Management Service (KMS). KMS activates the computers, or KMS clients, from a KMS host server that contains a KMS host key that is supplied by Microsoft. This method replaces direct activation through Microsoft, and gives the local administrator control of the process." - http://technet.microsoft.com/en-us/library/ff603508.aspx#section1
To activate Office via KMS, a 'dependant' WPKG XML file is created.
<depends package-id="msoffice2010" />
<variable name="update" value="01" />
 
<check type="execute" path="%software%\office\msoffice10\maths_config\activation.bat" condition="exitcodeequalto" value="0" />
 
<check type="file" condition="exists" path="%PROGRAMFILES%\Microsoft Office\Office14\WORDIRM.XML.%update%" />
<!-- First make Make a backup of the a random file, WORDIRM.XML file. This is used for the <remove /> Remove part of this file as there isn't an uninstaller for the update , therefore we need to uninstall something to make the <check /> Check work so that we can then uninstall the main Maple program-->
<install cmd='%COMSPEC% /c copy /y "%PROGRAMFILES%\Microsoft Office\Office14\WORDIRM.XML" "%PROGRAMFILES%\Microsoft Office\Office14\WORDIRM.XML.%update%"' >
<exit code="any" />
</install>
 
<!-- Now do the KMS... -->
<install cmd='"%SYSTEMROOT%\system32\cscript" "%PROGRAMFILES%\Microsoft Office\Office14\OSPP.vbs" /sethst:kms.somewhere.over.the.rainbow' />
 
<install cmd='"%SYSTEMROOT%\system32\cscript" "%PROGRAMFILES%\Microsoft Office\Office14\OSPP.vbs" /act' />
<!--
To check Office is activated, run
cscript "c:\program files%PROGRAMFILES%\Microsoft Office\Office14\OSPP.vbs" /dstatus
-->
</source>
So that this package can be uninstalled, a random file in c:\program files%PROGRAMFILES%\Microsoft Office\office14\ is copied, a 'check' added and the <remove> line removes this copied file.
activation.bat =
577
edits

Navigation menu