Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
JustinGrote opened this issue Sep 30, 2021 · 1 comment
Labels
Area-Install Issue-Bug Something isn't working

Comments

@JustinGrote
Copy link
Contributor

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

@alerickson
Copy link
Member

Closing this issue as it is resolved now, I believe via PR #525.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Install Issue-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants