Skip to content

fix(nsis): undefined vars when customCheckAppRunning is defined #9245

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dlon
Copy link
Contributor

@dlon dlon commented Aug 7, 2025

Currently, if your NSIS script defines customCheckAppRunning, building fails with Variable "CmdPath" not referenced or never set, wasting memory!. PR fixes this by not always declaring the unused variables.

@mmaietta
Copy link
Collaborator

mmaietta commented Aug 7, 2025

Can you please add a changeset to this using pnpm generate-changeset so that it's properly tagged in the release notes? It seems I can't do so from my side

@dlon dlon force-pushed the fix-undefined-vars-nsis branch from 340fa43 to 4217fe8 Compare August 7, 2025 18:36
Copy link

changeset-bot bot commented Aug 7, 2025

🦋 Changeset detected

Latest commit: b00d940

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 Patch
dmg-builder Patch
electron-builder-squirrel-windows Patch
electron-builder Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

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

@dlon
Copy link
Contributor Author

dlon commented Aug 7, 2025

Can you please add a changeset to this using pnpm generate-changeset so that it's properly tagged in the release notes? It seems I can't do so from my side

Sure. Done

@dlon dlon force-pushed the fix-undefined-vars-nsis branch from 4217fe8 to 1784017 Compare August 12, 2025 13:59
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.

2 participants