electron-wix-msi icon indicating copy to clipboard operation
electron-wix-msi copied to clipboard

Can't set an icon

Open layaLils opened this issue 4 years ago • 3 comments

I am trying to set the path to the icon, like this: const msiCreator = new MSICreator({ . . . , iconPath: 'C:/path/to/electron_app/icon/image.ico', }); But when I execute the ''node build_installer.js'' command to build, I get an error in the console: Unable to extract icon from exe. Please provide an explicit icon via parameter. Error: Cannot find module 'exe-icon-extractor'. I don't know what it is, please, I need help

layaLils avatar Oct 07 '20 19:10 layaLils

Hey, I had the same issue! This is what I did to fix it:

const msiCreator = new MSICreator({
    appDirectory: APP_DIR,
    outputDirectory: OUT_DIR,
    description: 'SomeDescriptionHere',
    exe:'SomeNameHere',
    appIconPath: path.resolve(__dirname,'./favicon.ico'),
    name:'SomeNameHere',
    manufacturer:'SomeNameHere',
    version:'0.1.0',
    ui:{
        chooseDirectory: true
    }
})

It is appIconPath: path.resolve(__dirname,'./favicon.ico'), that you need to do. Make sure you change the file name to your icon obviously...

Hope that helps!?

T-Lacey avatar Nov 20 '20 21:11 T-Lacey