>> I was hoping it would be as easy as checking whether I'm running in 
>> InstallRunMode.Deferred but I see that value doesn't exist.

The enumeration value you're looking for is InstallRunMode.Scheduled. Yeah it's 
not the most obvious naming, but DTF tries to stay consistent with the 
terminology used by the MSI 
SDK<http://msdn.microsoft.com/en-us/library/aa370125.aspx>.

________________________________________
From: Blair [os...@live.com]
Sent: Monday, July 27, 2009 11:21 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] DTF: How to Decide whether to Schedule or      Execute 
Custom Actions

If your entire logic in the ScheduleInstallAction and ScheduleUninstallAction 
actions is completely driven by your own tables referencing features and/or 
components (along with whatever other data ExecuteAction may need) AND you 
don't have any dependencies on other standard actions (such as needing to 
access installed files) you could check the action states of your 
feature/component and setup your data for ExecuteAction that way (from just one 
immediate action).

-----Original Message-----
From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com]
Sent: Monday, July 27, 2009 10:59 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] DTF: How to Decide whether to Schedule or Execute Custom 
Actions

Most of the custom actions I’m implementing come in groups of threes:

* ScheduleInstallAction runs immediate and is responsible for scheduling the 
install action and it’s rollback action.
* ScheduleUninstallAction runs immediate and is responsible for scheduling the 
uninstall action and it's rollback action.
* ExecuteAction runs deferred and installs, uninstalls, and/or performs 
rollback depending on what got scheduled and the InstallRunMode.

My goal is to reduce the number of custom actions from three to two. To do that 
I need to decide whether I need to schedule or execute. I was hoping it would 
be as easy as checking whether I'm running in InstallRunMode.Deferred but I see 
that value doesn't exist. What would be the proper way to make that decision?

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to