goversioninfo icon indicating copy to clipboard operation
goversioninfo copied to clipboard

Setting the IDI_APPLICATION icon?

Open precisionpete opened this issue 2 years ago • 1 comments

I have a Go application on Windows 10+ that is using WebView for the GUI. It works great but I am having trouble setting the Window icon. This is not the icon on the EXE. That part works great. But I need to set the icon on the top left corner of the windows that WebView creates. In the resource file, it is referred to as the IDI_APPLICATION icon (32512). 100 is the EXE icon I believe.

See: https://github.com/webview/webview

e.g. https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadiconw

100  ICON "icons\\main.ico"
32512 ICON "icons\\small.ico"

Does goversioninfo have an undocumented entry to set this?

Unfortunately, I'm not a Win32 expert. Thanks

precisionpete avatar Jun 23 '22 14:06 precisionpete

If you are using a versioninfo.json file and put the icon path properly the icon should be on the exe and on the program when opened. It works perfectly for my CLI & GUI program. image

image

packet-sent avatar Jun 27 '22 00:06 packet-sent