Condition the CustomAction.

-----Original Message-----
From: Frank Cohen [mailto:frankensp...@gmail.com]
Sent: Monday, December 29, 2008 13:33
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Running an Installer from MSI: Part II

So I dug a little deeper into this.  The problem didn't have to do with
using the temp directory as another user had mentioned on the list.  The
problem is that the custom action is run again on the uninstall. In my
scenario, the custom actions should only run in the install not the
uninstall.  What do I need to do to make it so the CA doesn't run again in
the uninstall?

Now, I mentioned that I am installing to extra pieces of software.  These
are the Firebird database and an admin tool called Flame Robin (ex1).  What
I need to do is detect if either of these are already installed, and if so -
remove them from the feature tree.  Right now I have two properties with a
registry search that does this, but I don't know what to use from here.
Could someone point me in the right direction?

Thanks,

Frank

--
ex1:

    <Property Id="FirebirdExistingInstall">
      <RegistrySearch Id="FirebirdExistingInstall"
                      Root="HKLM"

Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FBDBServer_2_1_is1"
                      Name="Publisher"
                       Type="raw" />

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


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

Reply via email to