Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net 6.0 ZipExtractor.exe need to install .Net Desktop runtime #691

Closed
FLCYR opened this issue Jun 12, 2024 · 14 comments
Closed

.Net 6.0 ZipExtractor.exe need to install .Net Desktop runtime #691

FLCYR opened this issue Jun 12, 2024 · 14 comments

Comments

@FLCYR
Copy link

FLCYR commented Jun 12, 2024

where update file and extract files
11

@ravibpatel
Copy link
Owner

Can you tell me which .NET version are you targeting on your main application? Does it ask for it even if it is installed?

@FLCYR
Copy link
Author

FLCYR commented Jun 12, 2024

I use .Net 6.0 to write Winform program and packaged applications for x64 system

@FLCYR
Copy link
Author

FLCYR commented Jun 12, 2024

Can you tell me which .NET version are you targeting on your main application? Does it ask for it even if it is installed?
I use .Net 6.0 to write Winform program and packaged applications for x64 system

@FLCYR
Copy link
Author

FLCYR commented Jun 12, 2024

I had packaged .Net runtime for my program So I have the .Net Desktop runtime environment

@ravibpatel
Copy link
Owner

Are you using self-contained app you mean? This looks similar to #641.

@FLCYR
Copy link
Author

FLCYR commented Jun 12, 2024

I had publish my ZipExtractor.exe ,but AutoUpdater how to use my ZipExtractor.exe not the default(by Autoupdater.Net.dll)
2222

@ravibpatel
Copy link
Owner

You have to follow the guide here to build DLL with self-contained ZipExtractor. I think you can revert it to previous behavior where ZipExtractor used .NET Framework, which is already installed on most newer OSes.

@FLCYR
Copy link
Author

FLCYR commented Jun 12, 2024

I had follow the guide,and copy self-contained ZipExtractor to the AutoUpdater.Net/Resources folder. Then I should publish AutoUpdater.Net.dll???

@FLCYR
Copy link
Author

FLCYR commented Jun 12, 2024

I want to know how the AutoUpdater.Net.dll can use my self-contained ZipExtractor.exe

@FLCYR
Copy link
Author

FLCYR commented Jun 12, 2024

Ok. I already know how to handle it。But this is not a good method。The dll is large。
Why can't we use the same runtime dlls.

@ravibpatel
Copy link
Owner

It is cause ZipExtractor is embedded as resource. As I suggested earlier, instead of compiling the ZipExtractor for the same .NET version. You can compile it using .NET Framework 4.6. It should work with Windows 10 and 11 without installing the .NET Framework, because it is present on those OSes by default.

@ravibpatel
Copy link
Owner

You can also use installer instead of zip file. You can use something like NSIS to convert your update zip to EXE. It won't use ZipExtactor if you use installer as your update file.

@ravibpatel
Copy link
Owner

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.

@FLCYR
Copy link
Author

FLCYR commented Jun 17, 2024

Thanks your help. I have slove my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants