From 2e340b8b023efd525476aa5060f028f4b37ffbc1 Mon Sep 17 00:00:00 2001 From: pysj Date: Sat, 14 Oct 2023 11:12:10 +0200 Subject: [PATCH 1/3] . --- SevenZip/Formats.cs | 9 ++++++++- SevenZip/arch/Test.wim | Bin 0 -> 1258 bytes 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 SevenZip/arch/Test.wim diff --git a/SevenZip/Formats.cs b/SevenZip/Formats.cs index d74d8f9..1cf81a2 100644 --- a/SevenZip/Formats.cs +++ b/SevenZip/Formats.cs @@ -270,6 +270,11 @@ public enum OutArchiveFormat /// Wikipedia information BZip2, /// + /// Microsoft Windows Imaging disk image format. + /// + /// Wikipedia information + Wim, + /// /// Open Tar archive format. /// /// Wikipedia information @@ -441,9 +446,10 @@ internal static int GetMaxValue(Type type) {OutArchiveFormat.SevenZip, new Guid("23170f69-40c1-278a-1000-000110070000")}, {OutArchiveFormat.Zip, new Guid("23170f69-40c1-278a-1000-000110010000")}, {OutArchiveFormat.BZip2, new Guid("23170f69-40c1-278a-1000-000110020000")}, + {OutArchiveFormat.Wim, new Guid("23170f69-40c1-278a-1000-000110E60000")}, {OutArchiveFormat.GZip, new Guid("23170f69-40c1-278a-1000-000110ef0000")}, {OutArchiveFormat.Tar, new Guid("23170f69-40c1-278a-1000-000110ee0000")}, - {OutArchiveFormat.XZ, new Guid("23170f69-40c1-278a-1000-0001100C0000")}, + {OutArchiveFormat.XZ, new Guid("23170f69-40c1-278a-1000-0001100C0000")} }; #endregion @@ -472,6 +478,7 @@ internal static int GetMaxValue(Type type) {OutArchiveFormat.SevenZip, InArchiveFormat.SevenZip}, {OutArchiveFormat.GZip, InArchiveFormat.GZip}, {OutArchiveFormat.BZip2, InArchiveFormat.BZip2}, + {OutArchiveFormat.Wim, InArchiveFormat.Wim}, {OutArchiveFormat.Tar, InArchiveFormat.Tar}, {OutArchiveFormat.XZ, InArchiveFormat.XZ}, {OutArchiveFormat.Zip, InArchiveFormat.Zip} diff --git a/SevenZip/arch/Test.wim b/SevenZip/arch/Test.wim new file mode 100644 index 0000000000000000000000000000000000000000..89a77418bc6d622bf369b652b9b3a4f69a6b150d GIT binary patch literal 1258 zcmd5)O-lk{5Pn=bL=Xub>KN9kLnfJJY=Zff;JTrPb?Q)(m#EN#5t09)9}!fC5WLi- zpdU~mLD0c_L_|>0L3`fa*S`FyF44Qp&O0;D%sex@T09xn0Gw0MX+d6Sp02&+)h(C* zM)$2a`tJ@0ED#T{WJIBqgux?i6coc$#!X$b4d-9J5~)nKT{cWhZKbaA~6sJwZ5cDneuu^W8a-!5Lfd`-3@ffO>xVu+HX z)Sou#GQKJAHCukcMqSKVl~S#koZZZr*g3dNm#Qb_<7b<4|IppLHrP|Gs7N9V4IZfE zq*J_zU<&iR1rVoy6fTT2YHt!(jeIXc#P{(Yg`c-MOu_~SMO2Qmsz$Ge9#QGtR*4QH z1|NIR(w`t^*ud2LRRoERu+B%cS+P;1*+kBk)A-0HK)wm~(hWvpKZ3i8Y5GEZ&oCa7 zTyx~>;1q7M3t&v{svfD5xz25W&UJFTZaBH|5!MVC%)a8p##*t8Ff&dz8taR#iCy^q W-2}g3Y3BqQClLRX*t`AhFMS2z%c>;+ literal 0 HcmV?d00001 From 1c64187ab78444dac775ed68ff8e02eb84c2d018 Mon Sep 17 00:00:00 2001 From: pysj Date: Sat, 14 Oct 2023 12:06:47 +0200 Subject: [PATCH 2/3] . --- test.ps1 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test.ps1 diff --git a/test.ps1 b/test.ps1 new file mode 100644 index 0000000..39e45a0 --- /dev/null +++ b/test.ps1 @@ -0,0 +1,21 @@ +# +# dotnet clean +# dotnet restore +# dotnet build +# dotnet test + +#Add-Type -Path "C:\Users\lasse\psh\wrkspc\SevenZipSharp\Stage\Debug\net472\SevenZipSharp.dll" +[System.Reflection.Assembly]::LoadFrom("C:\Users\lasse\psh\wrkspc\SevenZipSharp\Stage\Debug\net472\SevenZipSharp.dll") + +$compressor = New-Object SevenZip.SevenZipCompressor +$compressor.ArchiveFormat = "wim" +$compressor.CompressionMode = "Create" +$compressor.CompressionLevel = "Ultra" + +# Invoke +$compressor.CompressDirectory("C:\Users\lasse\psh\wrkspc\testing", "C:\Users\lasse\psh\wrkspc\testing.wim") + +# Extract +$extractor = New-Object SevenZip.SevenZipExtractor("C:\Users\lasse\psh\wrkspc\testing.wim") +# invoke +$extractor.ExtractArchive("C:\Users\lasse\psh\wrkspc\extracted") From 9118ecbfcce650d80b071898b2251a2054b19cfb Mon Sep 17 00:00:00 2001 From: pysj Date: Sat, 14 Oct 2023 15:31:47 +0200 Subject: [PATCH 3/3] . --- SevenZip/arch/Test.wim | Bin 1258 -> 0 bytes test.ps1 | 21 --------------------- 2 files changed, 21 deletions(-) delete mode 100644 SevenZip/arch/Test.wim delete mode 100644 test.ps1 diff --git a/SevenZip/arch/Test.wim b/SevenZip/arch/Test.wim deleted file mode 100644 index 89a77418bc6d622bf369b652b9b3a4f69a6b150d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1258 zcmd5)O-lk{5Pn=bL=Xub>KN9kLnfJJY=Zff;JTrPb?Q)(m#EN#5t09)9}!fC5WLi- zpdU~mLD0c_L_|>0L3`fa*S`FyF44Qp&O0;D%sex@T09xn0Gw0MX+d6Sp02&+)h(C* zM)$2a`tJ@0ED#T{WJIBqgux?i6coc$#!X$b4d-9J5~)nKT{cWhZKbaA~6sJwZ5cDneuu^W8a-!5Lfd`-3@ffO>xVu+HX z)Sou#GQKJAHCukcMqSKVl~S#koZZZr*g3dNm#Qb_<7b<4|IppLHrP|Gs7N9V4IZfE zq*J_zU<&iR1rVoy6fTT2YHt!(jeIXc#P{(Yg`c-MOu_~SMO2Qmsz$Ge9#QGtR*4QH z1|NIR(w`t^*ud2LRRoERu+B%cS+P;1*+kBk)A-0HK)wm~(hWvpKZ3i8Y5GEZ&oCa7 zTyx~>;1q7M3t&v{svfD5xz25W&UJFTZaBH|5!MVC%)a8p##*t8Ff&dz8taR#iCy^q W-2}g3Y3BqQClLRX*t`AhFMS2z%c>;+ diff --git a/test.ps1 b/test.ps1 deleted file mode 100644 index 39e45a0..0000000 --- a/test.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -# -# dotnet clean -# dotnet restore -# dotnet build -# dotnet test - -#Add-Type -Path "C:\Users\lasse\psh\wrkspc\SevenZipSharp\Stage\Debug\net472\SevenZipSharp.dll" -[System.Reflection.Assembly]::LoadFrom("C:\Users\lasse\psh\wrkspc\SevenZipSharp\Stage\Debug\net472\SevenZipSharp.dll") - -$compressor = New-Object SevenZip.SevenZipCompressor -$compressor.ArchiveFormat = "wim" -$compressor.CompressionMode = "Create" -$compressor.CompressionLevel = "Ultra" - -# Invoke -$compressor.CompressDirectory("C:\Users\lasse\psh\wrkspc\testing", "C:\Users\lasse\psh\wrkspc\testing.wim") - -# Extract -$extractor = New-Object SevenZip.SevenZipExtractor("C:\Users\lasse\psh\wrkspc\testing.wim") -# invoke -$extractor.ExtractArchive("C:\Users\lasse\psh\wrkspc\extracted")