Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 758807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:31:24+00:00 2026-05-14T15:31:24+00:00

I have an application written in C# which depends on sqlite managed provider. The

  • 0

I have an application written in C# which depends on sqlite managed provider. The sqlite provider is platform dependent (there are two dlls for 32 and 64 bit applications with the same name). The application loads the desired one at runtime based on OS.

The problem is that while creating an installer I cannot add 64 bit mode dll to the setup project as I am getting the following error: File ” targeting ” is not compatible with the project’s target platform ”.

I would use other installer but I have a custom action which must be invoked during the setup.

So I wanted to know if there is an installer which will let me add 32 and 64 bit dll to it and execute custom action written in C#.

One possible solution is to have two installers but I would like to avoid it if possible.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:31:25+00:00Added an answer on May 14, 2026 at 3:31 pm

    The Inno Setup Installer support the feature wich you request, this installer is very flexible and reliable, exist many samples of scripts in the web to make a conditional installation depending of the architecture of the final client.

    Check this script located in C:\Program Files\Inno Setup 5\Examples\64BitThreeArch.iss

     -- 64BitThreeArch.iss --
    ; Demonstrates how to install a program built for three different
    ; architectures (x86, x64, Itanium) using a single installer.
    
    ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
    
    [Setup]
    AppName=My Program
    AppVerName=My Program version 1.5
    DefaultDirName={pf}\My Program
    DefaultGroupName=My Program
    UninstallDisplayIcon={app}\MyProg.exe
    Compression=lzma2
    SolidCompression=yes
    OutputDir=userdocs:Inno Setup Examples Output
    ; "ArchitecturesInstallIn64BitMode=x64 ia64" requests that the install
    ; be done in "64-bit mode" on x64 & Itanium, meaning it should use the
    ; native 64-bit Program Files directory and the 64-bit view of the
    ; registry. On all other architectures it will install in "32-bit mode".
    ArchitecturesInstallIn64BitMode=x64 ia64
    
    [Files]
    ; Install MyProg-x64.exe if running on x64, MyProg-IA64.exe if
    ; running on Itanium, MyProg.exe otherwise.
    Source: "MyProg-x64.exe"; DestDir: "{app}"; DestName: "MyProg.exe"; Check: IsX64
    Source: "MyProg-IA64.exe"; DestDir: "{app}"; DestName: "MyProg.exe"; Check: IsIA64
    Source: "MyProg.exe"; DestDir: "{app}"; Check: IsOtherArch
    Source: "MyProg.chm"; DestDir: "{app}"
    Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
    
    [Icons]
    Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"
    
    [Code]
    function IsX64: Boolean;
    begin
      Result := Is64BitInstallMode and (ProcessorArchitecture = paX64);
    end;
    
    function IsIA64: Boolean;
    begin
      Result := Is64BitInstallMode and (ProcessorArchitecture = paIA64);
    end;
    
    function IsOtherArch: Boolean;
    begin
      Result := not IsX64 and not IsIA64;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which is written entirely as html/js (there is no server).
I have an android application (written in java) which has two buttons ( connect
I have application written in Visual Studio 2008 which I deploy with ClickOnce to
I have a application written in wxPython which I want to make multilingual. Our
I have application which needs to use a dll (also written by me) which
We have a rather large and complex application written in Java which is running
I have written a application which runs in the background. I want to write
I have written an application which triggers an IP Camera to stream it's data
i have an windows mobile application written in c# compact framework which use barcode
I have a custom built application framework written in PHP which I have been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.