dotnet / dotnet/vscode-dotnet-runtime
[NETE2ESDK][Windows]Uninstalling should be failed if the runtime files are open in another program
- Dominant language
- TypeScript
- Stars
- 209
- Forks
- 455
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug.
In output, it shows that the runtime is uninstalled successfully even though the runtime files are open in another program
### Please attach log file(s) here if you have any.
[logs.zip](https://github.com/user-attachments/files/19753720/logs.zip)
The log file location should be copied to your clipboard if you came from VS Code.
### Reproduction Steps
1. On Windows, launch VSCode and run 'Sample: Acquire .NET runtime' and enter a version like 8.0.
2. After installed successfully, open cmd and go to the installed runtime file path, so that the runtime files are open in cmd.

4. On VSCode, run '.NET Install Tool: Uninstall .NET' to uninstall the runtime.
5. Observe
### Expected Behavior
Uninstalling should be failed if the runtime is open in another program
### Exceptions & Errors (if any)
In output, it shows that the runtime is uninstalled successfully, but the runtime files are not deleted.

Note:
1. This issue is also repro on v2.3.2 and v2.3.1
### .NET Install Tool Version
v2.3.3
### Your operating system? Please provide more detail, such as the version and or distro above.
Windows
### VS Code Version
1.99.2
Contributor guide
Assessment
This issue has not been assessed yet.