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

Windows: Fixes #11508: Prevent installer from recognizing itself as a running instance of Joplin and switch back to electron-builder v24 #11541

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Dec 19, 2024

Summary

This pull request reverts ac28d31, which does not seem to have fixed #11508. ac28d31 upgraded to an alpha version of electron-builder v26 because it includes a fix for this upstream issue. electron-builder v25 has an issue that breaks Joplin's build.

This may fix #11508 and is an alternative to #11540.

Important

This change causes a regression: On my development Windows VM, ac28d31 (the commit that this PR reverts) resolved issue #11142. With this change, the user will need to manually close Joplin, as was the case before v3.2.5. See the testing steps for details.

See also #11540.

Testing plan

Note

I haven't been able to reproduce #11508 on my Windows 11 development virtual machine. The below steps are to test for regressions.

Windows 11:

  1. Build Joplin Setup 3.2.5.exe using yarn dist from packages/app-desktop.
  2. Start Joplin if not already running.
  3. Run Joplin Setup 3.2.5.exe.
  4. Start installing Joplin for the local user.

At this point, the installer shows a "Joplin cannot be closed. Please close it manually and click Retry to continue" dialog.

  1. Close Joplin manually.
  2. Click "Retry".
  3. Wait for installation to complete.
  4. Leave "Run Joplin" checked.
  5. Click "Finish".
  6. Verify that Joplin starts.

@@ -0,0 +1,13 @@
diff --git a/templates/nsis/include/allowOnlyOneInstallerInstance.nsh b/templates/nsis/include/allowOnlyOneInstallerInstance.nsh
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for fixing this. Could you please add a comment here to explain what it does and why it's there (and linking to this PR for example). You can add comments with the # prefix

@laurent22 laurent22 merged commit d9df2dc into laurent22:dev Dec 19, 2024
7 checks passed
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.

Cannot install Joplin 3.2 on Windows
2 participants