felicienfrancois / node-winresourcer

NodeJS wrapper for Anolis Resourcer (windows executable resource editor)
GNU General Public License v2.0
34 stars 8 forks source link

Could not find IDR_MAINFRAME to update #6

Open Krunal-Gosalia opened 6 years ago

Krunal-Gosalia commented 6 years ago

I am getting error as shown below:

screen shot 2018-03-08 at 8 56 39 pm

Kindly let me know if you have come across and resolution.

require("winresourcer")({ operation: "Update", // one of Add, Update, Extract or Delete exeFile: "app.exe", resourceType: "Icongroup", resourceName: "IDR_MAINFRAME", lang: 1033, // Required, except when updating or deleting resourceFile: "blue.ico" // Required, except when deleting }, function(error) { console.log(error); // callback });

Did packaging using pkg and want to change icon for app.exe. Also have tried absolute path and result is same.

felicienfrancois commented 6 years ago

The path of the icon resource (i.e. resourceName and lang parameters) may differ depending on exe packager. You can use a gui resource editor like Resource Hacker to check the path of the icon to change in your exe file and set parameters accordingly.