If you want to share the event sources, put them in a single
Component (probably with the resource .dll) and give the Component a Guid.
Now the event sources and .dll will be correctly reference counted by the
Windows Installer no matter how many MSIs share it. You could go as far as
to put the Compnent into a .wixlib and make sharing across multiple
.wixproj's as easy as a ComponentRef. This is what Christopher was
referring to below.

Permanent will be unnecessary when the code is written properly (which
should also provide the minimal solution). <smile/>


On Fri, Mar 22, 2013 at 8:58 AM, <keith.doug...@statcan.gc.ca> wrote:

> Hi Rob,
>
> Do you have any advice on my question per se, then? Should the developers
> just use a separate source for each of these very similar applications?
>  Troubleshooters will often want to see them all at once, and not have to
> go back and forth between different names and things. But I do see the
> point of having clean stuff and not use Permanent willy-nilly.
>
> On the other hand, our stuff is also for internal use only and the
> applications and environment targeted is very controlled and standardized
> with very technically unsophisticated users and plenty of space, etc. on
> their machines. In fact, I've never heard of an out-and-out "uninstall" in
> the environment we use now (which doesn't use Windows Installer at all for
> these applications). We do want to be able to do it, hence one of the
> reasons to use WiX to help us to do better - and it certainly has proved
> much more congenial than Setup projects. Since all the application packages
> of this type create the source anyway, I guess we'd only have a problem
> with a non-permanent if we somehow did not immediately replace it with
> something.
>
> Thanks for the thoughts,
>
>
>
> Keith Douglas
> Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6
> Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6
> keith.doug...@statcan.gc.ca
> Telephone | Téléphone 613-951-4405
> Facsimile | Télécopieur 613-951-1966
> Government of Canada | Gouvernement du Canada
>
>
> -----Original Message-----
> From: Rob Mensching [mailto:r...@robmensching.com]
> Sent: March-22-13 11:49 AM
> To: Christopher Painter; General discussion for Windows Installer XML
> toolset.
> Subject: Re: [WiX-users] Event source sharing
>
> Please don't mark things permanent that are part of your application. Have
> your application clean up correctly. The only time you should think about
> leaving stuff is for user generated data (including user settings).
>
>
> On Fri, Mar 22, 2013 at 8:14 AM, Christopher Painter <chr...@iswix.com
> >wrote:
>
> >
> > If you look at the built MSI, you'll see EventSource is just some
> > syntactic sugar to express simple registry keys/values.    Create a
> > component in a fragment / wix library and mark it as shared.  Then do
> > a ComponentRef in your various installers and they will all "share" that
> > component.   Last one off will remove it.
> >
> > Or you could just mark it as permanent and not worry about it so much.
> > I probably would because any event log entries are likely to stick
> > around long after your applications have been uninstalled.
> >
> > ----------------------------------------
> >  From: keith.doug...@statcan.gc.ca
> > Sent: Friday, March 22, 2013 10:09 AM
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] Event source sharing
> >
> > Hi everyone,
> >
> > I'm getting the hang of Util:EventSource, and I realized our original
> > plan was to have several of our applications (which are all "of a
> > kind" - they are a bunch of collection instruments which are from the
> > perspective of installation more or less identical) share a source. If
> > one MSI installs the EventSource originally, and another application
> > attempts to install it ...
> >
> > (a) What happens on install? I seem to see that this collision is
> harmless.
> > (b) What happens on uninstall of *one* of the applications? Is there
> > reference counting so that this does nothing to the source until the
> > last application is removed? Do they have to share components or
> > anything like that for this to work, or is the naming sufficient?
> >
> > Keith Douglas
> > Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6
> > Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A
> > 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-951-4405
> > Facsimile | Télécopieur 613-951-1966 Government of Canada |
> > Gouvernement du Canada
> >
> >
> > ----------------------------------------------------------------------
> > -------- Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics Download AppDynamics Lite
> > for free today:
> > http://p.sf.net/sfu/appdyn_d2d_mar
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > ----------------------------------------------------------------------
> > -------- Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics Download AppDynamics Lite
> > for free today:
> > http://p.sf.net/sfu/appdyn_d2d_mar
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics Download AppDynamics Lite for
> free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to