Re: [WiX-users] Passing data between deferred custom actions

2009-03-05 Thread mkk

I have a few questions.

1.  In my immediate custom action, how do I get the property value in DTF
(C#).
2.  In my immediate custom action after stuffing the CustomActionData how do
I serialize it out to the name of the property of the immediate custom
action.
3. In my defferred custom action, how di I get the name of the custom action
that is calling into my method.

Thanks   


Christopher Painter wrote:
 
 You'll want to look at the CustomActionData class in DTF as described
 here:
 
 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html
 
 In a nutshell:
 
 In your immeadiate custom action, you instantiate the class, stuff it with
 data and then serialize it out to a property.  
 
 In your deferred custom action you read the CustomActionData property and
 pass it to the class constructor for deserialziation back into your class
 with all of it's data.
 
 As far as how to schedule these custom actions there are several patterns:
 
 1) 1 immeadiate to 1 deferred relationship
 2) 1 immeadiate to multiple deferred relationship
 3) 1 immeadiate that calls DoAction to schedule the deferred ( this is the
 way Jason describes in the above link. )
 
 When using #1 or #2, remember the immeadiate must be scheduled before the
 deferred and the name of the property(s) to be set is the name of the
 deferred custom actions(s).  This is how MSI makes the join.  
 
 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
 
 

-- 
View this message in context: 
http://n2.nabble.com/Passing-data-between-deferred-custom-actions-tp2339690p2431149.html
Sent from the wix-users mailing list archive at Nabble.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


Re: [WiX-users] Passing data between deferred custom actions

2009-03-05 Thread Christopher Karper
1.)  session[PropertyName] will access the property you're looking for.

2.) Call session.DoAction(ActionName, CAData)

3.) I don't know that you can.  Can't you just put that in the CAData?

Chris

On Thu, Mar 5, 2009 at 1:19 PM, mkk markknut...@hotmail.com wrote:


 I have a few questions.

 1.  In my immediate custom action, how do I get the property value in DTF
 (C#).
 2.  In my immediate custom action after stuffing the CustomActionData how
 do
 I serialize it out to the name of the property of the immediate custom
 action.
 3. In my defferred custom action, how di I get the name of the custom
 action
 that is calling into my method.

 Thanks


 Christopher Painter wrote:
 
  You'll want to look at the CustomActionData class in DTF as described
  here:
 
 
 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html
 
  In a nutshell:
 
  In your immeadiate custom action, you instantiate the class, stuff it
 with
  data and then serialize it out to a property.
 
  In your deferred custom action you read the CustomActionData property and
  pass it to the class constructor for deserialziation back into your class
  with all of it's data.
 
  As far as how to schedule these custom actions there are several
 patterns:
 
  1) 1 immeadiate to 1 deferred relationship
  2) 1 immeadiate to multiple deferred relationship
  3) 1 immeadiate that calls DoAction to schedule the deferred ( this is
 the
  way Jason describes in the above link. )
 
  When using #1 or #2, remember the immeadiate must be scheduled before the
  deferred and the name of the property(s) to be set is the name of the
  deferred custom actions(s).  This is how MSI makes the join.
 
  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
 
 

 --
 View this message in context:
 http://n2.nabble.com/Passing-data-between-deferred-custom-actions-tp2339690p2431149.html
 Sent from the wix-users mailing list archive at Nabble.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


Re: [WiX-users] Passing data between deferred custom actions

2009-03-05 Thread Jason Ginchereau
Actually, you shouldn't have to worry about that. Any semicolons in your data 
will be automatically escaped (doubled) and unescaped as necessary for 
serialization.

-Original Message-
From: John Nannenga [mailto:john.nanne...@microsoft.com] 
Sent: Friday, February 20, 2009 10:01 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Passing data between deferred custom actions

What happens when the data value you need contains what appears to be the 
delimiter between independent properties within the CustomActionData class?  
semi-colon...





-Original Message-
From: Rob Mensching [mailto:r...@wixtoolset.org] 
Sent: Tuesday, February 17, 2009 10:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Passing data between deferred custom actions

Most of the WiX toolset CustomActions do this.

Eitan Behar wrote:
 Does not look like fun, but it's doable ! Thanks !

 Etian


 On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 You'll want to look at the CustomActionData class in DTF as described here:

 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html

 In a nutshell:

 In your immeadiate custom action, you instantiate the class, stuff it with
 data and then serialize it out to a property.

 In your deferred custom action you read the CustomActionData property and
 pass it to the class constructor for deserialziation back into your class
 with all of it's data.

 As far as how to schedule these custom actions there are several patterns:

 1) 1 immeadiate to 1 deferred relationship
 2) 1 immeadiate to multiple deferred relationship
 3) 1 immeadiate that calls DoAction to schedule the deferred ( this is the
 way Jason describes in the above link. )

 When using #1 or #2, remember the immeadiate must be scheduled before the
 deferred and the name of the property(s) to be set is the name of the
 deferred custom actions(s).  This is how MSI makes the join.

 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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

 
 From: Eitan Behar ei...@baconao.net
 Subject: Re: [WiX-users] Passing data between deferred custom actions
 To: chr...@deploymentengineering.com, General discussion for Windows
   
 Installer XML toolset. wix-users@lists.sourceforge.net
 
 Date: Tuesday, February 17, 2009, 6:47 AM
 DTF C#



 On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 What language is the CA's written in?

 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 Tue, 2/17/09, Eitan Behar
 
 ei...@baconao.net wrote:
   
 From: Eitan Behar ei...@baconao.net
 Subject: [WiX-users] Passing data between
   
 deferred custom actions
   
 To: General discussion for Windows
   
 Installer XML toolset. 
   
 wix-users@lists.sourceforge.net
 
 Date: Tuesday, February 17, 2009, 2:40 AM
 Hi,

 Is there a proper method to pass data between
   
 deferred
   
 custom actions ? I
 have a bunch of chained custom actions and need
   
 to pass
   
 data between them,
 actually, just a boolean value
   
 telling the rest
   
 of the ca whether to
 continue.

 Thanks,

 Eitan

   
 --
 
 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

Re: [WiX-users] Passing data between deferred custom actions

2009-02-20 Thread John Nannenga
What happens when the data value you need contains what appears to be the 
delimiter between independent properties within the CustomActionData class?  
semi-colon...





-Original Message-
From: Rob Mensching [mailto:r...@wixtoolset.org] 
Sent: Tuesday, February 17, 2009 10:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Passing data between deferred custom actions

Most of the WiX toolset CustomActions do this.

Eitan Behar wrote:
 Does not look like fun, but it's doable ! Thanks !

 Etian


 On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 You'll want to look at the CustomActionData class in DTF as described here:

 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html

 In a nutshell:

 In your immeadiate custom action, you instantiate the class, stuff it with
 data and then serialize it out to a property.

 In your deferred custom action you read the CustomActionData property and
 pass it to the class constructor for deserialziation back into your class
 with all of it's data.

 As far as how to schedule these custom actions there are several patterns:

 1) 1 immeadiate to 1 deferred relationship
 2) 1 immeadiate to multiple deferred relationship
 3) 1 immeadiate that calls DoAction to schedule the deferred ( this is the
 way Jason describes in the above link. )

 When using #1 or #2, remember the immeadiate must be scheduled before the
 deferred and the name of the property(s) to be set is the name of the
 deferred custom actions(s).  This is how MSI makes the join.

 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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

 
 From: Eitan Behar ei...@baconao.net
 Subject: Re: [WiX-users] Passing data between deferred custom actions
 To: chr...@deploymentengineering.com, General discussion for Windows
   
 Installer XML toolset. wix-users@lists.sourceforge.net
 
 Date: Tuesday, February 17, 2009, 6:47 AM
 DTF C#



 On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 What language is the CA's written in?

 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 Tue, 2/17/09, Eitan Behar
 
 ei...@baconao.net wrote:
   
 From: Eitan Behar ei...@baconao.net
 Subject: [WiX-users] Passing data between
   
 deferred custom actions
   
 To: General discussion for Windows
   
 Installer XML toolset. 
   
 wix-users@lists.sourceforge.net
 
 Date: Tuesday, February 17, 2009, 2:40 AM
 Hi,

 Is there a proper method to pass data between
   
 deferred
   
 custom actions ? I
 have a bunch of chained custom actions and need
   
 to pass
   
 data between them,
 actually, just a boolean value
   
 telling the rest
   
 of the ca whether to
 continue.

 Thanks,

 Eitan

   
 --
 
 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

Re: [WiX-users] Passing data between deferred custom actions

2009-02-20 Thread Thomas S. Trias
Use a different delimiter; the WiX CA's use EUR.  I've been tempted to 
use XML (just because it makes reading the logs so much easier - 
probably overkill for anything short of serializing .NET objects)...

Thanks,

Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/



 Original Message  
Subject: Re: [WiX-users] Passing data between deferred custom actions
From: John Nannenga john.nanne...@microsoft.com
To: General discussion for Windows Installer XML toolset.   
 wix-users@lists.sourceforge.net
Date: 2/20/2009 12:01 PM
 What happens when the data value you need contains what appears to be the 
 delimiter between independent properties within the CustomActionData class?  
 semi-colon...





 -Original Message-
 From: Rob Mensching [mailto:r...@wixtoolset.org] 
 Sent: Tuesday, February 17, 2009 10:52 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Passing data between deferred custom actions

 Most of the WiX toolset CustomActions do this.

 Eitan Behar wrote:
   
 Does not look like fun, but it's doable ! Thanks !

 Etian


 On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 
 You'll want to look at the CustomActionData class in DTF as described here:

 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html

 In a nutshell:

 In your immeadiate custom action, you instantiate the class, stuff it with
 data and then serialize it out to a property.

 In your deferred custom action you read the CustomActionData property and
 pass it to the class constructor for deserialziation back into your class
 with all of it's data.

 As far as how to schedule these custom actions there are several patterns:

 1) 1 immeadiate to 1 deferred relationship
 2) 1 immeadiate to multiple deferred relationship
 3) 1 immeadiate that calls DoAction to schedule the deferred ( this is the
 way Jason describes in the above link. )

 When using #1 or #2, remember the immeadiate must be scheduled before the
 deferred and the name of the property(s) to be set is the name of the
 deferred custom actions(s).  This is how MSI makes the join.

 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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

 
   
 From: Eitan Behar ei...@baconao.net
 Subject: Re: [WiX-users] Passing data between deferred custom actions
 To: chr...@deploymentengineering.com, General discussion for Windows
   
 
 Installer XML toolset. wix-users@lists.sourceforge.net
 
   
 Date: Tuesday, February 17, 2009, 6:47 AM
 DTF C#



 On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 
 What language is the CA's written in?

 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 Tue, 2/17/09, Eitan Behar
 
   
 ei...@baconao.net wrote:
   
 
 From: Eitan Behar ei...@baconao.net
 Subject: [WiX-users] Passing data between
   
 
 deferred custom actions
   
 
 To: General discussion for Windows
   
 
 Installer XML toolset. 
   
 
 wix-users@lists.sourceforge.net
 
   
 Date: Tuesday, February 17, 2009, 2:40 AM
 Hi,

 Is there a proper method to pass data between
   
 
 deferred
   
 
 custom actions ? I
 have a bunch of chained custom actions and need
   
 
 to pass
   
 
 data between them,
 actually, just a boolean value
   
 
 telling the rest
   
 
 of the ca whether to
 continue.

 Thanks,

 Eitan

   
 
 --
 
   
 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

Re: [WiX-users] Passing data between deferred custom actions

2009-02-20 Thread Chad Miles
A GUID works nicely... :)

On Fri, Feb 20, 2009 at 6:10 PM, Thomas S. Trias tomtr...@artizan.comwrote:

 Use a different delimiter; the WiX CA's use EUR.  I've been tempted to
 use XML (just because it makes reading the logs so much easier -
 probably overkill for anything short of serializing .NET objects)...

 Thanks,

 Thomas S. Trias
 Senior Developer
 Artizan Internet Services
 http://www.artizan.com/



  Original Message  
 Subject: Re: [WiX-users] Passing data between deferred custom actions
 From: John Nannenga john.nanne...@microsoft.com
 To: General discussion for Windows Installer XML toolset.
  wix-users@lists.sourceforge.net
  Date: 2/20/2009 12:01 PM
  What happens when the data value you need contains what appears to be the
 delimiter between independent properties within the CustomActionData class?
  semi-colon...
 
 
 
 
 
  -Original Message-
  From: Rob Mensching [mailto:r...@wixtoolset.org]
  Sent: Tuesday, February 17, 2009 10:52 PM
  To: General discussion for Windows Installer XML toolset.
  Subject: Re: [WiX-users] Passing data between deferred custom actions
 
  Most of the WiX toolset CustomActions do this.
 
  Eitan Behar wrote:
 
  Does not look like fun, but it's doable ! Thanks !
 
  Etian
 
 
  On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter 
  chr...@deploymentengineering.com wrote:
 
 
 
  You'll want to look at the CustomActionData class in DTF as described
 here:
 
 
 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html
 
  In a nutshell:
 
  In your immeadiate custom action, you instantiate the class, stuff it
 with
  data and then serialize it out to a property.
 
  In your deferred custom action you read the CustomActionData property
 and
  pass it to the class constructor for deserialziation back into your
 class
  with all of it's data.
 
  As far as how to schedule these custom actions there are several
 patterns:
 
  1) 1 immeadiate to 1 deferred relationship
  2) 1 immeadiate to multiple deferred relationship
  3) 1 immeadiate that calls DoAction to schedule the deferred ( this is
 the
  way Jason describes in the above link. )
 
  When using #1 or #2, remember the immeadiate must be scheduled before
 the
  deferred and the name of the property(s) to be set is the name of the
  deferred custom actions(s).  This is how MSI makes the join.
 
  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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:
 
 
 
  From: Eitan Behar ei...@baconao.net
  Subject: Re: [WiX-users] Passing data between deferred custom actions
  To: chr...@deploymentengineering.com, General discussion for Windows
 
 
  Installer XML toolset. wix-users@lists.sourceforge.net
 
 
  Date: Tuesday, February 17, 2009, 6:47 AM
  DTF C#
 
 
 
  On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
  chr...@deploymentengineering.com wrote:
 
 
 
  What language is the CA's written in?
 
  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 Tue, 2/17/09, Eitan Behar
 
 
  ei...@baconao.net wrote:
 
 
  From: Eitan Behar ei...@baconao.net
  Subject: [WiX-users] Passing data between
 
 
  deferred custom actions
 
 
  To: General discussion for Windows
 
 
  Installer XML toolset. 
 
 
  wix-users@lists.sourceforge.net
 
 
  Date: Tuesday, February 17, 2009, 2:40 AM
  Hi,
 
  Is there a proper method to pass data between
 
 
  deferred
 
 
  custom actions ? I
  have a bunch of chained custom actions and need
 
 
  to pass
 
 
  data between them,
  actually, just a boolean value
 
 
  telling the rest
 
 
  of the ca whether to
  continue.
 
  Thanks,
 
  Eitan
 
 
 
 
 --
 
 
  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

Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Christopher Painter
What language is the CA's written in?

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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

 From: Eitan Behar ei...@baconao.net
 Subject: [WiX-users] Passing data between deferred custom actions
 To: General discussion for Windows Installer XML toolset. 
 wix-users@lists.sourceforge.net
 Date: Tuesday, February 17, 2009, 2:40 AM
 Hi,
 
 Is there a proper method to pass data between deferred
 custom actions ? I
 have a bunch of chained custom actions and need to pass
 data between them,
 actually, just a boolean value telling the rest
 of the ca whether to
 continue.
 
 Thanks,
 
 Eitan
 --
 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


Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Eitan Behar
DTF C#



On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
chr...@deploymentengineering.com wrote:

 What language is the CA's written in?

 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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

  From: Eitan Behar ei...@baconao.net
  Subject: [WiX-users] Passing data between deferred custom actions
  To: General discussion for Windows Installer XML toolset. 
 wix-users@lists.sourceforge.net
  Date: Tuesday, February 17, 2009, 2:40 AM
  Hi,
 
  Is there a proper method to pass data between deferred
  custom actions ? I
  have a bunch of chained custom actions and need to pass
  data between them,
  actually, just a boolean value telling the rest
  of the ca whether to
  continue.
 
  Thanks,
 
  Eitan
 
 --
  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


Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Christopher Painter
You'll want to look at the CustomActionData class in DTF as described here:

http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html

In a nutshell:

In your immeadiate custom action, you instantiate the class, stuff it with data 
and then serialize it out to a property.  

In your deferred custom action you read the CustomActionData property and pass 
it to the class constructor for deserialziation back into your class with all 
of it's data.

As far as how to schedule these custom actions there are several patterns:

1) 1 immeadiate to 1 deferred relationship
2) 1 immeadiate to multiple deferred relationship
3) 1 immeadiate that calls DoAction to schedule the deferred ( this is the way 
Jason describes in the above link. )

When using #1 or #2, remember the immeadiate must be scheduled before the 
deferred and the name of the property(s) to be set is the name of the deferred 
custom actions(s).  This is how MSI makes the join.  

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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

 From: Eitan Behar ei...@baconao.net
 Subject: Re: [WiX-users] Passing data between deferred custom actions
 To: chr...@deploymentengineering.com, General discussion for Windows 
 Installer XML toolset. wix-users@lists.sourceforge.net
 Date: Tuesday, February 17, 2009, 6:47 AM
 DTF C#
 
 
 
 On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:
 
  What language is the CA's written in?
 
  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 Tue, 2/17/09, Eitan Behar
 ei...@baconao.net wrote:
 
   From: Eitan Behar ei...@baconao.net
   Subject: [WiX-users] Passing data between
 deferred custom actions
   To: General discussion for Windows
 Installer XML toolset. 
  wix-users@lists.sourceforge.net
   Date: Tuesday, February 17, 2009, 2:40 AM
   Hi,
  
   Is there a proper method to pass data between
 deferred
   custom actions ? I
   have a bunch of chained custom actions and need
 to pass
   data between them,
   actually, just a boolean value
 telling the rest
   of the ca whether to
   continue.
  
   Thanks,
  
   Eitan
  
 
 --
   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


Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Eitan Behar
Does not look like fun, but it's doable ! Thanks !

Etian


On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter 
chr...@deploymentengineering.com wrote:

 You'll want to look at the CustomActionData class in DTF as described here:

 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html

 In a nutshell:

 In your immeadiate custom action, you instantiate the class, stuff it with
 data and then serialize it out to a property.

 In your deferred custom action you read the CustomActionData property and
 pass it to the class constructor for deserialziation back into your class
 with all of it's data.

 As far as how to schedule these custom actions there are several patterns:

 1) 1 immeadiate to 1 deferred relationship
 2) 1 immeadiate to multiple deferred relationship
 3) 1 immeadiate that calls DoAction to schedule the deferred ( this is the
 way Jason describes in the above link. )

 When using #1 or #2, remember the immeadiate must be scheduled before the
 deferred and the name of the property(s) to be set is the name of the
 deferred custom actions(s).  This is how MSI makes the join.

 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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

  From: Eitan Behar ei...@baconao.net
  Subject: Re: [WiX-users] Passing data between deferred custom actions
  To: chr...@deploymentengineering.com, General discussion for Windows
 Installer XML toolset. wix-users@lists.sourceforge.net
  Date: Tuesday, February 17, 2009, 6:47 AM
  DTF C#
 
 
 
  On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
  chr...@deploymentengineering.com wrote:
 
   What language is the CA's written in?
  
   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 Tue, 2/17/09, Eitan Behar
  ei...@baconao.net wrote:
  
From: Eitan Behar ei...@baconao.net
Subject: [WiX-users] Passing data between
  deferred custom actions
To: General discussion for Windows
  Installer XML toolset. 
   wix-users@lists.sourceforge.net
Date: Tuesday, February 17, 2009, 2:40 AM
Hi,
   
Is there a proper method to pass data between
  deferred
custom actions ? I
have a bunch of chained custom actions and need
  to pass
data between them,
actually, just a boolean value
  telling the rest
of the ca whether to
continue.
   
Thanks,
   
Eitan
   
  
 
 --
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


Re: [WiX-users] Passing data between deferred custom actions

2009-02-17 Thread Rob Mensching
Most of the WiX toolset CustomActions do this.

Eitan Behar wrote:
 Does not look like fun, but it's doable ! Thanks !

 Etian


 On Tue, Feb 17, 2009 at 3:38 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 You'll want to look at the CustomActionData class in DTF as described here:

 http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg17875.html

 In a nutshell:

 In your immeadiate custom action, you instantiate the class, stuff it with
 data and then serialize it out to a property.

 In your deferred custom action you read the CustomActionData property and
 pass it to the class constructor for deserialziation back into your class
 with all of it's data.

 As far as how to schedule these custom actions there are several patterns:

 1) 1 immeadiate to 1 deferred relationship
 2) 1 immeadiate to multiple deferred relationship
 3) 1 immeadiate that calls DoAction to schedule the deferred ( this is the
 way Jason describes in the above link. )

 When using #1 or #2, remember the immeadiate must be scheduled before the
 deferred and the name of the property(s) to be set is the name of the
 deferred custom actions(s).  This is how MSI makes the join.

 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 Tue, 2/17/09, Eitan Behar ei...@baconao.net wrote:

 
 From: Eitan Behar ei...@baconao.net
 Subject: Re: [WiX-users] Passing data between deferred custom actions
 To: chr...@deploymentengineering.com, General discussion for Windows
   
 Installer XML toolset. wix-users@lists.sourceforge.net
 
 Date: Tuesday, February 17, 2009, 6:47 AM
 DTF C#



 On Tue, Feb 17, 2009 at 2:05 PM, Christopher Painter 
 chr...@deploymentengineering.com wrote:

   
 What language is the CA's written in?

 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 Tue, 2/17/09, Eitan Behar
 
 ei...@baconao.net wrote:
   
 From: Eitan Behar ei...@baconao.net
 Subject: [WiX-users] Passing data between
   
 deferred custom actions
   
 To: General discussion for Windows
   
 Installer XML toolset. 
   
 wix-users@lists.sourceforge.net
 
 Date: Tuesday, February 17, 2009, 2:40 AM
 Hi,

 Is there a proper method to pass data between
   
 deferred
   
 custom actions ? I
 have a bunch of chained custom actions and need
   
 to pass
   
 data between them,
 actually, just a boolean value
   
 telling the rest
   
 of the ca whether to
 continue.

 Thanks,

 Eitan

   
 --
 
 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