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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|