Posted: . At: 10:01 AM. This was 1 month ago. Post ID: 19408
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


How to extract icons from a DLL file using Linux.


Extracting icons from a DLL file on Linux is very easy. I used 7zip and this was able to extract all icons from a DLL file. This is the Windows NT 6.1 Windows 7 version of the moricons.dll file. This trick does not work with the Windows 11 version, but with Windows 7 DLL files it does work.

(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 Windows XP  $ 7z x moricons.dll

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C.utf8,Utf16=on,HugeFiles=on,64 bits,12 CPUs Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz (A0655),ASM,AES-NI)

Scanning the drive for archives:
1 file, 184832 bytes (181 KiB)

Extracting archive: moricons.dll
--       
Path = moricons.dll
Type = PE
Physical Size = 184832
CPU = x86
Characteristics = Executable DLL 32-bit
Created = 2009-07-14 12:06:49
Headers Size = 512
Checksum = 214503
Name = MORICONS.DLL
Image Size = 188416
Section Alignment = 4096
File Alignment = 512
Code Size = 0
Initialized Data Size = 184320
Uninitialized Data Size = 0
Linker Version = 9.0
OS Version = 6.1
Image Version = 6.1
Subsystem Version = 6.1
Subsystem = Windows CUI
DLL Characteristics = Relocated NX-Compatible NoSEH
Stack Reserve = 262144
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 4194304
Comment = FileVersion: 6.1.7600.16385
FileVersion: 6.1.7600.16385 (win7_rtm.090713-1255)
ProductVersion: 6.1.7600.16385
CompanyName: Microsoft Corporation
FileDescription: Windows NT Setup Icon Resources Library
InternalName: MORICONS.DLL
LegalCopyright: © Microsoft Corporation. All rights reserved.
OriginalFilename: MORICONS.DLL
ProductName: Microsoft® Windows® Operating System

Everything is Ok

Files: 351
Size:       172188
Compressed: 184832

This is a very easy Linux tip. Then the *.ico files may be converted to PNG with ImageMagick.

(jcartwright@2403-4800-25af-b00--2) 192.168.1.5 ICON  $ mogrify -format png *.ico

This gave me a folder full of png and ico images. Then I could create a nice collage of all of the icons to present them very nicely.

This is a very nice way to present these old icons. I think the artwork is very nice.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.