Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Installer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,24 @@ Automated mode with command-line arguments
return (int)InstallationResultCode.InvalidArguments;
}

Console.Write("Trust server certificate? (Y/N, default Y): ");
string? trustResponse = Console.ReadLine()?.Trim();
trustCert = string.IsNullOrWhiteSpace(trustResponse)
|| trustResponse.Equals("Y", StringComparison.OrdinalIgnoreCase);

Console.WriteLine("Encryption level:");
Console.WriteLine(" [O] Optional (default)");
Console.WriteLine(" [M] Mandatory");
Console.WriteLine(" [S] Strict");
Console.Write("Choice (O/M/S, default O): ");
string? encryptResponse = Console.ReadLine()?.Trim();
encryptionLevel = encryptResponse?.ToUpperInvariant() switch
{
"M" => "Mandatory",
"S" => "Strict",
_ => "Optional"
};

Console.WriteLine("Authentication type:");
Console.WriteLine(" [W] Windows Authentication (default)");
Console.WriteLine(" [S] SQL Server Authentication");
Expand Down
Loading