diff --git a/Bloxstrap/Installer.cs b/Bloxstrap/Installer.cs index 11e7b35..9e2f6f2 100644 --- a/Bloxstrap/Installer.cs +++ b/Bloxstrap/Installer.cs @@ -104,6 +104,10 @@ namespace Bloxstrap 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;