Note: This post originates in a thread I made in a random Discord server. The entire thing was Turkish, so I wanted to translate, edit, and upload it here. Hope the post would help you!
Hello everyone! While I research how to extract .dll files that contains icons to .ico files, I found an AUR (Arch Linux) package that exactly does this. After the package installation and testing, I wrote a Bash script to accelerate the icon extraction process.
This is the Bash script I wrote:
ICON_NAME="moricons"
ICON_TYPE="dll"
for i in {0..500}
do
# You can execute this command in your Linux terminal manually, if you have the package (or compiled it manually).
# But the execution of command only gives one of the icons from the dll file. I used a loop in bash, so you don't have to change the number in $i in every manual command.
icoextract -n $i ./Downloads/$ICON_NAME.$ICON_TYPE ./Desktop/$ICON_NAME/icon$i.ico
# Also if the command gives errors repeatedly after a while, that means it found every single icon the dll has. To stop the script, press CTRL + C.
done
Here's a .rar file for some icons. there are .ico files from "pifmgr", "mmcndmgr" and "moricons" dll files. I could extract more icons from other .dll files, but I got lazy. See the bottom links for more icons' dll files and their names.
The AUR package I used
The dll and exe files from Windows 10 that contains icons