What exact version of the WiX toolset are you using? E.g. what does the
light.exe banner say?

 

Is your script in ANSI or Unicode text?

 

640KB is a fairly large script, but there should be plenty of virtual
address space in the custom action worker process to allocate that much
memory, unless there's a phenomenally small amount of space left in the page
file. Error code 0x80070057 maps to ERROR_INVALID_PARAMETER, "The parameter
is incorrect", which isn't a normal error code for a memory allocation
failure.

 

You may get more data that's useful for debugging by turning on verbose
logging (msiexec /l*v).

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron Shurts
Sent: 21 May 2007 19:43
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Problem with SQL custom actions.

 

Hey all,
I am having a problem with SQL custom actions.  This is what I am getting in
the log:
MSI (s) (9C:C0) [10:10:21:781]: Doing action: ConfigureSql
Action 10:10:21: ConfigureSql. Configuring SQL Server
Action start 10:10:21: ConfigureSql. 
MSI (s) (9C:98) [10:10:21:796]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSIF9.tmp, Entrypoint: ConfigureSql
ConfigureSql:  Error 0x80070057: Failed to allocate WCHAR string of size
'640923' 
ConfigureSql:  Error 0x80070057: failed to read SqlScripts table
Action ended 10:10:21: ConfigureSql. Return value 3.

This is a snippet of my project file:
<Include xmlns=" <http://schemas.microsoft.com/wix/2006/wi>
http://schemas.microsoft.com/wix/2006/wi"; 
         xmlns:sql="http://schemas.microsoft.com/wix/SqlExtension";
         xmlns:iis=" <http://schemas.microsoft.com/wix/IIsExtension>
http://schemas.microsoft.com/wix/IIsExtension";
         xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>

<Binary Id="Sql_ServerInstall"
SourceFile="Components\Data\ERS\Database\ERSServer.sql" /> 
<!--Execute SQL Scripts-->
  <sql:SqlDatabase Id="LocalDbServer" Server="[SQLSERVER]" Database="master"
/>
  <!--Server-->
  <DirectoryRef Id="INSTALLDIR"> 
    <Component Id="SqlErsServerInstall"
Guid="da6e0c89-2cfd-4bf4-92ae-40c8568bfd83" KeyPath="no">
      <sql:SqlScript Id="InstallBaseScript" 
        SqlDb="LocalDbServer" 
        BinaryKey="Sql_ServerInstall" 
        ContinueOnError="no" 
        ExecuteOnInstall="yes" />
      <Condition><![CDATA[NOT ERS_VERSION]]></Condition> 
    </Component>   
  </DirectoryRef>

A search on Google did not bring up any useful information.  My target
machine is Server 2003 SP2 Standard and Enterprise with SQL Express /
Enterprise SP2.  The result is the same on both machines. 

-------------------------------------------------------------------------
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-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to