IMHO: best practice in Windows Installer is in this order:
1. Find a way to accomplish what you need to do using standard (built-in)
actions (see Bob's "semi-custom" actions if you need to compute things like
registry keys, etc. at install-time).
2. Use a well-written, well-tested, and well-used library of custom actions
(such as those in WiX).
3. Write a DLL-based custom action.
4. Use an EXE already supplied by the platform you must affect (using
CAQuietExec which both shows the EXE's console output in the log in case of
errors AND gets rid of the "console-window-flash" that can occur with
calling EXE CAs directly). Use this only when the platform doesn't provide
any programmatic way of accomplishing what you are doing except for the CLI
EXE you are using.

The units of the "cost" of a deferred custom action are in bytes of
installing (copying) a file, so if the time it takes to run your custom
action is the same as the time to copy a 10,000 byte file, you would use a
cost of 10,000 when scheduling your deferred custom action.

Blair

-----Original Message-----
From: Sean Farrow [mailto:sean.far...@seanfarrow.co.uk] 
Sent: Saturday, January 08, 2011 3:07 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] using CaQuietExec in a defered custom action

Hi:
I'm in the process of rewriting my installer custom actions to follow WiX
best practices.
I was previously using CAQuietExec and now have two questions:
Can I reuse this from a custom action dll I write, or is it best to include
all code in my own dll.
And secondly, how do I determine the cost of a custom action such as
CaQuietExec.
Any help appreciated.
Regards
Sean.
----------------------------------------------------------------------------
--
Gaining the trust of online customers is vital for the success of any
company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to