This repository was archived by the owner on May 24, 2026. It is now read-only.
Commit 081446b
Fix empty cabinet creation in CabFlush
When no files are added to a cabinet (total_files == 0), CabFlush
previously returned success without creating any file. This caused
WiX's file transfer system to fail with FileNotFoundException when
trying to move the expected cabinet to the output directory.
Now creates a valid empty cabinet file (cabinet with an empty folder)
and reports it back to the caller, matching the behavior expected by
WiX for declared-but-empty cabinets.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1442b60 commit 081446b
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
352 | 370 | | |
353 | 371 | | |
354 | 372 | | |
| |||
0 commit comments