Skip to content

Install Silently Completes incorrectly if a dependent module was in use and could not be upgraded. #497

@JustinGrote

Description

@JustinGrote

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

install-psresource microsoft.graph.authentication
ipmo microsoft.graph.authentication
install-psresource microsoft.graph.plusplus -verbose

Expected behavior

microsoft.graph.authentication would be upgraded

Actual behavior

VERBOSE: Attempting to delete 'C:\Users\JGrote\OneDrive - Allied Digital Services LLC\Documents\PowerShell\Modules\Microsoft.Graph.Authentication\1.7.0'
VERBOSE: Unable to successfully install package 'Microsoft.Graph.Authentication': 'Access to the path 'Microsoft.Graph.Auth.dll' is denied.'
VERBOSE: Attempting to delete 'C:\Users\JGrote\AppData\Local\Temp\04d0b25b-0cf6-4822-a3d8-7e3c1da7919d'
VERBOSE: Successfully deleted 'C:\Users\JGrote\AppData\Local\Temp\04d0b25b-0cf6-4822-a3d8-7e3c1da7919d'

And silently completes without warning or error

Error details

VERBOSE: Unable to successfully install package 'Microsoft.Graph.Authentication': 'Access to the path 'Microsoft.Graph.Auth.dll' is denied.'

Environment data

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     3.0.11     beta       powershellget                       {Find-PSResource, Get-InstalledPSResource, Get-PS…

Key   : PSVersion
Value : 7.1.4
Name  : PSVersion


Key   : PSEdition
Value : Core
Name  : PSEdition


Key   : GitCommitId
Value : 7.1.4
Name  : GitCommitId


Key   : OS
Value : Microsoft Windows 10.0.22000
Name  : OS


Key   : Platform
Value : Win32NT
Name  : Platform


Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}
Name  : PSCompatibleVersions


Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion


Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion


Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions