AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

Zip extractor needs .net framework installed, but main application may use a self contained distribution

Open bob-dawson opened this issue 1 year ago • 3 comments

Zip extractor needs .net framework installed, but main application may use a .net self-contained distribution. So, the main application can run on a machine without .net framework installed. Should provide an Api to specify application's own zip extractor instead of the embedded zip extractor. Or the zip extractor replaced with some program which has no other dependency.

bob-dawson avatar Oct 12 '23 13:10 bob-dawson

Currently, You can compile a self-contained ZipExtractor to resolve this issue. Doing this increases the size of the DLL significantly, that's why it is not compiled as self-contained EXE.

ravibpatel avatar Oct 20 '23 11:10 ravibpatel

Compiling ZipExtractor for anything except .net framework 4.5 is completely broken at the moment. The resulting exe is not usable because it depends on .dll and .json files.

AutoUpdater.NET only adds the exe into the resources, so the end result is an assembly that is impossible to use.

Hence the given solution ("you can compile it yourself") is not valid. Furthermore it means that it is impossible to compile this project to a working state in VS2022.

prj avatar Oct 25 '23 22:10 prj

@prj You have to publish the ZipExtractor instead of building it to produce a single executable without .dll or any JSON files. I updated the Readme.md to mention this. You can publish it as shown here.

ravibpatel avatar Nov 08 '23 09:11 ravibpatel

Now I am embedding ZipExtractor compiled using .NET Framework 4.5. Can you try DLL from here? It should work fine on Windows 8 or above without installing anything, even with self-contained apps.

ravibpatel avatar Jun 16 '24 07:06 ravibpatel