Detect 'Scoop' install in --version output

This commit is contained in:
Edward Wright 2023-05-16 10:17:31 -04:00
parent 763488c1ba
commit 41dcb22bc6

View File

@ -752,13 +752,23 @@ namespace SimplySerial
{
string installType;
// determine installation type (user/system/standalone)
if (appFolder.ToLower().Contains("appdata\\roaming"))
// determine installation type (scoop/user/system/standalone)
if (appFolder.ToLower().Contains("scoop"))
{
installType = "Scoop";
}
else if (appFolder.ToLower().Contains("appdata\\roaming"))
{
installType = "User";
}
else if (appFolder.ToLower().Contains("program files"))
{
installType = "System";
}
else
{
installType = "Standalone/Manual";
}
Console.WriteLine($"SimplySerial version {version}");
Console.WriteLine($" Installation Type : {installType}");