Activating Office 2003 OEM during Postinstall
I'm sure that most out there aren't running OEM (or Office 2003), but for anyone who might be in the same boat, here's how to reset/remove the EULA and activation (for testing) and an AutoIT script for agreeing to the EULA, activating Office 2003 and disabling Customer Feedback. I had to dig for a while to find the reset stuff, so hopefully will save someone else some time.
John
__________________________________________
Reset Office 2003 EULA & Activation
__________________________________________
Used for testing Office 2003 activation script without having to redo entire scripted install.
_______________________
Remove Office 2003 Activation
_______________________
Remove/delete files from here:
C:\Documents and Settings\All Users\Application Data\Microsoft\OFFICE\DATA
OPA11.BAK
opa11.dat
_______________________
Remove EULA Acceptance
_______________________
Delete long ###### folder under here
HKLM\SOFTWARE\Microsoft\Office\11.0\Registration\
_______________________
Open MS Office app (i.e. Excel), re-enter product key, then decline EULA to close.
Run activateo2k3.exe AutoIT script and tweak as needed.
__________________________________________
Code for AutoIT script (compiled to activateo2k3.exe and run as a postinstall task during scripted install)
__________________________________________
; open Excel
Run("C:\Program Files\Microsoft Office\OFFICE11\excel.exe")
; activate Office 2003 via Internet
WinWaitActive("Microsoft Office End-User License Agreement")
Send("!a")
WinWaitActive("Microsoft Office 2003 Activation Wizard")
Send("!n")
$Count = 0
While $Count < 100
$Count += 1
Sleep(100)
WEnd
Send("!c")
WinWaitActive("Microsoft Excel - Book1")
Send("!h")
Send("{DOWN 4}")
Send("{ENTER}")
; disable Customer Feedback
WinWaitActive("Service Options")
Send("!n")
Send("{ENTER}")
;close Excel
WinWaitActive("Microsoft Excel - Book1")
WinClose("Microsoft Excel - Book1")
John
__________________________________________
Reset Office 2003 EULA & Activation
__________________________________________
Used for testing Office 2003 activation script without having to redo entire scripted install.
_______________________
Remove Office 2003 Activation
_______________________
Remove/delete files from here:
C:\Documents and Settings\All Users\Application Data\Microsoft\OFFICE\DATA
OPA11.BAK
opa11.dat
_______________________
Remove EULA Acceptance
_______________________
Delete long ###### folder under here
HKLM\SOFTWARE\Microsoft\Office\11.0\Registration\
_______________________
Open MS Office app (i.e. Excel), re-enter product key, then decline EULA to close.
Run activateo2k3.exe AutoIT script and tweak as needed.
__________________________________________
Code for AutoIT script (compiled to activateo2k3.exe and run as a postinstall task during scripted install)
__________________________________________
; open Excel
Run("C:\Program Files\Microsoft Office\OFFICE11\excel.exe")
; activate Office 2003 via Internet
WinWaitActive("Microsoft Office End-User License Agreement")
Send("!a")
WinWaitActive("Microsoft Office 2003 Activation Wizard")
Send("!n")
$Count = 0
While $Count < 100
$Count += 1
Sleep(100)
WEnd
Send("!c")
WinWaitActive("Microsoft Excel - Book1")
Send("!h")
Send("{DOWN 4}")
Send("{ENTER}")
; disable Customer Feedback
WinWaitActive("Service Options")
Send("!n")
Send("{ENTER}")
;close Excel
WinWaitActive("Microsoft Excel - Book1")
WinClose("Microsoft Excel - Book1")
0 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.