On Wed, 26 Apr 2006 09:57:02 -0700, Philo <(E-Mail Removed)> wrote:
>Doe anyone know how I can check if a key value in the registry is a specific
>value. I would like to check that the "Display name" is "Microsoft Office
>Standard Edition 2003"
> for
>HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90120409-6000-11D3-8CFE-0150048383C9}
>I know how to display it but I don't know how to check for this specific
>value.. I believe Visio is installed with the same key and I want to
>differentiate between the products for an office rollout project I am
>working on. Thanks!
In a batch, Using <B>REG.EXE</B>, built into Windows XP, Windows Server 2003, and later operating systems, or installed from the
Windows 2000 Support Tools:
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90120409-6000-11D3-8CFE-0150048383C9}
set DspName=Not Found
for /f "Tokens=2*" %%a in ('reg query %key% /V DisplayName^|Find "REG_SZ"') do (
set DspName=%%b
)
if /i "%DspName%" NEQ "Microsoft Office Standard Edition 2003" goto NotMSOSE2K3
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com