This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
setup.exe CoCreateInstance error.
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin-apps <cygwin-apps at cygwin dot com>
- Date: Wed, 01 Jul 2009 09:42:02 +0100
- Subject: setup.exe CoCreateInstance error.
Hi Corinna,
I got this warning dialog during testing (w2k), after I updated to HEAD:
---------------------------
make_link_2
---------------------------
CoCreateInstance failed with error 80004002.
Setup will not be able to create Cygwin Icons
in the Start Menu or on the Desktop.
---------------------------
OK
---------------------------
That's E_NOINTERFACE. I checked the value of CLSID_ShellLink in the w32api
sources, and made sure that I appear to have the required registry key:
HKEY_CLASSES_ROOT\CLSID\{00021401-0000-0000-C000-000000000046}
So it looks as if there may not even be any one place to call
CoCreateInstance from that works for both win7 and w2k. Argh. I had a quick
hack at it by trying to call CoCreateInstance again in make_link_2 if the 'sl'
pointer wasn't already set but it still failed (same error); maybe w2k just
isn't happy with having CoInit called so early. I'm going to leave it for now
because I want to get on with the libstdcxx support respin, but I could do
some testing if you can think up a patch.
cheers,
DaveK