Skip to content

Conversation

@bergmeister
Copy link
Contributor

@bergmeister bergmeister commented Oct 3, 2018

PR Summary

Fix is to specify the verb (pwsh) for the context menu, otherwise there can be special cases (see issues) where it overrides the default verb, see comment here for details. Thanks to @GeeLaw for the helpful comments.

I will manually check in the next days that the installer will remove the old open entries during upgrade.

PR Checklist

@iSazonov
Copy link
Collaborator

iSazonov commented Oct 3, 2018

If we update current "broken" installation with the new installer what will happen to the old "open" key? I'd expect that we remove it.

@bergmeister
Copy link
Contributor Author

bergmeister commented Oct 3, 2018

During an upgrade, old components get removed, therefore the old registry keys 'should' get removed.
As mentioned in the description, I will manually test this by creating a 6.1.0, 6.1.1 and 6.2.0 installer and go through the upgrade scenarios to be sure since WiX/MSI is known to have unintuitive behaviour.

@SteveL-MSFT
Copy link
Member

@bergmeister the change looks fine, but will wait for your testing results

@bergmeister
Copy link
Contributor Author

bergmeister commented Oct 3, 2018

@SteveL-MSFT @iSazonov
I manually created installers for 6.1.0, 6.1.1 and 6.2.0 and can confirm that the old open registry keys get replaced with the openpwsh keys upon upgrade from 6.1.0 to 6.1.1 and from 6.1.0 to 6.2.0 and the keys also get removed on uninstall.
I created the MSIs as follows:

Import-Module .\build.psm1; Start-PSBuild -Clean -CrossGen -PSModuleRestore -Runtime win7-x64 -Configuration Release; Import-Module .\tools\packaging
Start-PSPackage -Type msi -WindowsRuntime 'win7-x64' -SkipReleaseChecks -Version 6.1.0 # from master
Start-PSPackage -Type msi -WindowsRuntime 'win7-x64' -SkipReleaseChecks -Version 6.1.1 # from PR branch
Start-PSPackage -Type msi -WindowsRuntime 'win7-x64' -SkipReleaseChecks -Version 6.2.0 # from PR branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Context Menu\Folder shortcut problem after installing PS Core 6.1 on Windows Windows "previous versions" now opens pwsh.exe not explorer

4 participants