Closed jonrmorgan99 closed 7 months ago
Returning to this question. Right now I don't see new features of .NET 7 and 8, but there doesn't seem to be much progress. With P/Invoke ShowWindow, yes I am also thinking about it. Anyway in a couple of weeks I will start doing a project on this topic and maybe come back here with new results.
@derskythe Yes, it looks unlikely MS will fully re-implement the ApplicationDeployment methods for in-app silent updating in Net 8 although they are certainly aware of the need.
Thanks to your original code I published my apps in Net7 and, apart from the download window showing, it all works fine.
Fully silent updating would of course need replacement for the download progress notifications as in MS' original code example
Good luck with your project - look forward to hearing more.
I recently ported my Net5 implementation of the ClickOnce updater to Net6.
It works fine but setup.exe still shows it's update window during an update. The problem is in this method:
I've tried various combinations of ProcessStartInfo parameters to hide the window but none work. I also added code to hide the window using P/Invoke ShowWindow but, again no luck.
I suspect the reason neither of these approaches works is because the download progress window is a child of the setup.exe process, but I can't work out how to target the child windows.
It looks unlikely MS will restore ApplicationDeployment API at least until Net7 so it's worth persisting with this issue so we can have a fully silent ClickOnce updater again.