A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Office » Setup, Installing & Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Programmatically detecting if Office 2007 is activated



 
 
Thread Tools Display Modes
  #1  
Old July 20th, 2009, 05:39 AM posted to microsoft.public.office.setup
Karen
external usenet poster
 
Posts: 1,223
Default Programmatically detecting if Office 2007 is activated

Hi,

I am in charge of writing an application to configure a large number of new
Vista PCs. This application will help the user go the various steps that we
require to be performed to initialise the PC. Among these tasks that we
require is that their version of Microsoft Office 2007 be activated before
the setup is complete.
Can anyone tell me:
How I can programmatically tell if office has been activated or not? and
How I can programmatically launch the activation wizard?

Thanks for any help

Karen

  #2  
Old July 25th, 2009, 01:00 AM posted to microsoft.public.office.setup
TXGuy
external usenet poster
 
Posts: 97
Default Programmatically detecting if Office 2007 is activated

Hey Karen,

To verify whether or not Office 2007 is activated, you would check for the
presence of OPA12.DAT - the file is created at the time of activation if it's
a Retail product and on first application launch if it's an Enterprise
product. In Windows Vista, this file would be located in
%programdata%\microsoft\office\data

Unfortunately there is no way to programmatically run the activation wizard
directly - you can only access it from within the Office applications
Office button Options Resources

--
TXGuy [MSFT]


"Karen" wrote:

Hi,

I am in charge of writing an application to configure a large number of new
Vista PCs. This application will help the user go the various steps that we
require to be performed to initialise the PC. Among these tasks that we
require is that their version of Microsoft Office 2007 be activated before
the setup is complete.
Can anyone tell me:
How I can programmatically tell if office has been activated or not? and
How I can programmatically launch the activation wizard?

Thanks for any help

Karen

  #3  
Old July 27th, 2009, 06:34 AM posted to microsoft.public.office.setup
Karen
external usenet poster
 
Posts: 1,223
Default Programmatically detecting if Office 2007 is activated


Thanks TXGuy, but I am pretty sure that method wont work.

On a test machine, I have a retail version which has never been activated,
and that file is there.

Karen


"TXGuy" wrote:

Hey Karen,

To verify whether or not Office 2007 is activated, you would check for the
presence of OPA12.DAT - the file is created at the time of activation if it's
a Retail product and on first application launch if it's an Enterprise
product. In Windows Vista, this file would be located in
%programdata%\microsoft\office\data

Unfortunately there is no way to programmatically run the activation wizard
directly - you can only access it from within the Office applications
Office button Options Resources

--
TXGuy [MSFT]


"Karen" wrote:

Hi,

I am in charge of writing an application to configure a large number of new
Vista PCs. This application will help the user go the various steps that we
require to be performed to initialise the PC. Among these tasks that we
require is that their version of Microsoft Office 2007 be activated before
the setup is complete.
Can anyone tell me:
How I can programmatically tell if office has been activated or not? and
How I can programmatically launch the activation wizard?

Thanks for any help

Karen

  #4  
Old July 27th, 2009, 03:12 PM posted to microsoft.public.office.setup
TXGuy
external usenet poster
 
Posts: 97
Default Programmatically detecting if Office 2007 is activated

OK, well I will relay that to my colleague with whom I discussed this.
Thanks for the update.

--
TXGuy [MSFT]


"Karen" wrote:


Thanks TXGuy, but I am pretty sure that method wont work.

On a test machine, I have a retail version which has never been activated,
and that file is there.

Karen


"TXGuy" wrote:

Hey Karen,

To verify whether or not Office 2007 is activated, you would check for the
presence of OPA12.DAT - the file is created at the time of activation if it's
a Retail product and on first application launch if it's an Enterprise
product. In Windows Vista, this file would be located in
%programdata%\microsoft\office\data

Unfortunately there is no way to programmatically run the activation wizard
directly - you can only access it from within the Office applications
Office button Options Resources

--
TXGuy [MSFT]


"Karen" wrote:

Hi,

I am in charge of writing an application to configure a large number of new
Vista PCs. This application will help the user go the various steps that we
require to be performed to initialise the PC. Among these tasks that we
require is that their version of Microsoft Office 2007 be activated before
the setup is complete.
Can anyone tell me:
How I can programmatically tell if office has been activated or not? and
How I can programmatically launch the activation wizard?

Thanks for any help

Karen

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.