neil- Didn't I send you an example of a data driven custom action pattern that publishes sql server reporting services reports?
I'm pretty sure in that example I used custom tables with joins back to the component table ( PK-FK relationship ) and an immeadiate CA that did the evaluation of which rows needed to be processed based on component state. Now I don't recall if I actually did the work in a deferred custom action or not. That may sound crazy not to have but the reality is I'm hitting a webservice on a remote machine to publish the reports so I don't want impersonatio and the API doesn't support transactional rollback anyways. That scenario gets ugly regardless of what design pattern you choose. Eitherway DTF's CustomActionData class makes it easy to build any serializale datatype you need to communicate your requirements to the deferred CA so getting the component action state data to the deferred isn't a big deal. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me --- On Fri, 2/20/09, Neil Sleightholm <n...@x2systems.com> wrote: > From: Neil Sleightholm <n...@x2systems.com> > Subject: Re: [WiX-users] DTF - install, rollback and uninstall > To: "General discussion for Windows Installer XML toolset." > <wix-users@lists.sourceforge.net> > Date: Friday, February 20, 2009, 5:06 PM > I think I understand the component state approach but I am > not sure this is possible with the current implementation of > custom tables as I can't see how they can be associated > with a component. > > Neil > > Neil Sleightholm > X2 Systems Limited > n...@x2systems.com <mailto:n...@x2systems.com> > > > ________________________________ > > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Fri 20/02/2009 09:58 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] DTF - install, rollback and > uninstall > > > > There is a helper function in wcautil that is usually a > tell tale sign > you've found the code ::WcaGetComponentToDo(). The old > school way (most > of serverca uses the old school) is to call > WcaIsInstalling()/WcaIsReInstalling()/WcaIsUninstalling() > to determine > the scheduling. WcaGetComponentToDo() is a nice wrapper > that cleans up > much of the confusion. > > Using conditions to control your CustomAction > install/uninstall > behaviors is primitive and usually insufficient... but the > most > visible. Data driven CustomActions that modify machine > state via > Resources should really use Component states. That matches > the design > of the Windows Installer. > > Neil Sleightholm wrote: > > I don't suppose you could point me in the > direction of the code that controls that for one for the WiX > CA's so I can learn how to do it. > > > > Thanks > > > > Neil > > > > Neil Sleightholm > > X2 Systems Limited > > n...@x2systems.com <mailto:n...@x2systems.com> > > > > > > ________________________________ > > > > From: Bob Arnson [mailto:b...@joyofsetup.com] > > Sent: Fri 20/02/2009 01:15 > > To: General discussion for Windows Installer XML > toolset. > > Subject: Re: [WiX-users] DTF - install, rollback and > uninstall > > > > > > > > Neil Sleightholm wrote: > > > >> Where is the detection or conditional calls in > that? In most cases this > >> seems to end up calling the same code but with a > true/false code > >> indicating install/uninstall. > >> > >> > > > > Some of them need to have very different -- or > differently-timed -- > > behavior during install -v- uninstall but both still > do their things > > based on the component-level action state. > > > > -- > > sig://boB > > http://joyofsetup.com/ > > > > > > > > > ------------------------------------------------------------------------------ > > Open Source Business Conference (OSBC), March 24-25, > 2009, San Francisco, CA > > -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise > > -Strategies to boost innovation and cut costs with > open source participation > > -Receive a $600 discount off the registration fee with > the source code: SFAD > > http://p.sf.net/sfu/XcvMzF8H > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA > -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open > source participation > -Receive a $600 discount off the registration fee with the > source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA > -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open > source participation > -Receive a $600 discount off the registration fee with the > source code: SFAD > http://p.sf.net/sfu/XcvMzF8H_______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users