Skip to content

Commit 2236f44

Browse files
Updated database installer
1 parent 857d377 commit 2236f44

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

DeviceSQL.DatabaseSetupUtility/MainForm.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ private void installButton_Click(object sender, EventArgs e)
150150

151151
DialogResult = DialogResult.OK;
152152

153+
MessageBox.Show("Installation Complete");
154+
153155
Close();
154156

155157
}
Binary file not shown.

DeviceSQL.DatabaseSetupUtility/Resources/DeviceSQL_Install_Script_02.sql

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

DeviceSQL.Utilities.DeploymentScriptFormatter/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ static void Main(string[] args)
1818

1919
var installScriptFolderName = @"..\..\..\Version 1.0\";
2020
var installScriptFileName = @"..\..\..\Version 1.0\Install Script.sql";
21-
var installScriptText = File.OpenText(installScriptFileName).ReadToEnd();
21+
var installScriptText = "";
22+
using (var streamReader = File.OpenText(installScriptFileName))
23+
{
24+
installScriptText = streamReader.ReadToEnd();
25+
}
2226

2327
installScriptText = $"CREATE DATABASE [DeviceSQL] \r\n" +
2428
"\r\n" +

Version 1.0/Install Script.sql

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)