0

I am trying to make a setup file in C# desktop application project so i use Sql express i want to run the script of the database while install setup file or is there ant way to add the database script inside the setup file to run automatically

Cœur
  • 37,241
  • 25
  • 195
  • 267
Chathuranga
  • 113
  • 1
  • 1
  • 10
  • You could create a CustomAction and execute the Script: [Custom Actions Management in Deployment](http://msdn.microsoft.com/en-us/library/vstudio/bbd7cck3(v=vs.100).aspx) – Marc Dec 05 '13 at 06:13
  • i can only add exe and dll only can not execute script files – Chathuranga Dec 05 '13 at 11:09
  • Here is a example (see Creating Custom Action Exe): [Install Windows Service using Custom Actions](http://www.codeproject.com/Articles/26091/Install-Windows-Service-using-Custom-Actions) – Marc Dec 06 '13 at 06:23

0 Answers0