wimlib doesn't like .wim files with duplicate names

Comments, questions, bug reports, etc.
Post Reply
ender
Posts: 1
Joined: Thu Nov 18, 2021 11:27 am

wimlib doesn't like .wim files with duplicate names

Post by ender »

I tried to compress a .wim file that contains both Windows 10 and Windows 11 images, but wimlib doesn't like that there are duplicate names:

Code: Select all

R:\sources>E:\Other\prog\WimLIB\wimexport.cmd --solid --recompress --solid-compress=LZMS:100 install.wim all install.esd
[ERROR] There is already an image named "Windows 10 Home" in the destination WIM
ERROR: Exiting with error code 11:
       Tried to add an image with a name that is already in use.
dism and Windows Setup don't seem to have any problems with duplicate names.

wiminfo output:

Code: Select all

WIM Information:
----------------
Path:           install.wim
GUID:           0x69d62f39c55e171e29c21ce52061a6b1
Version:        68864
Image Count:    24
Compression:    LZX
Chunk Size:     32768 bytes
Part Number:    1/1
Boot Index:     0
Size:           8710247308 bytes
Attributes:     Relative path junction

Available Images:
-----------------
Index:                  1
Name:                   Windows 10 Home
Description:            Windows 10 Home
Display Name:           Windows 10 Home
Display Description:    Windows 10 Home
Directory Count:        25885
File Count:             92149
Total Bytes:            13571231184
Hard Link Bytes:        5585871593
Creation Time:          Wed Oct 06 13:44:36 2021 UTC
Last Modification Time: Thu Nov 18 09:15:36 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Core
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  Core
WIMBoot compatible:     no

Index:                  2
Name:                   Windows 10 Home N
Description:            Windows 10 Home N
Display Name:           Windows 10 Home N
Display Description:    Windows 10 Home N
Directory Count:        25012
File Count:             87809
Total Bytes:            12965695234
Hard Link Bytes:        5329628212
Creation Time:          Wed Oct 06 13:42:36 2021 UTC
Last Modification Time: Thu Nov 18 09:15:36 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             CoreN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  CoreN
WIMBoot compatible:     no

Index:                  3
Name:                   Windows 10 Education
Description:            Windows 10 Education
Display Name:           Windows 10 Education
Display Description:    Windows 10 Education
Directory Count:        26053
File Count:             93286
Total Bytes:            13823168193
Hard Link Bytes:        5709478306
Creation Time:          Wed Oct 06 13:48:16 2021 UTC
Last Modification Time: Thu Nov 18 09:15:37 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Education
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  Education
WIMBoot compatible:     no

Index:                  4
Name:                   Windows 10 Education N
Description:            Windows 10 Education N
Display Name:           Windows 10 Education N
Display Description:    Windows 10 Education N
Directory Count:        25180
File Count:             89098
Total Bytes:            13227622744
Hard Link Bytes:        5453008469
Creation Time:          Wed Oct 06 13:51:11 2021 UTC
Last Modification Time: Thu Nov 18 09:15:38 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             EducationN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  EducationN
WIMBoot compatible:     no

Index:                  5
Name:                   Windows 10 Pro
Description:            Windows 10 Pro
Display Name:           Windows 10 Pro
Display Description:    Windows 10 Pro
Directory Count:        26053
File Count:             93283
Total Bytes:            13817288172
Hard Link Bytes:        5709478306
Creation Time:          Wed Oct 06 13:41:10 2021 UTC
Last Modification Time: Thu Nov 18 09:15:38 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Professional
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  Professional
WIMBoot compatible:     no

Index:                  6
Name:                   Windows 10 Pro N
Description:            Windows 10 Pro N
Display Name:           Windows 10 Pro N
Display Description:    Windows 10 Pro N
Directory Count:        25180
File Count:             89094
Total Bytes:            13221828876
Hard Link Bytes:        5453008469
Creation Time:          Wed Oct 06 13:41:41 2021 UTC
Last Modification Time: Thu Nov 18 09:15:39 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  ProfessionalN
WIMBoot compatible:     no

Index:                  7
Name:                   Windows 10 Pro Education
Description:            Windows 10 Pro Education
Display Name:           Windows 10 Pro Education
Display Description:    Windows 10 Pro Education
Directory Count:        26053
File Count:             93284
Total Bytes:            13823098419
Hard Link Bytes:        5709478306
Creation Time:          Wed Oct 06 13:43:35 2021 UTC
Last Modification Time: Thu Nov 18 09:15:39 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalEducation
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  ProfessionalEducation
WIMBoot compatible:     no

Index:                  8
Name:                   Windows 10 Pro Education N
Description:            Windows 10 Pro Education N
Display Name:           Windows 10 Pro Education N
Display Description:    Windows 10 Pro Education N
Directory Count:        25180
File Count:             89096
Total Bytes:            13227560262
Hard Link Bytes:        5453008469
Creation Time:          Wed Oct 06 13:46:28 2021 UTC
Last Modification Time: Thu Nov 18 09:15:40 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalEducationN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  ProfessionalEducationN
WIMBoot compatible:     no

Index:                  9
Name:                   Windows 10 Pro for Workstations
Description:            Windows 10 Pro for Workstations
Display Name:           Windows 10 Pro for Workstations
Display Description:    Windows 10 Pro for Workstations
Directory Count:        26053
File Count:             93285
Total Bytes:            13823137402
Hard Link Bytes:        5709478306
Creation Time:          Wed Oct 06 13:45:55 2021 UTC
Last Modification Time: Thu Nov 18 09:15:40 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalWorkstation
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  ProfessionalWorkstation
WIMBoot compatible:     no

Index:                  10
Name:                   Windows 10 Pro N for Workstations
Description:            Windows 10 Pro N for Workstations
Display Name:           Windows 10 Pro N for Workstations
Display Description:    Windows 10 Pro N for Workstations
Directory Count:        25180
File Count:             89097
Total Bytes:            13227591503
Hard Link Bytes:        5453008469
Creation Time:          Wed Oct 06 13:48:50 2021 UTC
Last Modification Time: Thu Nov 18 09:15:41 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalWorkstationN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  ProfessionalWorkstationN
WIMBoot compatible:     no

Index:                  11
Name:                   Windows 10 Enterprise
Description:            Windows 10 Enterprise
Display Name:           Windows 10 Enterprise
Display Description:    Windows 10 Enterprise
Directory Count:        26053
File Count:             93291
Total Bytes:            13822670199
Hard Link Bytes:        5709478306
Creation Time:          Wed Oct 06 14:02:04 2021 UTC
Last Modification Time: Thu Nov 18 09:15:41 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Enterprise
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  Enterprise
WIMBoot compatible:     no

Index:                  12
Name:                   Windows 10 Enterprise N
Description:            Windows 10 Enterprise N
Display Name:           Windows 10 Enterprise N
Display Description:    Windows 10 Enterprise N
Directory Count:        25180
File Count:             89095
Total Bytes:            13225421129
Hard Link Bytes:        5453008469
Creation Time:          Wed Oct 06 13:47:43 2021 UTC
Last Modification Time: Thu Nov 18 09:15:42 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             EnterpriseN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  19044
Service Pack Build:     1288
Service Pack Level:     0
Flags:                  EnterpriseN
WIMBoot compatible:     no

Index:                  13
Name:                   Windows 10 Home
Description:            Windows 10 Home
Display Name:           Windows 11 Home
Display Description:    Windows 11 Home
Directory Count:        21675
File Count:             94577
Total Bytes:            15033091169
Hard Link Bytes:        6781574769
Creation Time:          Thu Nov 04 14:35:00 2021 UTC
Last Modification Time: Thu Nov 18 11:20:11 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Core
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  Core
WIMBoot compatible:     no

Index:                  14
Name:                   Windows 10 Home N
Description:            Windows 10 Home N
Display Name:           Windows 11 Home N
Display Description:    Windows 11 Home N
Directory Count:        21080
File Count:             90516
Total Bytes:            14448062601
Hard Link Bytes:        6516960343
Creation Time:          Thu Nov 04 14:41:04 2021 UTC
Last Modification Time: Thu Nov 18 11:20:12 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             CoreN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  CoreN
WIMBoot compatible:     no

Index:                  15
Name:                   Windows 10 Education
Description:            Windows 10 Education
Display Name:           Windows 11 Education
Display Description:    Windows 11 Education
Directory Count:        21855
File Count:             95744
Total Bytes:            15316992884
Hard Link Bytes:        6926249465
Creation Time:          Thu Nov 04 14:45:22 2021 UTC
Last Modification Time: Thu Nov 18 11:20:13 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Education
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  Education
WIMBoot compatible:     no

Index:                  16
Name:                   Windows 10 Education N
Description:            Windows 10 Education N
Display Name:           Windows 11 Education N
Display Description:    Windows 11 Education N
Directory Count:        21260
File Count:             91833
Total Bytes:            14731980443
Hard Link Bytes:        6661232303
Creation Time:          Thu Nov 04 14:51:57 2021 UTC
Last Modification Time: Thu Nov 18 11:20:14 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             EducationN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  EducationN
WIMBoot compatible:     no

Index:                  17
Name:                   Windows 10 Pro
Description:            Windows 10 Pro
Display Name:           Windows 11 Pro
Display Description:    Windows 11 Pro
Directory Count:        21855
File Count:             95740
Total Bytes:            15312041544
Hard Link Bytes:        6926249465
Creation Time:          Thu Nov 04 14:36:48 2021 UTC
Last Modification Time: Thu Nov 18 11:20:14 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Professional
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  Professional
WIMBoot compatible:     no

Index:                  18
Name:                   Windows 10 Pro N
Description:            Windows 10 Pro N
Display Name:           Windows 11 Pro N
Display Description:    Windows 11 Pro N
Directory Count:        21260
File Count:             91828
Total Bytes:            14728141106
Hard Link Bytes:        6661232303
Creation Time:          Thu Nov 04 14:39:07 2021 UTC
Last Modification Time: Thu Nov 18 11:20:15 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  ProfessionalN
WIMBoot compatible:     no

Index:                  19
Name:                   Windows 10 Pro Education
Description:            Windows 10 Pro Education
Display Name:           Windows 11 Pro Education
Display Description:    Windows 11 Pro Education
Directory Count:        21855
File Count:             95742
Total Bytes:            15316944094
Hard Link Bytes:        6926249465
Creation Time:          Thu Nov 04 14:41:09 2021 UTC
Last Modification Time: Thu Nov 18 11:20:16 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalEducation
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  ProfessionalEducation
WIMBoot compatible:     no

Index:                  20
Name:                   Windows 10 Pro Education N
Description:            Windows 10 Pro Education N
Display Name:           Windows 11 Pro Education N
Display Description:    Windows 11 Pro Education N
Directory Count:        21260
File Count:             91831
Total Bytes:            14731930753
Hard Link Bytes:        6661232303
Creation Time:          Thu Nov 04 14:46:54 2021 UTC
Last Modification Time: Thu Nov 18 11:20:16 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalEducationN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  ProfessionalEducationN
WIMBoot compatible:     no

Index:                  21
Name:                   Windows 10 Pro for Workstations
Description:            Windows 10 Pro for Workstations
Display Name:           Windows 11 Pro for Workstations
Display Description:    Windows 11 Pro for Workstations
Directory Count:        21855
File Count:             95743
Total Bytes:            15316968489
Hard Link Bytes:        6926249465
Creation Time:          Thu Nov 04 14:43:16 2021 UTC
Last Modification Time: Thu Nov 18 11:20:17 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalWorkstation
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  ProfessionalWorkstation
WIMBoot compatible:     no

Index:                  22
Name:                   Windows 10 Pro N for Workstations
Description:            Windows 10 Pro N for Workstations
Display Name:           Windows 11 Pro N for Workstations
Display Description:    Windows 11 Pro N for Workstations
Directory Count:        21260
File Count:             91832
Total Bytes:            14731955598
Hard Link Bytes:        6661232303
Creation Time:          Thu Nov 04 14:49:23 2021 UTC
Last Modification Time: Thu Nov 18 11:20:18 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             ProfessionalWorkstationN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  ProfessionalWorkstationN
WIMBoot compatible:     no

Index:                  23
Name:                   Windows 10 Enterprise
Description:            Windows 10 Enterprise
Display Name:           Windows 11 Enterprise
Display Description:    Windows 11 Enterprise
Directory Count:        21855
File Count:             95749
Total Bytes:            15318019289
Hard Link Bytes:        6926249465
Creation Time:          Thu Nov 04 15:01:42 2021 UTC
Last Modification Time: Thu Nov 18 11:20:18 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             Enterprise
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  Enterprise
WIMBoot compatible:     no

Index:                  24
Name:                   Windows 10 Enterprise N
Description:            Windows 10 Enterprise N
Display Name:           Windows 11 Enterprise N
Display Description:    Windows 11 Enterprise N
Directory Count:        21260
File Count:             91830
Total Bytes:            14733671287
Hard Link Bytes:        6661232303
Creation Time:          Thu Nov 04 14:37:17 2021 UTC
Last Modification Time: Thu Nov 18 11:20:19 2021 UTC
Architecture:           x86_64
Product Name:           Microsoft® Windows® Operating System
Edition ID:             EnterpriseN
Installation Type:      Client
Product Type:           WinNT
Product Suite:          Terminal Server
Languages:              sl-SI 
Default Language:       sl-SI
System Root:            WINDOWS
Major Version:          10
Minor Version:          0
Build:                  22000
Service Pack Build:     318
Service Pack Level:     0
Flags:                  EnterpriseN
WIMBoot compatible:     no

synchronicity
Site Admin
Posts: 341
Joined: Sun Aug 02, 2015 10:31 pm

Re: wimlib doesn't like .wim files with duplicate names

Post by synchronicity »

Thanks for the report. I agree that this should work, although it is unfortunate that DISM allows duplicate image names.

Please try wimlib-1.13.5-BETA2 which I just uploaded; it should work now.

wimlib still enforces unique image names in a few cases, but not in this case which does seem like one that should work.

Post Reply