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.

Unable to package a installer.

See original GitHub issue

I created a web app wrap using nativefier --name ynu_courses -a ia32 --app-version 1.0.0 --build-version 1.0.0 -c --disable-context-menu http://113.55.12.52:50120/, then I want to create a installer for this built app. Then I write a script named build.js which the contents of the file is belows.

// build.js
var electronInstaller = require('electron-winstaller');

resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: 'ynu_courses-win32-ia32',
    outputDirectory: 'dist',
    authors: 'Liu.D.H',
    exe: 'ynu-courses.exe',
    version: '1.0.0',
    title: 'ynu-courses'
  });

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
D:\code\weixin\ynu_courses>node build.js
No dice: Failed with exit code: 4294967295
Output:

System.AggregateException: One or more errors occurred. ---> System.Exception: Failed to compile WiX template, command invoked was: 'candle.exe -nologo -ext WixNetFxExtension -out "D:\code\weixin\ynu_courses\dist\Setup.wixobj" "D:\code\weixin\ynu_courses\dist\Setup.wxs"'

Output was:
Setup.wxs
D:\code\weixin\ynu_courses\dist\Setup.wxs(3) : error CNDL0108 : The Product/@Version attribute's value, '!(bind.FileVersion.ynu-courses-nativefier-0256db.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.
D:\code\weixin\ynu_courses\dist\Setup.wxs(3) : error CNDL0010 : The Product/@Version attribute was not found; it is required.

I noted the error was related to the Product/@Version attribute, but I have specified in the build.js. Any suggestion about this problem.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

6reactions
benshabatnoamcommented, May 1, 2019

Had the same problem and fixed it with the help of @Kurmaev in #203 (10x Kurmaev)

In my case, my app name in package.json was “xxxx-xxxxx”, when I removed the (-), having it “xxxxxxxx”, I was able to successfully build the installer. 🤘

1reaction
robertdudaacommented, Jan 31, 2019

Now using electron-forge instead. Works pretty well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed: “There is a problem with this Windows installer package ...
Method 1: Make sure you have administrative permissions · Method 2: Use the Program Install and Uninstall troubleshooter · Method 3: Repair the...
Read more >
How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Error: "This installation package could not be opened. Contact ...
Solution · 1. Download again Pix4Dmapper. Store it on the local computer. · 2. Once the file is on the local computer, right-click...
Read more >
unable to install package in R Studio - Warning
Please find below errors while installing the package. install.packages("ggplot2") Warning in install.packages : unable to access index for repository https:// ...
Read more >
I am unable to install packages in R - Stack Overflow
You need to set your library path to a folder that exists. At the shell prompt type: export R_LIBS="C:/users/your_username/R_libs" mkdir C ...
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