Search code examples
c#setup-projectlocaldbsilent-installer

How to automatically install SqlLocalDB after installing my C# app


I want to create an installer for my C# application and add SqlLocalDB to it to install it automatically after the application is installed, how i do that? If SqlLocalDB can be installed in silent mode that's even better.

Thanks and best regards


Solution

  • You would need to download the SqlLocalDB executable or the .msi from Microsoft Website then include it in the setup scripts.

    Inno-Setup Compiler can work fine. So along with your C# program files you will need to attach the SqlLocalDB executable.

    Here is a link to Inno Setup

    A link to SQLLocalDb