electron-wix-msi
electron-wix-msi copied to clipboard
Can't set an icon
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
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!?