#76713 - 2003-09-24 06:50 PM
Re: Office 2000 Service packs, etc...
|
jpg35
Fresh Scripter
Registered: 2003-08-06
Posts: 27
Loc: SoCal
|
quote: Perhaps this will work even better...
--------------------------------------------------------------------------------
$officeindex = 0 $officekey = ENUMKEY("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\", $officeindex) While @Error=0 and $office=0 $product = ReadValue ("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\$officekey","DisplayName") If InStr ($product, "Microsoft Office") $uninstallguid = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\$officekey" $office = $product Endif $officeindex = $officeindex + 1 $officekey = ENUMKEY("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\", $officeindex) Loop
$productsindex = 0 $productskey = ENUMKEY("HKLM\Software\Classes\Installer\Products\", $productsindex) While @Error=0 and $MSOProducts=0 $product = ReadValue ("HKLM\Software\Classes\Installer\Products\$productskey","ProductName") If InStr ($product, "Microsoft Office") $MSOProducts = "HKLM\Software\Classes\Installer\Products\$productskey" Endif $productsindex = $productsindex + 1 $productskey = ENUMKEY("HKLM\Software\Classes\Installer\Products\", $productsindex) Loop
? $office ? $uninstallguid ? $MSOProducts get $Perhaps this will work even better...
--------------------------------------------------------------------------------
$officeindex = 0 $officekey = ENUMKEY("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\", $officeindex) While @Error=0 and $office=0 $product = ReadValue ("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\$officekey","DisplayName") If InStr ($product, "Microsoft Office") $uninstallguid = "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\$officekey" $office = $product Endif $officeindex = $officeindex + 1 $officekey = ENUMKEY("HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\", $officeindex) Loop
$productsindex = 0 $productskey = ENUMKEY("HKLM\Software\Classes\Installer\Products\", $productsindex) While @Error=0 and $MSOProducts=0 $product = ReadValue ("HKLM\Software\Classes\Installer\Products\$productskey","ProductName") If InStr ($product, "Microsoft Office") $MSOProducts = "HKLM\Software\Classes\Installer\Products\$productskey" Endif $productsindex = $productsindex + 1 $productskey = ENUMKEY("HKLM\Software\Classes\Installer\Products\", $productsindex) Loop
? $office ? $uninstallguid ? $MSOProducts get $
This script works great for 2k, but is there anyway to determine what SP Level for Office XP is?
|
Top
|
|
|
|
Office 2000 Service packs, etc...
|
Radimus
|
2003-09-16 08:48 PM
|
Re: Office 2000 Service packs, etc...
|
Sealeopard
|
2003-09-17 08:38 PM
|
Re: Office 2000 Service packs, etc...
|
Radimus
|
2003-09-17 09:35 PM
|
Re: Office 2000 Service packs, etc...
|
Sealeopard
|
2003-09-17 11:20 PM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-23 05:04 PM
|
Re: Office 2000 Service packs, etc...
|
Radimus
|
2003-09-23 05:39 PM
|
Re: Office 2000 Service packs, etc...
|
Sealeopard
|
2003-09-23 05:48 PM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-23 08:38 PM
|
Re: Office 2000 Service packs, etc...
|
Radimus
|
2003-09-23 09:07 PM
|
Re: Office 2000 Service packs, etc...
|
Sealeopard
|
2003-09-23 09:13 PM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-23 09:38 PM
|
Re: Office 2000 Service packs, etc...
|
NTDOC
|
2003-09-24 12:03 AM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-24 12:52 AM
|
Re: Office 2000 Service packs, etc...
|
NTDOC
|
2003-09-24 02:08 AM
|
Re: Office 2000 Service packs, etc...
|
jpg35
|
2003-09-24 06:50 PM
|
Re: Office 2000 Service packs, etc...
|
masken
|
2003-09-25 09:11 AM
|
Re: Office 2000 Service packs, etc...
|
Radimus
|
2003-09-26 12:16 AM
|
Re: Office 2000 Service packs, etc...
|
masken
|
2003-09-25 02:31 PM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-26 12:08 AM
|
Re: Office 2000 Service packs, etc...
|
Les
|
2003-09-26 12:29 AM
|
Re: Office 2000 Service packs, etc...
|
Lonkero
|
2003-09-26 02:04 AM
|
Re: Office 2000 Service packs, etc...
|
NTDOC
|
2003-09-26 06:38 AM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-26 03:49 PM
|
Re: Office 2000 Service packs, etc...
|
Sealeopard
|
2003-09-26 04:04 PM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-26 05:14 PM
|
Re: Office 2000 Service packs, etc...
|
masken
|
2003-09-26 05:50 PM
|
Re: Office 2000 Service packs, etc...
|
NTDOC
|
2003-09-26 10:10 PM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-26 11:03 PM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-26 11:09 PM
|
Re: Office 2000 Service packs, etc...
|
Radimus
|
2003-09-27 12:20 AM
|
Re: Office 2000 Service packs, etc...
|
ShaneEP
|
2003-09-29 04:27 PM
|
Re: Office 2000 Service packs, etc...
|
Sealeopard
|
2003-09-29 04:37 PM
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 388 anonymous users online.
|
|
|