You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@electron-forge/maker-msix errors only shown in Event Viewer and name is overriden by productName in package.json #4247
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Forge version
7.11.1
Electron version
40.6.0
Operating system
Windows 11
Last known working Forge version
No response
Expected behavior
I ran Electron Forge make with maker config very close to the example documentation code provided. It specifies a name without spaces. The displayable name of my app has spaces. I have a productName variable specified in the package.json that has those spaces.
I expect the example code to succeed, or at least fail with a helpful error message if the app name contains illegal characters. If that can't be done, the documentation should at least warn the user.
Actual behavior
❯ Making distributables
✖ Making a msix distributable for win32/x64
› Failed running C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\makeappx.exe Exit Code: 1 See previous errors for details
◼ Running postMake hook
error: stderr of C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\makeappx.exe
[
""
]
An unhandled rejection has occurred inside Forge:
Error: Failed running C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\makeappx.exe Exit Code: 1 See previous errors for details
at ChildProcess.<anonymous> (C:\Users\MyUserName\work\my-short-app-name\node_modules\electron-windows-msix\lib\bin.js:30:31)
at ChildProcess.emit (node:events:519:28)
at ChildProcess.emit (node:domain:489:12)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
If I go into the WIndows Event Viewer, under Microsoft-Windows-AppxPackaging/Operational, I can see that the real error is:
error 0xC00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 13, Reason: 'My Fancy App Name' violates pattern constraint of '[-.A-Za-z0-9]+'.
The attribute 'Name' with value 'My Fancy App Name' failed to parse.
Electron Forge should output some sort of helpful error in this case (or at least let the user know that there may be helpful information in the Windows Event Viewer)
Steps to reproduce
It seemed to be pulling the string from the productName variable in my package.json, and once I deleted that, it built. So specify a productName in the package.json that has spaces.
Further on my journey to trying to build an msix, I noticed that if the certificate name doesn't match your publisher, Electron Forge actually straight up crashes - like, exits back to the main prompt with the little loading symbol still there. The actual error is only visible in Event Viewer. Let me know if I should open that as a separate issue; I am using a hookModulePath.
From Event Viewer
error 0x8007000B: The app manifest publisher name (CN=ShortCoporateName) must match the subject name of the signing certificate (CN=Full Corporate Name, O=Full Corporate Name, L=City, S=State, C=Country).
Activity
Emily1799 commentedon May 7, 2026
Further on my journey to trying to build an msix, I noticed that if the certificate name doesn't match your publisher, Electron Forge actually straight up crashes - like, exits back to the main prompt with the little loading symbol still there. The actual error is only visible in Event Viewer. Let me know if I should open that as a separate issue; I am using a hookModulePath.
From Event Viewer
error 0x8007000B: The app manifest publisher name (CN=ShortCoporateName) must match the subject name of the signing certificate (CN=Full Corporate Name, O=Full Corporate Name, L=City, S=State, C=Country).