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

Reply via email to