choose another icon inside exe when changeing default app for a file type

user2330fd212 41 Reputation points

when open the dialog using "open with...", we can check "always use this app to open .xxx files"
So this exe will be the default app for a file type.

The problem is that the first icon inside the exe will be used as the icon for the file type.

I have several icons inside the exe, how can I tell "open with..." to use my second icon as the icon for the file type?

I can change the registry manually to add defaultIcon to specify the icon :
default, path/test.exe, 1

Is there any other way?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,449 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful