Skip to content
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

Install/Update fails if Discord is already installed and is selected #2964

Open
WrayOfSunshine opened this issue Oct 21, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@WrayOfSunshine
Copy link

Describe the bug

If Discord is already installed (even if installed via WinUtil) and then is selected when choosing "Install/Upgrade Selected", the script does not fail over to the next install/upgrade when it should.

To Reproduce

Steps to reproduce the behavior:

  1. Click on Install tab.
  2. Select Discord
  3. Click on "Install/Upgrade Selected"
  4. After install, click on "Install/Upgrade Selected" again (replicates error generated if you use "Get Installed" and then do an Install/Upgrade).
  5. Script hangs at "Attempt installation of Discord.Discord with user scope"

Expected behavior

The script should get the error report from winget that it cannot upgrade this package and move on to the next package or finish, as appropriate. This happens with other packages.

Additional context

Notable - if I ctrl+c on the powershell window, I then get a popup asking for user credentials to be utilized to install Discord (this does not appear for me until I attempt to fail out of the install). Canceling that credential window gives an error about not being provided credentials, but still does not fail out of the install attempt sufficiently to allow working with the GUI.

@WrayOfSunshine WrayOfSunshine added the bug Something isn't working label Oct 21, 2024
@WrayOfSunshine
Copy link
Author

I would personally prefer to see Discord installed on an all-users basis rather than per-user, in any case, but that's not relevant to this particular issue.

@ChrisTitusTech
Copy link
Owner

The Discord app auto updates. I'd recommend not having it checked when updating. I'll look into omiting if it detects it already installed.

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

No branches or pull requests

2 participants