Skip to content

[NETE2ESDK][Windows]Uninstalling should be failed if the runtime files are open in another program #2242

Open
@NicoleWang001

Description

@NicoleWang001

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
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.

Image

  1. On VSCode, run '.NET Install Tool: Uninstall .NET' to uninstall the runtime.
  2. 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.

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions