electron / electron/windows-installer
Unable to package a installer.
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 267
- Avg merge
- 5h 38m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.