[DUG] How can I tell what version of MSOffice is installed?
Jason Coley
Jason at software-solutions.co.nz
Fri Sep 8 09:57:43 NZST 2006
This kind of works, the only problem is if they install say 2007 trial
then uninstall it the keys are left behind. This of course wouldn't
happen too often.
Best to check the path for the latest version, then ensure the .exe's
exist.
I use the registry entry:
HKEY_CLASSES_ROOT\Word.Document\CurVer
Jason
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Nick Fauchelle
Sent: Friday, 8 September 2006 9:50 a.m.
To: Jason
Subject: Re: [DUG] How can I tell what version of MSOffice is installed?
Hi Steve,
I'd look in the registry.
I have Office 2000 on my machine and I have
HCLM\Software\Microsoft\Office\9.0\Word\ and \Excel my work mate has
2003 and HCLM\Software\Microsoft\Office\11.0\Word\ and \Excel so I think
checking the registry is fine, you can also use that to get the install
paths if you needed them
Nick
Steven Knight wrote:
> Hi all,
> We are writing systems that talk to MS Word and Excel.
> Using Delphi 6 and in .net
> Currently they target MS Office 2000. It looks like Office 2003 is
> sufficiently different that we will need to cope with both.
>
> Can anyone suggest a way of finding out if a particular version of
> Office is installed?
>
> Ta
>
> Steven Knight
> Software Developer
> Environment Canterbury
> PO Box 345, Christchurch
> phone: 00 64 3 365-3828 x 7129
> email: steven.knight at ecan.govt.nz
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.ecan.govt.nz
> **********************************************************************
>
>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
More information about the Delphi
mailing list