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

Migrate old uninstall registry key #2023

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Migrate old uninstall registry key #2023

merged 1 commit into from
Aug 25, 2020

Conversation

dlon
Copy link
Member

@dlon dlon commented Aug 25, 2020

electron-builder recently reverted where the NSIS install/uninstall information is stored. This causes upgrades from version 2020.5 of the app to fail.

As was done before, this PR simply moves the registry key in customInit to its new path, fixing upgrades from older versions. This does break downgrades, though. The app has to be fully uninstalled before an older version can be installed.


This change is Reviewable

Copy link
Contributor

@mvd-ows mvd-ows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dlon)


dist-assets/windows/installer.nsh, line 602 at r1 (raw file):

	Pop $0

	# Migrate 2020.5 to current

Any info on the exact range of versions?


dist-assets/windows/installer.nsh, line 603 at r1 (raw file):

	# Migrate 2020.5 to current
	registry::MoveKey "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2A356FD4-03B7-4F45-99B4-737BE580DC82}" "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${APP_GUID}"

Is the GUID being migrated from the same as APP_GUID? Should it still be expanded like that?

Copy link
Member Author

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @mvd-ows)


dist-assets/windows/installer.nsh, line 602 at r1 (raw file):

Previously, mvd-ows wrote…

Any info on the exact range of versions?

Done.


dist-assets/windows/installer.nsh, line 603 at r1 (raw file):

Previously, mvd-ows wrote…

Is the GUID being migrated from the same as APP_GUID? Should it still be expanded like that?

Done. The reason I expanded it is in case it is ever changed. But in that case, this stuff needs updates regardless.

Copy link
Contributor

@mvd-ows mvd-ows left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@dlon dlon force-pushed the fix-nsis-install branch from 7ea0a63 to 0cdd927 Compare August 25, 2020 13:02
@dlon dlon merged commit 6197f55 into master Aug 25, 2020
@dlon dlon deleted the fix-nsis-install branch August 25, 2020 13:10
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.

2 participants