Unable to package a installer.
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:2
- Comments:5
Top 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 >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
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. 🤘
Now using electron-forge instead. Works pretty well.