Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating wixobj file. #5

Open
trevwaddell opened this issue Jan 22, 2018 · 6 comments
Open

Error creating wixobj file. #5

trevwaddell opened this issue Jan 22, 2018 · 6 comments

Comments

@trevwaddell
Copy link

Im getting the following error when the compile() method runs:

Unhandled rejection Error: Could not create wixobj file. 
Code: 103 StdErr:  
StdOut: candle.exe : error CNDL0103 : 
The system cannot find the file 'dist\electronwin.wxs' with type 'Source'.

The create method runs and does make a .wxs file though.
Here is repo I'm working with: https://github.com/trevwaddell/electron-wix-test

I'm running this in a windows 10 vm with virtual box. I installed wix toolset and added them to my class path.

@promosjotte
Copy link

Same for me, but running on a native windows 10.

@promosjotte
Copy link

@felixrieseberg any idea?

@koenverburg
Copy link

Hey, Guys any luck so far?

@will-steffen
Copy link

I was having this problem, then I changed [outputDirectory: './build'] to [outputDirectory: 'C:/FullpPath/build'], and now it doesn't throw this error.

But I still not running fine by other problems =[

@koenverburg
Copy link

I got it working with the following code

const path = require('path');
const { MSICreator } = require('electron-wix-msi');

const msiCreator = new MSICreator({
	appDirectory: path.resolve(__dirname, '..', 'dist', '[ClientName]'),
	outputDirectory: path.resolve(__dirname, '..', 'dist'),

	exe: '[ClientName]',
	name: '[ClientName]',
	description: '[ClientName]',
	manufacturer: '[ClientName]',
	version: '1.0.0'
});

async function build() {
	await msiCreator.create();
	await msiCreator.compile();
}

build().catch(console.error);

Note that I go up one directory because I run this file from <projectRoot>/bin/thisfile.js

@ALapinskas
Copy link

Had same problem, changing paths to absolute path names solves it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants