PC Review


Reply
Thread Tools Rate Thread

ActiveSync...is it installed or not?

 
 
Glyn Meek
Guest
Posts: n/a
 
      5th Dec 2004
I posted something about this a few days ago, but we have been banging our
head against a brick wall for the last 5 days, almost none stop trying to
figure this out. We are trying to use RAPI to develop a routine to talk to
the Pocket PC. While it works perfectly when ActiveSync is up and connected,
and fails perfectly when ActiveSync is taken down or the device pulled from
the cradle, it gives us HUGE problems on PCs where ActiveSync is NOT EVEN
INSTALLED.

If one of our customers just happens to stumble into the PC<-> PPC interface
by accident, and they do not have ActiveSync installed on their PC, RAPI
does not like this AT ALL, and bad things happen. Now, we can fix this by
not allowing the user to even get to the RAPI failing stuff if we can detect
whether Activesync is even installed on the user's PC. If not, we don't go
to the RAPI stuff, and if it is, then RAPI handles everything
perfectly....So, our question is

"What is the DEFINITIVE way of determining if ActiveSync has been installed
on a PC?"

We have had two suggestions already...

1) Check for the presence of wcescomm.exe ( BUT HOW DO YOU KNOW WHICH
DIRECTORY IT IS IN, AS WE DON'T WANT TO SEARCH EVERY DIRECTORY!!)

and

2) Check in the registry to see. ( GREAT IDEA, BUT WHAT DO WE HAVE TO LOOK
FOR IN THE REGISTRY FOR ACTIVESYNC, AND IS THERE ANY WHITE PAPER OUT THERE
THAT TELLS US HOW TO DO THIS?)

or

is there some other method of determining if ActiveSync is loaded/installed
on a PC?

Regards and thanks

Glyn Meek


 
Reply With Quote
 
 
 
 
Darren Shaffer
Guest
Posts: n/a
 
      5th Dec 2004
Chapter 15 of Doug Boling's Programming Windows CE.Net explains how to use
the CeUtil DLL to access the ActiveSync registry entries. Under
HKEY_LOCAL_MACHINE
the ActiveSync root key is CESVC_ROOT_MACHINE. If that is missing,
ActiveSync
is not installed. CeSvcOpen is the key fuction from the CeUtil DLL that you
should
investigate in solving your issue.

-Darren Shaffer

"Glyn Meek" <(E-Mail Removed)> wrote in message
news:CPssd.1366$(E-Mail Removed)...
>I posted something about this a few days ago, but we have been banging our
>head against a brick wall for the last 5 days, almost none stop trying to
>figure this out. We are trying to use RAPI to develop a routine to talk to
>the Pocket PC. While it works perfectly when ActiveSync is up and
>connected, and fails perfectly when ActiveSync is taken down or the device
>pulled from the cradle, it gives us HUGE problems on PCs where ActiveSync
>is NOT EVEN INSTALLED.
>
> If one of our customers just happens to stumble into the PC<-> PPC
> interface by accident, and they do not have ActiveSync installed on their
> PC, RAPI does not like this AT ALL, and bad things happen. Now, we can
> fix this by not allowing the user to even get to the RAPI failing stuff if
> we can detect whether Activesync is even installed on the user's PC. If
> not, we don't go to the RAPI stuff, and if it is, then RAPI handles
> everything perfectly....So, our question is
>
> "What is the DEFINITIVE way of determining if ActiveSync has been
> installed on a PC?"
>
> We have had two suggestions already...
>
> 1) Check for the presence of wcescomm.exe ( BUT HOW DO YOU KNOW WHICH
> DIRECTORY IT IS IN, AS WE DON'T WANT TO SEARCH EVERY DIRECTORY!!)
>
> and
>
> 2) Check in the registry to see. ( GREAT IDEA, BUT WHAT DO WE HAVE TO LOOK
> FOR IN THE REGISTRY FOR ACTIVESYNC, AND IS THERE ANY WHITE PAPER OUT THERE
> THAT TELLS US HOW TO DO THIS?)
>
> or
>
> is there some other method of determining if ActiveSync is
> loaded/installed on a PC?
>
> Regards and thanks
>
> Glyn Meek
>



 
Reply With Quote
 
Jan Yeh_eMVP
Guest
Posts: n/a
 
      5th Dec 2004
Hi, Glyn

Sorry for mentioned wcescomm.exe without the usage... *^_^*
You don't have to check every possible directories in the PC.
Even ActiveSync was installed but if wcescomm.exe is not running,
that would cause the same problem, I believe...

Instead, you can check the process list in the PC.
You can search MSDN for Process.GetProcessesByName() to check
if wcescomm.exe is running.
If you find it, that means ActiveSync will be triggered when cradled.

This gonna work because I did before with VB6 code.
However, if you feel registry way is easier, that would be fine,
bacause wcescomm.exe seldom get shutdown...

--

Best Regards,

Jan Yeh
MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
http://blog.mvpcn.net/janyeh


"Darren Shaffer" <(E-Mail Removed)> 撰寫於郵件新聞:(E-Mail Removed)...
> Chapter 15 of Doug Boling's Programming Windows CE.Net explains how to use
> the CeUtil DLL to access the ActiveSync registry entries. Under
> HKEY_LOCAL_MACHINE
> the ActiveSync root key is CESVC_ROOT_MACHINE. If that is missing,
> ActiveSync
> is not installed. CeSvcOpen is the key fuction from the CeUtil DLL that
> you should
> investigate in solving your issue.
>
> -Darren Shaffer
>
> "Glyn Meek" <(E-Mail Removed)> wrote in message
> news:CPssd.1366$(E-Mail Removed)...
>>I posted something about this a few days ago, but we have been banging our
>>head against a brick wall for the last 5 days, almost none stop trying to
>>figure this out. We are trying to use RAPI to develop a routine to talk to
>>the Pocket PC. While it works perfectly when ActiveSync is up and
>>connected, and fails perfectly when ActiveSync is taken down or the device
>>pulled from the cradle, it gives us HUGE problems on PCs where ActiveSync
>>is NOT EVEN INSTALLED.
>>
>> If one of our customers just happens to stumble into the PC<-> PPC
>> interface by accident, and they do not have ActiveSync installed on their
>> PC, RAPI does not like this AT ALL, and bad things happen. Now, we can
>> fix this by not allowing the user to even get to the RAPI failing stuff
>> if we can detect whether Activesync is even installed on the user's PC.
>> If not, we don't go to the RAPI stuff, and if it is, then RAPI handles
>> everything perfectly....So, our question is
>>
>> "What is the DEFINITIVE way of determining if ActiveSync has been
>> installed on a PC?"
>>
>> We have had two suggestions already...
>>
>> 1) Check for the presence of wcescomm.exe ( BUT HOW DO YOU KNOW WHICH
>> DIRECTORY IT IS IN, AS WE DON'T WANT TO SEARCH EVERY DIRECTORY!!)
>>
>> and
>>
>> 2) Check in the registry to see. ( GREAT IDEA, BUT WHAT DO WE HAVE TO
>> LOOK FOR IN THE REGISTRY FOR ACTIVESYNC, AND IS THERE ANY WHITE PAPER OUT
>> THERE THAT TELLS US HOW TO DO THIS?)
>>
>> or
>>
>> is there some other method of determining if ActiveSync is
>> loaded/installed on a PC?
>>
>> Regards and thanks
>>
>> Glyn Meek
>>

>
>



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      6th Dec 2004
Well 20 seconds of looking in my registry found this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services
It has MajorVersion MinorVersion and InstalledDir

Seems that if those exist, then AS is installed, if not, it's not.

--
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here


"Glyn Meek" <(E-Mail Removed)> wrote in message
news:CPssd.1366$(E-Mail Removed)...
>I posted something about this a few days ago, but we have been banging our
>head against a brick wall for the last 5 days, almost none stop trying to
>figure this out. We are trying to use RAPI to develop a routine to talk to
>the Pocket PC. While it works perfectly when ActiveSync is up and
>connected, and fails perfectly when ActiveSync is taken down or the device
>pulled from the cradle, it gives us HUGE problems on PCs where ActiveSync
>is NOT EVEN INSTALLED.
>
> If one of our customers just happens to stumble into the PC<-> PPC
> interface by accident, and they do not have ActiveSync installed on their
> PC, RAPI does not like this AT ALL, and bad things happen. Now, we can
> fix this by not allowing the user to even get to the RAPI failing stuff if
> we can detect whether Activesync is even installed on the user's PC. If
> not, we don't go to the RAPI stuff, and if it is, then RAPI handles
> everything perfectly....So, our question is
>
> "What is the DEFINITIVE way of determining if ActiveSync has been
> installed on a PC?"
>
> We have had two suggestions already...
>
> 1) Check for the presence of wcescomm.exe ( BUT HOW DO YOU KNOW WHICH
> DIRECTORY IT IS IN, AS WE DON'T WANT TO SEARCH EVERY DIRECTORY!!)
>
> and
>
> 2) Check in the registry to see. ( GREAT IDEA, BUT WHAT DO WE HAVE TO LOOK
> FOR IN THE REGISTRY FOR ACTIVESYNC, AND IS THERE ANY WHITE PAPER OUT THERE
> THAT TELLS US HOW TO DO THIS?)
>
> or
>
> is there some other method of determining if ActiveSync is
> loaded/installed on a PC?
>
> Regards and thanks
>
> Glyn Meek
>



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      6th Dec 2004
This will only work if AS is currently running. Though it's a good point
that if AS isn't running, the RAPI stuff will likely fail as well (that
should be tested in his scenario).

--
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here


"Jan Yeh_eMVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, Glyn
>
> Sorry for mentioned wcescomm.exe without the usage... *^_^*
> You don't have to check every possible directories in the PC.
> Even ActiveSync was installed but if wcescomm.exe is not running,
> that would cause the same problem, I believe...
>
> Instead, you can check the process list in the PC.
> You can search MSDN for Process.GetProcessesByName() to check
> if wcescomm.exe is running.
> If you find it, that means ActiveSync will be triggered when cradled.
>
> This gonna work because I did before with VB6 code.
> However, if you feel registry way is easier, that would be fine,
> bacause wcescomm.exe seldom get shutdown...
>
> --
>
> Best Regards,
>
> Jan Yeh
> MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
> http://blog.mvpcn.net/janyeh
>
>
> "Darren Shaffer" <(E-Mail Removed)>
> 撰寫於郵件新聞:(E-Mail Removed)...
>> Chapter 15 of Doug Boling's Programming Windows CE.Net explains how to
>> use
>> the CeUtil DLL to access the ActiveSync registry entries. Under
>> HKEY_LOCAL_MACHINE
>> the ActiveSync root key is CESVC_ROOT_MACHINE. If that is missing,
>> ActiveSync
>> is not installed. CeSvcOpen is the key fuction from the CeUtil DLL that
>> you should
>> investigate in solving your issue.
>>
>> -Darren Shaffer
>>
>> "Glyn Meek" <(E-Mail Removed)> wrote in message
>> news:CPssd.1366$(E-Mail Removed)...
>>>I posted something about this a few days ago, but we have been banging
>>>our head against a brick wall for the last 5 days, almost none stop
>>>trying to figure this out. We are trying to use RAPI to develop a routine
>>>to talk to the Pocket PC. While it works perfectly when ActiveSync is up
>>>and connected, and fails perfectly when ActiveSync is taken down or the
>>>device pulled from the cradle, it gives us HUGE problems on PCs where
>>>ActiveSync is NOT EVEN INSTALLED.
>>>
>>> If one of our customers just happens to stumble into the PC<-> PPC
>>> interface by accident, and they do not have ActiveSync installed on
>>> their PC, RAPI does not like this AT ALL, and bad things happen. Now,
>>> we can fix this by not allowing the user to even get to the RAPI failing
>>> stuff if we can detect whether Activesync is even installed on the
>>> user's PC. If not, we don't go to the RAPI stuff, and if it is, then
>>> RAPI handles everything perfectly....So, our question is
>>>
>>> "What is the DEFINITIVE way of determining if ActiveSync has been
>>> installed on a PC?"
>>>
>>> We have had two suggestions already...
>>>
>>> 1) Check for the presence of wcescomm.exe ( BUT HOW DO YOU KNOW WHICH
>>> DIRECTORY IT IS IN, AS WE DON'T WANT TO SEARCH EVERY DIRECTORY!!)
>>>
>>> and
>>>
>>> 2) Check in the registry to see. ( GREAT IDEA, BUT WHAT DO WE HAVE TO
>>> LOOK FOR IN THE REGISTRY FOR ACTIVESYNC, AND IS THERE ANY WHITE PAPER
>>> OUT THERE THAT TELLS US HOW TO DO THIS?)
>>>
>>> or
>>>
>>> is there some other method of determining if ActiveSync is
>>> loaded/installed on a PC?
>>>
>>> Regards and thanks
>>>
>>> Glyn Meek
>>>

>>
>>

>
>



 
Reply With Quote
 
Jan Yeh_eMVP
Guest
Posts: n/a
 
      8th Dec 2004
Sure, it only work when AS is currently running.
However, AS is default running if it's installed, right?

The 2 ways, registry and process, are useful for detecting AS.
And it depends on developers' needs.

--

Best Regards,

Jan Yeh
MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
http://blog.mvpcn.net/janyeh

"Chris Tacke, eMVP" <(E-Mail Removed)> 撰寫於郵件新聞:(E-Mail Removed)...
> This will only work if AS is currently running. Though it's a good point
> that if AS isn't running, the RAPI stuff will likely fail as well (that
> should be tested in his scenario).
>
> --
> <ctacke/>
> www.OpenNETCF.org
> Your CF searches start and end here
>
>
> "Jan Yeh_eMVP" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi, Glyn
>>
>> Sorry for mentioned wcescomm.exe without the usage... *^_^*
>> You don't have to check every possible directories in the PC.
>> Even ActiveSync was installed but if wcescomm.exe is not running,
>> that would cause the same problem, I believe...
>>
>> Instead, you can check the process list in the PC.
>> You can search MSDN for Process.GetProcessesByName() to check
>> if wcescomm.exe is running.
>> If you find it, that means ActiveSync will be triggered when cradled.
>>
>> This gonna work because I did before with VB6 code.
>> However, if you feel registry way is easier, that would be fine,
>> bacause wcescomm.exe seldom get shutdown...
>>
>> --
>>
>> Best Regards,
>>
>> Jan Yeh
>> MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
>> http://blog.mvpcn.net/janyeh
>>
>>
>> "Darren Shaffer" <(E-Mail Removed)> 撰寫於郵件新聞:(E-Mail Removed)...
>>> Chapter 15 of Doug Boling's Programming Windows CE.Net explains how to
>>> use
>>> the CeUtil DLL to access the ActiveSync registry entries. Under
>>> HKEY_LOCAL_MACHINE
>>> the ActiveSync root key is CESVC_ROOT_MACHINE. If that is missing,
>>> ActiveSync
>>> is not installed. CeSvcOpen is the key fuction from the CeUtil DLL that
>>> you should
>>> investigate in solving your issue.
>>>
>>> -Darren Shaffer
>>>
>>> "Glyn Meek" <(E-Mail Removed)> wrote in message
>>> news:CPssd.1366$(E-Mail Removed)...
>>>>I posted something about this a few days ago, but we have been banging
>>>>our head against a brick wall for the last 5 days, almost none stop
>>>>trying to figure this out. We are trying to use RAPI to develop a
>>>>routine to talk to the Pocket PC. While it works perfectly when
>>>>ActiveSync is up and connected, and fails perfectly when ActiveSync is
>>>>taken down or the device pulled from the cradle, it gives us HUGE
>>>>problems on PCs where ActiveSync is NOT EVEN INSTALLED.
>>>>
>>>> If one of our customers just happens to stumble into the PC<-> PPC
>>>> interface by accident, and they do not have ActiveSync installed on
>>>> their PC, RAPI does not like this AT ALL, and bad things happen. Now,
>>>> we can fix this by not allowing the user to even get to the RAPI
>>>> failing stuff if we can detect whether Activesync is even installed on
>>>> the user's PC. If not, we don't go to the RAPI stuff, and if it is,
>>>> then RAPI handles everything perfectly....So, our question is
>>>>
>>>> "What is the DEFINITIVE way of determining if ActiveSync has been
>>>> installed on a PC?"
>>>>
>>>> We have had two suggestions already...
>>>>
>>>> 1) Check for the presence of wcescomm.exe ( BUT HOW DO YOU KNOW WHICH
>>>> DIRECTORY IT IS IN, AS WE DON'T WANT TO SEARCH EVERY DIRECTORY!!)
>>>>
>>>> and
>>>>
>>>> 2) Check in the registry to see. ( GREAT IDEA, BUT WHAT DO WE HAVE TO
>>>> LOOK FOR IN THE REGISTRY FOR ACTIVESYNC, AND IS THERE ANY WHITE PAPER
>>>> OUT THERE THAT TELLS US HOW TO DO THIS?)
>>>>
>>>> or
>>>>
>>>> is there some other method of determining if ActiveSync is
>>>> loaded/installed on a PC?
>>>>
>>>> Regards and thanks
>>>>
>>>> Glyn Meek
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveSync 3.71 & Outlook 2002 Not Installed =?Utf-8?B?Um9uIE0=?= Microsoft Outlook Discussion 0 7th May 2005 06:46 PM
Detect if activesync is installed is on PC Darren Coleman Microsoft Dot NET Compact Framework 1 28th Apr 2005 09:03 PM
Outlook 2003 wont close if Activesync is installed. =?Utf-8?B?Tmljaw==?= Microsoft Outlook Discussion 4 15th Feb 2005 04:40 PM
How to solve Notes Not Installed using Pocket PC and Activesync, . =?Utf-8?B?Sm9obg==?= Microsoft Outlook Discussion 0 13th Feb 2005 07:25 PM
ActiveSync 3.7.1 will not install due to tcp ip not installed but =?Utf-8?B?U2NvdHQgVw==?= Windows XP General 0 12th Jan 2005 05:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:05 PM.