PDA

View Full Version : How to check for Outlook 32/64 bit?



NewsArchive
03-03-2015, 02:46 AM
Is there any easy way for the installer to check if Outlook 32 or 64 bit is
the default Email client on the machine prior to installing please?

If so I then want to issue a message and abandon the install.

I suspect it MAY be possible to have both installed but only one to be the
DEFAULT but not sure if that is possible or if only one can be installed at
any one time. However basically I need to check what the DEFAULT mail client
is.

Thanks

John

NewsArchive
03-03-2015, 03:00 AM
Hmmm - HKCU/Software/Clients/Mail shows Outlook as the Default mail client.
That is per User.

Then checking HKLM there is an entry in the 32 and 64 bit areas. So that is
from where I have installed Office 32 and 64 bit. But I cannot find any way
to see which is the current default as in each area (32 and 64)
HKLM/Software/Clients/Mail equally show Outlook as the default client.

Darn it!

John

NewsArchive
03-03-2015, 03:00 AM
John Fligg,

> Hmmm - HKCU/Software/Clients/Mail shows Outlook as the Default mail client.
> That is per User.

Mine too but it's NOT my default mail client so it lies!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"

NewsArchive
03-03-2015, 03:01 AM
Found it for anyone interested.

HKLM/Software/Microsoft/Office/15.0/Outlook - The key BITNESS contains the
32/64 setting. Mine is set to x64

I believe 15.0 (Office 10) was the first 64 bit version but I could be
wrong.

So am going to check for 14.0, 15.0 etc. to see what exists but will check
some more. But anyway I think 15.0 is the one I personally am looking for.

HTH

John

NewsArchive
03-03-2015, 03:01 AM
In my application, I do this:

RegKeyName cstring('Outlook.Application\CurVer')

Code

ProgID = GetReg(REG_CLASSES_ROOT,RegKeyName)
If NOT Clip(ProgID)
Return FALSE
end
!Then I do other stuff here to make sure the version number is high
enough.
Return TRUE

Perhaps you could do something similar in SB

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-03-2015, 03:02 AM
Thanks Jeff but that still doesn't tell you if it is 32 or 64.

You have to check that Bitness key in the registry. Also it will be in the
WOW64 node.

Got it working now.

Thx.

John

NewsArchive
03-03-2015, 03:03 AM
Hi John,

> Is there any easy way for the installer to check if Outlook 32 or 64 bit
> is the default Email client on the machine prior to installing please?

You can check the "mailto" class in HKEY_CLASSES_ROOT:

HKEY_CLASSES_ROOT\mailto\shell\open\command

For example, mine includes the default value of:

"C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -osint
-compose "%1"

Best regards,

--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
03-03-2015, 03:03 AM
That's good for checking the default email client, but you still might
want to know if Outlook is installed, whatever the default.

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
03-03-2015, 03:04 AM
Hi Jeff,

> That's good for checking the default email client, but you still might
> want to know if Outlook is installed, whatever the default.

Sure, but that wasn't the question from the OP, it was about finding if
Outlook was the default mail client:)

Best regards,


--
Arnor Baldvinsson - Icetips Alta LLC

NewsArchive
03-04-2015, 02:15 AM
Thanks Arnor - as an aside I had looked at that but found it unreliable. In
my machine it says:

"C:\PROGRA~1\MICROS~1\Office15\OUTLOOK.EXE" -c IPM.Note /mailto "%1"

So that does not indicate 32 or 64 still as Program Files has been shortened
so there is no way of telling.

But being as SB has chosen the WOW64 node it has found the 64 bit entry
despite there being 2 entries, one for the previously installed 32 bit
version and the 64 bit version.

John

NewsArchive
03-04-2015, 02:15 AM
Hi John,

> So that does not indicate 32 or 64 still as Program Files has been
> shortened so there is no way of telling.

It has nothing to do with the bitness, but it will tell you what is the
default email application in the registry. Just one piece of the puzzle :)

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC