mirror of
https://github.com/fasteddy516/SimplySerial.git
synced 2024-11-13 22:01:46 +00:00
Detect 'Scoop' install in --version output
This commit is contained in:
parent
763488c1ba
commit
41dcb22bc6
@ -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}");
|
||||
|
Loading…
Reference in New Issue
Block a user