mirror of
https://github.com/fasteddy516/SimplySerial.git
synced 2024-11-14 14:04:36 +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;
|
string installType;
|
||||||
|
|
||||||
// determine installation type (user/system/standalone)
|
// determine installation type (scoop/user/system/standalone)
|
||||||
if (appFolder.ToLower().Contains("appdata\\roaming"))
|
if (appFolder.ToLower().Contains("scoop"))
|
||||||
|
{
|
||||||
|
installType = "Scoop";
|
||||||
|
}
|
||||||
|
else if (appFolder.ToLower().Contains("appdata\\roaming"))
|
||||||
|
{
|
||||||
installType = "User";
|
installType = "User";
|
||||||
|
}
|
||||||
else if (appFolder.ToLower().Contains("program files"))
|
else if (appFolder.ToLower().Contains("program files"))
|
||||||
|
{
|
||||||
installType = "System";
|
installType = "System";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
installType = "Standalone/Manual";
|
installType = "Standalone/Manual";
|
||||||
|
}
|
||||||
|
|
||||||
Console.WriteLine($"SimplySerial version {version}");
|
Console.WriteLine($"SimplySerial version {version}");
|
||||||
Console.WriteLine($" Installation Type : {installType}");
|
Console.WriteLine($" Installation Type : {installType}");
|
||||||
|
Loading…
Reference in New Issue
Block a user