in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

x86 AND x64 versions in the same directory?

Last post 01-06-2009 11:13 AM by iunknown. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-06-2009 8:46 AM

    x86 AND x64 versions in the same directory?

      1024x768 Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

    I have to bundle 2 products together, both of which use SQLite.  One is forced to run in x86 mode so it needs the 32bit version of SQLite.net, the other is managed code so it could use either the 32 bit version or the x64 bit one.


    Right now, I’m just installing the 32 bit version, but I know that it’s not going to work when someone tries to run it on a 64 bit OS.

    Both products are installed to the same directory so I can’t just install them both.

     

    I THINK I should install them to the GAC like the SQLite installer does, but I can’t seem to get WISE to let me.

     

    Any advice?

     

    Thank you,

     

    Gene

    Filed under:
  • 01-06-2009 9:02 AM In reply to

    Re: x86 AND x64 versions in the same directory?

     is the magic snippet of information that I'm missing that I need to use GacUtil /i on both the x86 and the x64 dlls instead of install the x86 version directly to the program folder?

  • 01-06-2009 10:58 AM In reply to

    Re: x86 AND x64 versions in the same directory?

    You have three options:

    1. Compile your managed app to run in x86 mode instead of "Any CPU"
    2. Include both editions of the SQLite library in your setup, and determine during setup which one to install.
    3. Attempt to register both editions into the GAC during the setup.  On an x86 OS, the x64 gac installation will fail -- you'll have to deal with that gracefully.
  • 01-06-2009 11:13 AM In reply to

    Re: x86 AND x64 versions in the same directory?

    Thanks Robert,

    I think my only options are 1 and 3 since I have  2 apps using sqlite, one 32 bit and one managed; the managed one would break on x64.

    thank you for all you do.

    Gene

Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems