question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when run 'createWindowsInstaller'

See original GitHub issue

error 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:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

15reactions
Kurmaevcommented, Aug 30, 2017

@eminoda Already known issue - just remove all dashes from name.

0reactions
geek-ibrarcommented, Jan 21, 2021

remove dashes & spaces from your title & name

electronInstaller.createWindowsInstaller({
    .......
    title:"app name without dashes & spaces",
    name:"package id without dashes & spaces",
    .....
  });
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found