I am trying to use ODBC to connect to Microsoft SQL Server, and I understand that any clients must have the SQL Server Native Client installed (sqlncli.msi). When I include this in the installer, and test on another computer at my office, I get the following error

Unable to execute file sqlncli.msi
%1 is not a valid win32 application

I have the 64-bit version of sqlncli.msi, and I am installing on 64-bit Windows 7.

Any ideas

I installed sqlncli.msi independently and everything worked. Below is the line in my Inno setup file

Filename: {tmp}\sqlncli.msi; Parameters: “/install /quiet /norestart”; StatusMsg: “Installing Microsoft SQL Server Native Client…”; Flags: waituntilterminated

I used the same code for the Windows universal runtime, and had no problems.

Filename: {tmp}\VC_redist.x64.exe; Parameters: “/install /quiet /norestart”; StatusMsg: “Installing 64-bit Windows Universal runtime…”; Flags: waituntilterminated