mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -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)
|
||||
return false;
|
||||
|
||||
// prevent from installing into the program files folder
|
||||
if (InstallLocation.Contains("Program Files"))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user