mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
prevent installation inside of program files (#3904)
This commit is contained in:
parent
b88751d825
commit
fbb7887877
@ -124,6 +124,10 @@ namespace Bloxstrap
|
|||||||
if (String.Compare(Directory.GetParent(InstallLocation)?.FullName, Paths.UserProfile, StringComparison.InvariantCultureIgnoreCase) == 0)
|
if (String.Compare(Directory.GetParent(InstallLocation)?.FullName, Paths.UserProfile, StringComparison.InvariantCultureIgnoreCase) == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// prevent from installing into the program files folder
|
||||||
|
if (InstallLocation.Contains("Program Files"))
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user