Skip to content

Commit

Permalink
Don't fail /buildLayout if SupportFilesDirBase doesn't exist. (#2103)
Browse files Browse the repository at this point in the history
This can occur on machines that haven't ever run PerfView before.
  • Loading branch information
brianrob authored Aug 26, 2024
1 parent b3130d0 commit 789c875
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PerfView/Utilities/SupportFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ public static bool UnpackResourcesIfNeeded(bool force = false)
// may not be in the EXE itself.
if (unpacked || File.Exists(Path.Combine(SupportFileDirBase, "CleanupNeeded")))
{
Cleanup();
try
{
Cleanup();
}
catch { } // Clean-up may fail if SupportFilesBaseDir doesn't exist. This is especially true if we're running in a custom location or running /buildLayout.
}

return unpacked;
Expand Down

0 comments on commit 789c875

Please sign in to comment.