79440566

Date: 2025-02-14 21:21:15
Score: 3
Natty:
Report link

Kind people in the comments pushed me into different ideas and I was able to find and fix the issue.

The issue was the path in this method below, System32 was missing.

private bool IsWinPE()
{
    string windowsDir = "X:\\Windows\\System32";
    return File.Exists(Path.Combine(windowsDir, "winpeshl.ini")) ||
           File.Exists(Path.Combine(windowsDir, "startnet.cmd"));
}

It was my mistake, but this error misguided me and I was looking completely different directions. So if someone will have same problem, this answer may be the solution. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have same problem
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tiffany