1. Yes. Use conditions in the execute & UI sequences to determine if you
should execute the action (for example, at uninstall time).
2. If you store custom action dll in the binary table using the <Binary>
element, the custom action is available as long as the installer is running.
3. Custom actions can use MsiGetProperty/DTF to read installer properties. If
your custom action is deferred, there is a special mechanism (and some
limitations) for passing properties which is documented in the MSDN under the
section about deferred custom actions.
4. Using DTF and Wix, C# will probably suit you better as long as you are
certain the dot net framework is installed on the target machine.

Read the documentation on custom actions in the MSDN, the tutorial and the
Wix help. Alex Shevchuk also has some good articles at
http://blogs.technet.com/b/alexshev/archive/2009/05/15/from-msi-to-wix-part-2
2-dll-custom-actions-introduction.aspx


-----Original Message-----
From: Sameer Arora [mailto:arora...@gmail.com] 
Sent: 04 March 2011 13:22
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Custom Actions during/post install and uninstall

Am reading the tramontana tutorial - one of the best online I have to say.

Just need some clarification from WIX practitioners about custom actions (in
C# preferably):
- Can one perform custom actions during and post installation and
uninstallation ?
- I guess custom action post uninstall may not make sense since the
CA-implementing dll should ideally be wiped out as part of uninstall ?
- Is it possible to pass value into the custom-action C# code and get some
value back into WIX?


Should I prefer C++ or C# - can do both, find C# more productive.

Thanks all,
S
-----------------------------------------------------------------------------
-
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to