Skip to content

If Gauge exe cannot be deleted, the uninstall command should not be successful #8

@sswaroopgupta

Description

@sswaroopgupta

Expected behavior
choco uninstall should be successful only if gauge.exe is deleted successfully.

Actual behavior

Cannot remove item C:\Program Files\gauge\bin\gauge.exe: Access to the path 'gauge.exe' is denied.
Cannot remove item C:\Program Files\gauge\bin: The directory is not empty.

Cannot remove item C:\Program Files\gauge: The directory is not empty.

Only an exit code of non-zero will fail the package by default. Set
 `--failonstderr` if you want error messages to also fail a script. See
 `choco -h` for details.
 Skipping auto uninstaller - No registry snapshot.
 gauge has been successfully uninstalled.

Even if gauge.exe is not deleted gauge has been successfully uninstalled message is displayed

Steps to replicate

  • Install gauge using choco install gauge
  • Open Visual studio
  • Create a new gauge project. Run the tests
  • Try uninstalling gauge choco uninstall gauge without closing Visual studio

The behavior mentioned in actual behavior can be observed.

Version

Gauge version: 0.9.9
Commit Hash: 8db625f

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