diff --git a/Bloxstrap/Installer.cs b/Bloxstrap/Installer.cs index 11e7b351..9e2f6f29 100644 --- a/Bloxstrap/Installer.cs +++ b/Bloxstrap/Installer.cs @@ -104,6 +104,10 @@ private bool ValidateLocation() if (InstallLocation.StartsWith("\\\\")) return false; + if (InstallLocation.StartsWith(Path.GetTempPath(), StringComparison.InvariantCultureIgnoreCase) + || InstallLocation.Contains("\\Temp\\", StringComparison.InvariantCultureIgnoreCase)) + return false; + // prevent from installing to a onedrive folder if (InstallLocation.Contains("OneDrive", StringComparison.InvariantCultureIgnoreCase)) return false;