-
Notifications
You must be signed in to change notification settings - Fork 56
Description
π΄ Problem
When downloading and installing an NVIDIA driver via TinyNvidiaUpdateChecker, the tool crashes with:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users......\AppData\Local\Temp\582.28\temp'
This occurs in ComponentHandler.ParseComponentData() (line 14), when calling Directory.GetDirectories(tempPath) without first ensuring the directory exists.
The driver .exe is successfully downloaded to ...\Temp\582.28\, but the tool fails when trying to extract into \temp\ β which it never creates.
π Observed Behavior
- Driver file (e.g.,
NVIDIA-xxx.exe) exists in...\Temp\582.28\ - No
\temp\subfolder is present - Stack trace points to: ComponentHandler.cs:line 14 β Directory.GetDirectories(tempPath)
β
Expected Behavior
The tool should either:
- Create
...\Temp\<id>\tempautomatically before enumeration, or - Handle missing paths gracefully (e.g., log + skip or create on demand).
π Workaround (for users)
- Manually create the folder:
mkdir "C:\Users...\AppData\Local\Temp\582.28\temp" - Or run the downloaded
.exedirectly:
"NVIDIA-*.exe" -s -n
π‘ Root Cause
Missing Directory.CreateDirectory(tempPath) before Directory.GetDirectories(tempPath) in ComponentHandler.cs.
π Suggested Fix
In ComponentHandler.cs, around line 14:
string tempPath = Path.Combine(driverRootPath, "temp");
Directory.CreateDirectory(tempPath); // β ADD THIS LINE
var dirs = Directory.GetDirectories(tempPath);
π₯ Environment
- OS: Windows 10
- Tool: TinyNvidiaUpdateChecker v1.23
- Driver: 582.28
