I think you missed the point. I can see there are two different entry points, 
one for install the other for uninstall but what I can't see is the condition 
that says to run one on install and the other on uninstall. (Using the SQL one 
was probably a bad example as that has an override condition other don't.)
 
Neil
 
Neil Sleightholm
X2 Systems Limited
[email protected] <mailto:[email protected]> 
 

________________________________

From: Richard [mailto:[email protected]]
Sent: Fri 20/02/2009 00:19
To: [email protected]
Subject: Re: [WiX-users] DTF - install, rollback and uninstall




In article <[email protected]>,
    "Neil Sleightholm" <[email protected]>  writes:

> I have to admit to being confused! Looking at the built in WiX custom
> actions I see code like this in their wixlibs:
>
> <CustomAction Id="InstallSqlData" BinaryKey="ScaSchedule2"
> DllEntry="InstallSqlData" Execute="immediate" Return="check" />
            ^^^^^^^^^^^^^^
> <CustomAction Id="UninstallSqlData" BinaryKey="ScaSchedule2"
> DllEntry="UninstallSqlData" Execute="immediate" Return="check" />
            ^^^^^^^^^^^^^^^^

These define two CAs with different entry points into the same DLL.

> <InstallExecuteSequence>
> <Custom Action="UninstallSqlData" Before="RemoveFiles"
> Overridable="yes">NOT SKIPUNINSTALLSQLDATA AND VersionNT &gt; 400</Custom>
> <Custom Action="InstallSqlData" After="InstallFiles"
> Overridable="yes">NOT SKIPINSTALLSQLDATA AND VersionNT &gt; 400</Custom>
> </InstallExecuteSequence>
>
> Where is the detection or conditional calls in that? In most cases this
> seems to end up calling the same code but with a true/false code
> indicating install/uninstall.

The two have different code and different conditions (properties
SKIPUNINSTALLSQLDATA vs. SKIPINSTALLSQLDATA).
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>

        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to