0

I have a wpf application and I made a setup, and during installation i need to create database, and edit Connectionstring (app.config). So I made CustomAction add Installer.cs and override Install method and it done.

Now i need to install SqlServer Express from my setup, ie before creating database I should check whether the machine have installed sqlserver if not it should install form my application setup.

As far i know using process.start() i can run exe, but problem i am facing where i should keep sql.exe and how to get path

provide any usefull link much appreciated

ScreenShot: enter image description here

Satinder singh
  • 10,100
  • 16
  • 60
  • 102

1 Answers1

4

You can use dotNetInstaller or similar bootstrapper. This solution create only one installer that install other pre-requisites and then execute your Visual Studio setup.

emigue
  • 492
  • 3
  • 13