-
Notifications
You must be signed in to change notification settings - Fork 384
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
(spotify) Remove Windows Store version #2263
base: master
Are you sure you want to change the base?
(spotify) Remove Windows Store version #2263
Conversation
❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look. |
a6b0933
to
eacfe9e
Compare
❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look. |
AppVeyor is failing for to a time out after running the scheduled task. I didn't changed this part of the code so I'm going to assume it's normal? |
if ($env:ChocolateyForce) { | ||
#when you remove a package, you don't remove it per architecture. You just remove it for all architectures. | ||
Write-Warning 'Attempting to remove Spotify installed from the Microsoft Store.' | ||
Remove-AppxPackage -Package $installedAppXPackage[0].PackageFullName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, we should not remove the Microsoft Store application in this package.
It is still two different applications, which goes against having one software for each package.
IMO, I think we should throw an exception instead, no matter what, possibly with details on how the user can uninstall the application manually or add a new package that only has the purpose of removing the Store version of Spotify (that we possibly can depend on in this package).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A package parameter? Warn them but if they add the package parameter it also uninstalls. Seems like the best of both worlds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm. Add it behind a package parameter 🤔.
Yeah, could work as well. Let's go with that instead. I still do think a separate package could be beneficial though, but we can go with the parameter for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the indentation used on the lines changed to follow the editor config file.
The editor config file specifies that indentations should only be two spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation is inconsistent. I'll update the file to match 2 spaces.
I'm honestly not sure. It could be that appveyor doesn't allow scheduled tasks to be created... |
Dear contributor, As this PR seems to have been inactive for 30 days after changes or additional information |
I've reopened this PR as I simply haven't had time to work on it. |
❌ Package verification failed, please review the Appveyor Logs and the provided Artifacts before requesting a human reviewer to take a look. |
For what it's worth, I attempted to install the version of this package in CCR, and it seemed to do that same thing for me, as soon as I manually uninstalled the Spotify store app, then it didn't timeout and installed without issue. Depending on what AppVeyor is using, this could be the same thing (I would have thought it'd be on a Server OS without the Store, but maybe not 🤷 ) |
It is reporting that it is running on |
Description
Detects and removes the Windows Store version of Spotify if it's already installed and the
--force
option is used. Warn otherwise.Motivation and Context
If the Windows Store version is installed, the package will not install.
How Has this Been Tested?
Run in Windows 10 with the Microsoft Store version of Spotify installed.
Screenshot (if appropriate, usually isn't needed):
Run without the
--force
option.Run with the
--force
option:Types of changes
Checklist: