Re: Enumerating classes in all categories causes install programs to run



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


.



Relevant Pages

  • Re: Windows Installer per-user elevation failed
    ... in combination with a cluster. ... or the setup program does not support Windows Installer ... > An advertisement for the same package but with the program (per-system ...
    (microsoft.public.sms.swdist)
  • Re: Windows Installer per-user elevation failed
    ... You might try posting this issue to some Windows Installer group, ... > cluster) everything is working fine. ... >> An advertisement for the same package but with the program (per-system ...
    (microsoft.public.sms.swdist)
  • Windows Installer per-user elevation failed
    ... unattended") failed for advertisement "P01200EC". ... The version of Windows Installer on the computer is less ... We removed all the policies in the registry for the user ...
    (microsoft.public.sms.swdist)
  • Re: Software Distribution - no client interaction
    ... And create a mandatory advertisement. ... check the suppress program notifications setting. ... > to use a windows installer so I could benefit from the extra options it ... > rest of the installation is automated, but I would prefer that the client ...
    (microsoft.public.sms.admin)
  • RE: Windows installer on SBS server 2003 SP2
    ... "The Windows Installer Service could not be accessed. ... Windows Installer Service cannot be started correctly. ... Verify that the SYSTEM/administrators account has been added and that it has Full control. ...
    (microsoft.public.windows.server.sbs)

Loading