Install sql express 2005 and backup database when installing the application

I have a C # wpf application that requires a SQL Express 2005 database and I want to deploy Sql Express with my application. So, I googled, but did not find any valuable information on how to create an installer that will

  1. install Sql Express 2005 and 
  2. restore my backup database 

before my project? I tried to install SqlExpr.exe without much action in the visual studio setup project, but this is not possible because 2 msi installers cannot work at the same time. So, is there a free and easy to use tool that supports this type of installation scripts, or do I need to write a custom exe that will install all of this. please provide an example.

EDIT

Is a click on the case? I want to have the installer files in one place and I do not want to install from the server as soon as I click once.

Thank you so much

+3
source share
1 answer

We have the same needs for one of our installers. Our solution was to write a bootable exe, as you mentioned. We use exe to deploy the sql express installation, and then our own MSI.

+3
source

Source: https://habr.com/ru/post/1733357/


All Articles