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 creating wixobj file.

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

12reactions
koenverburgcommented, Mar 13, 2018

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

2reactions
will-steffencommented, Mar 13, 2018

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 =[

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error creating wixobj file. · Issue #5 - GitHub
Im getting the following error when the compile() method runs: Unhandled rejection Error: Could not create wixobj file.
Read more >
WiX 3.11.1 -- error LGHT0103 : The system cannot find the file
Looking at your WiX code I can see that you are getting confused between the MSI destination and the source folder paths.
Read more >
Patchwork - FireGiant
The WiX toolset can also create patch installation packages (.msp files). ... candle.exe Error.wxs light.exe -out Error\Product.msi Error.wixobj candle.exe ...
Read more >
Introducing Windows Installer XML | WiX 3.6 - Packt Subscription
Creating a Windows Installer, or MSI package, has always been a challenging task. ... Links and binds .wixobj files to create a final...
Read more >
Creating a basic MSI-based installer using WiX Toolset
wxs file under <Feature> element. Output from this tool is Product.Files.wxs file. candle.exe - To generate *.wixobj file with some preprocessor ...
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