Bugs item #1724535, was opened at 2007-05-23 16:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1724535&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: extensions
Group: v3.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: AJ Shurts (ajshurts)
Assigned to: Scott Kurtzeborn (scotk)
Summary: SQL Custom actions are referencing a deprecated entry point

Initial Comment:
When using the "SqlScript" tag, a custom action is created that references the 
DLL entry point "ConfigureSql" in the ScaSchedule2 binary.  This entry point no 
longer exists so the custom action fails.  The new entry points appear to be 
InstallSqlData and UninstallSqlData.  I was able to fix by making the following 
edits in the code:

--SqlExtension.wxs--
...
<!--<CustomAction Id="ConfigureSql" BinaryKey="ScaSchedule2" 
DllEntry="ConfigureSql" Execute="immediate" Return="check" 
SuppressModularization="yes" />-->
                <CustomAction Id="InstallSqlData" BinaryKey="ScaSchedule2" 
DllEntry="InstallSqlData" Execute="immediate" Return="check" 
SuppressModularization="yes" />
                <CustomAction Id="UninstallSqlData" BinaryKey="ScaSchedule2" 
DllEntry="UninstallSqlData" Execute="immediate" Return="check" 
SuppressModularization="yes" />
...
<InstallExecuteSequence>
            <!--<Custom Action="ConfigureSql" After="InstallFiles" 
Overridable="yes" />-->
            <Custom Action="InstallSqlData" After="InstallFiles" 
Overridable="yes" />
            <Custom Action="UninstallSqlData" After="InstallSqlData" 
Overridable="yes"><![CDATA[Installed AND REMOVE ~= "ALL"]]></Custom>
</InstallExecuteSequence>
--SqlExtension.wxs--

--SqlCompiler.cs--
...
// Reference ConfigureSql since nothing will happen without it
#region Deprecated entry point
// The following entry point appears to have been deprecated
//this.Core.CreateWixSimpleReferenceRow(sourceLineNumbers, "CustomAction", 
"ConfigureSql");
#endregion
this.Core.CreateWixSimpleReferenceRow(sourceLineNumbers, "CustomAction", 
"InstallSqlData");
this.Core.CreateWixSimpleReferenceRow(sourceLineNumbers, "CustomAction", 
"UninstallSqlData");
...
--SqlCompiler.cs--

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1724535&group_id=105970

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to