-
Notifications
You must be signed in to change notification settings - Fork 753
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
Comments
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 |
|
I had packaged .Net runtime for my program So I have the .Net Desktop runtime environment |
Are you using self-contained app you mean? This looks similar to #641. |
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. |
I had follow the guide,and copy self-contained ZipExtractor to the AutoUpdater.Net/Resources folder. Then I should publish AutoUpdater.Net.dll??? |
I want to know how the AutoUpdater.Net.dll can use my self-contained ZipExtractor.exe |
Ok. I already know how to handle it。But this is not a good method。The dll is large。 |
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. |
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. |
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. |
Thanks your help. I have slove my problem. |
where update file and extract files
![11](https://private-user-images.githubusercontent.com/40991365/338977757-080d6171-0b10-4612-ad0e-7822ef929de0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzOTIzOTgsIm5iZiI6MTcxOTM5MjA5OCwicGF0aCI6Ii80MDk5MTM2NS8zMzg5Nzc3NTctMDgwZDYxNzEtMGIxMC00NjEyLWFkMGUtNzgyMmVmOTI5ZGUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDA4NTQ1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNlMGEyNzBhYTA2OWVmNDg2Nzg3Mzc5MjUxNmNkMWZmODM2NjNkMDc4ZGU1OTc1MzY4N2Y0Zjc1NjZjYzQwOGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.V-u0PO08hBTvYYy92R3rK_41wz3nPApYyibSVPbpwHM)
The text was updated successfully, but these errors were encountered: