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

feat(nsis): add ShutdownBlockReasonCreate for blocking Win Shutdown prompt #7251

Merged
merged 2 commits into from
Nov 19, 2022

Conversation

ptol
Copy link
Contributor

@ptol ptol commented Nov 11, 2022

I want a user to undestand why they cannot shutdown a computer, because the installation process have not been completed yet.
On windows we can use ShutdownBlockReasonCreate to show a better message when shutdown is blocked instaed of default one.
Before
1

After

2

Use ShutdownBlockReasonCreate show better message why shutdown is blocked
@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2022

🦋 Changeset detected

Latest commit: 5e44bac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Minor
dmg-builder Minor
electron-builder-squirrel-windows Minor
electron-builder Minor
electron-forge-maker-appimage Minor
electron-forge-maker-nsis-web Minor
electron-forge-maker-nsis Minor
electron-forge-maker-snap Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for car-park-attendant-cleat-11576 ready!

Name Link
🔨 Latest commit 5e44bac
🔍 Latest deploy log https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/637832b1654e51000702d309
😎 Deploy Preview https://deploy-preview-7251--car-park-attendant-cleat-11576.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ptol
Copy link
Contributor Author

ptol commented Nov 11, 2022

I don't know much about nsis scripting so I am not sure if it's a correct way to do it. But it works.

@mmaietta
Copy link
Collaborator

Thanks for opening this PR! I'm not sure I understand it though. What business requirements/flow is this implementing for? Could you add more details to the PR description?

@ptol
Copy link
Contributor Author

ptol commented Nov 15, 2022

I have added more details. I hope it's more clear now.

@mmaietta mmaietta changed the title ShutdownBlockReasonCreate feat(nsis): add ShutdownBlockReasonCreate for blocking Win Shutdown prompt Nov 18, 2022
@mmaietta mmaietta merged commit 45a0f82 into electron-userland:master Nov 19, 2022
@mmaietta
Copy link
Collaborator

Thanks for the contribution!

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

Successfully merging this pull request may close these issues.

None yet

2 participants