It might be a good idea to schedule this based on the state of the component
or feature. That way you can tie the custom action's execution to whether
or not the specific component is being installed/uninstalled based on that
state.
$TheComponent=2 (component is being uninstalled)
$TheComponent>2 (component is being installed)
Read here for more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/conditional_statement_syntax.asp
Dana
On 3/22/07, Chris Bardon <[EMAIL PROTECTED]> wrote:
Have you tried something like this:
<InstallExecuteSequence>
<Custom Action="CA2.uninstall.SetProperty"
After="MsiUnpublishAssemblies">INSTALLED</Custom>
</InstallExecuteSequence>
This should execute the action only if the product is installed.
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nitin
Chaudhari
Sent: Thursday, March 22, 2007 9:37 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] wix, C# installer class, uninstall
I am using a C# installer class, during installation, I am able to call
my C# install function, however I am not able hook uninstall in wix to
call my C# uninstall function.
In Wix, I am using the following XML to hook uninstall... but the MSI
log shows that this custom action is being invoked during installation
itself.
<Custom Action="CA2.uninstall.SetProperty"
After="MsiUnpublishAssemblies">1</Custom>
<Custom Action="CA2.uninstall"
After="CA2.uninstall.SetProperty">1</Custom>
How can I ensure that my custom action is executed only on uninstall?
Thanks,
Nitin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users