error when run 'createWindowsInstaller'
See original GitHub issueerror stack:
E:\github\client>node build.js
No dice: Failed with exit code: 4294967295
Output:
System.AggregateException: ����һ�������������� ---> System.Exception: Failed to compile WiX template, command invoked was: 'candle.exe -nologo -ext WixNetFxExtension -out "E:\github\client\release\installer\Setup.wixobj" "E:\github\client\release\installer\Setup.wxs"'
Output was:
Setup.wxs
E:\github\client\release\installer\Setup.wxs(2) : error CNDL0108 : The Product/@Version attribute's value, '!(bind.FileVersion.electron-quick-start.exe)', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534.
E:\github\client\release\installer\Setup.wxs(2) : error CNDL0010 : The Product/@Version attribute was not found; it is required.
�� Squirrel.Update.Program.<createMsiPackage>d__21.MoveNext()
--- �ڲ��쳣��ջ���ٵĽ�β ---
�� System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
�� System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
�� System.Threading.Tasks.Task.Wait()
�� Squirrel.Update.Program.Releasify(String package, String targetDir, String packagesDir, String bootstrapperExe, String backgroundGif, String signingOpts, String baseUrl, String setupIcon, Boolean generateMsi, String frameworkVersion, Boolean generateDeltas)
�� Squirrel.Update.Program.executeCommandLine(String[] args)
�� Squirrel.Update.Program.main(String[] args)
�� Squirrel.Update.Program.Main(String[] args)
---> (�ڲ��쳣 #0) System.Exception: Failed to compile WiX template, command invoked was: 'candle.exe -nologo -ext WixNetFxExtension -out "E:\github\client\release\installer\Setup.wixobj" "E:\github\client\release\installer\Setup.wxs"'
Output was:
Setup.wxs
E:\github\client\release\installer\Setup.wxs(2) : error CNDL0108 : The Product/@Version attribute's value, '!(bind.FileVersion.electron-quick-start.exe)', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534.
E:\github\client\release\installer\Setup.wxs(2) : error CNDL0010 : The Product/@Version attribute was not found; it is required.
�� Squirrel.Update.Program.<createMsiPackage>d__21.MoveNext()<---
mybuild.js
var electronInstaller = require('electron-winstaller');
resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: './release/package/electron-quick-start-win32-x64',
outputDirectory: './release/installer',
authors: 'Me',
exe: 'electron-quick-start.exe'
});
resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
package.json
"scripts": {
"start": "electron .",
"win": "electron-packager . --platform=win32 --arch=x64 --out=release/package"
},
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
How to troubleshoot Windows Installer errors - Microsoft Support
Right-click the Windows Installer service, and then click Start. The service should start without errors. Try to install or to uninstall again.
Read more >Electron electron-winstaller fails to create installers for large ...
When the code to create the installer is run both the exe and msi ... No errors are given in the logs for...
Read more >Electron Windows installer tutorial | Christian Engvall
createWindowsInstaller const path = require('path') getInstallerConfig() .then(createWindowsInstaller) .catch((error) ...
Read more >electron-winstaller-fixed - npm
Start using electron-winstaller-fixed in your project by running ... of code certificate, you can also opt-in to Windows Error Reporting.
Read more >Top 5 electron-winstaller Code Examples - Snyk
execSync(`powershell ${cleanupCertificatePath}`) console.error(`Error packaging: ${e}`) ... registerTask('build-win-install', 'Create Windows Installer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eminoda Already known issue - just remove all dashes from name.
remove dashes & spaces from your
title
&name