electron-userland / electron-wix-msi

:dvd: Create traditional MSI installers for your Electron app
MIT License
319 stars 93 forks source link

Error: spawn candle.exe ENOENT #14

Open JasminDreasond opened 6 years ago

JasminDreasond commented 6 years ago

I'm trying to execute this script...

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

async function nya() {

// Step 1: Instantiate the MSICreator
const msiCreator = new MSICreator({
    appDirectory: __dirname + '/app',
    outputDirectory: __dirname + '/install',
    description: "Tiny Rec Helper",
    exe: "tiny_rec_helper-0.2.3-setup",
    name: "Tiny Rec Helper",
    manufacturer: "Tiny Jasmini",
    version: "0.2.3",
    shortName: "TRH",
    programFilesFolderName: "Tiny Rec Helper",
    upgradeCode: "6a92dd3f-3c36-48c3-92b2-ce1974a6c83d"
});

// Step 2: Create a .wxs template file
await msiCreator.create();

// Step 3: Compile the template to a .msi file
await msiCreator.compile();

}

nya();

but happen it...

electron-wix-msi: Using light.exe (3.11.1.2318) and candle.exe (3.11.1.2318) creator.js:77 Error: spawn candle.exe ENOENT util.js:1031 at _errnoException (util.js:1031:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19) at onErrorNT (internal/child_process.js:389:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9)

tiny_rec_helper-0.2.2-setup.wxs(22156) : error CNDL0014 : The ComponentRef/@Id attribute's value, '.eslintignore_057bb387_51f7_496f_a7ab59c651a188e1', is not a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (), or periods (.). Every identifier must begin with either a letter or an underscore.

I need help :c

flavienbwk commented 3 years ago

Maybe this could help : https://github.com/felixrieseberg/electron-wix-msi/issues/1#issuecomment-416642865

I was able to fix that problem by adding "C:\Program Files (x86)\WiX Toolset v3.11\bin" (with quotes) to my user variables and system variables for windows.