Re: Enumerating classes in all categories causes install programs to run
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 14 Nov 2007 13:24:11 -0500
David Liebtag <DavidLiebtag@xxxxxxxxxxxxx> wrote:
Can anyone explain why install programs start to run when I enumerate
all the classes in all categories?
Windows Installer provides "Install on first use" feature (referred to
in MSI documentation as Advertisement). If you've ever installed
Microsoft Office and selected Customize option, you might have noticed
that for each component you could choose between Run from My Computer,
Not Available and Installed on First Use. The last option is what I'm
talking about.
A COM component can be advertised. When you call CoCreateInstance on
such a component, it's considered "first use" and Windows Installer
kicks in to actually install it.
I'm not sure why simply enumerating advertised components also triggers
installation, but I'm pretty sure that's what's happening for you.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: Enumerating classes in all categories causes install programs to run
- From: David Liebtag
- Re: Enumerating classes in all categories causes install programs to run
- References:
- Enumerating classes in all categories causes install programs to run
- From: David Liebtag
- Enumerating classes in all categories causes install programs to run
- Prev by Date: Enumerating classes in all categories causes install programs to run
- Next by Date: Re: IID_IDropTarget
- Previous by thread: Enumerating classes in all categories causes install programs to run
- Next by thread: Re: Enumerating classes in all categories causes install programs to run
- Index(es):
Relevant Pages
|
Loading