Unity is not a typical Windows Forms or WPF app, and thus you'd either have to use the AutomaticUpdaterBackend or wyUpdate as a standalone updater. I'd recommend wyUpdate as a standalone updater for this case.
Hello,
I am currently building a desktop app using Unity and would like to implement AutoUpdater to it, but I am having some trouble on doing so. Is there a way for me to implement AutoUpdate in Unity apps?
Thank You.
Unity is not a typical Windows Forms or WPF app, and thus you'd either have to use the AutomaticUpdaterBackend or wyUpdate as a standalone updater. I'd recommend wyUpdate as a standalone updater for this case.
If I were to do the AutomaticUpdaterBackend, would this be plausible?
https://gist.github.com/TheNerdJedi/f640dd77867d8e813f3f
Also, since you recommended wyUpdate as a standalone updater, how would I implement that in if my code is written in C#?
I am sorry if these are trivial questions, this is my first time doing this.
Sort of, but don't call ForceCheckForUpdate() like that or else problems will happen. See the article I linked to for an example of how to check every 10 days: http://wyday.com/wybuild/help/automatic-updates/windows-services-console-apps.php.
Wyatt wrote:> Sort of, but don't call ForceCheckForUpdate() like that or else problems> will happen. See the article I linked to for an example of how to check> every 10 days:> http://wyday.com/wybuild/help/automatic-updates/windows-services-console-apps.php.
Hi Wyatt, could explain this a bit more? Why would cause problems to check for updates on every startup? I saw this suggestion in other places in your documentation, but haven't been able to figure out why. Is there something else about his update method that is problematic outside of it happening every startup?
Yes, the AutomaticUpdater checks for updates automatically. We should have never added that function to "forcefully" check for updates. Because 99.9% of customers do it and it causes a world of problems.
Wyatt wrote:> Yes, the AutomaticUpdater checks for updates automatically. We should have> never added that function to "forcefully" check for updates.> Because 99.9% of customers do it and it causes a world of problems.
Sorry Wyatt, this didn't quite answer what I was asking. Let me try to rephrase it.
Why would I only want to check for updates to my application every 10 days? I would want to check if there's a new version when the app is started. Why would that cause problems?
Are you saying the code example is incorrect? Is the updater backend checking for updates without using .ForceCheckForUpdate()?
Wyatt wrote:> Yes, the AutomaticUpdater checks for updates automatically. We should have> never added that function to "forcefully" check for updates.> Because 99.9% of customers do it and it causes a world of problems.
Essentially, I want to know what the current and correct way to check for updates on every startup is (because even your example code here https://wyday.com/wybuild/help/automatic-updates/windows-services-console-apps.php calls ForceCheckForUpdate()). I can only find partial information for this in forum answers.
BioeJD wrote:> Wyatt wrote:> > Yes, the AutomaticUpdater checks for updates automatically. We should have> > never added that function to "forcefully" check for updates.> > Because 99.9% of customers do it and it causes a world of problems.> > Essentially, I want to know what the current and correct way to check for updates on> every startup is (because even your example code here> https://wyday.com/wybuild/help/automatic-updates/windows-services-console-apps.php> calls ForceCheckForUpdate()). I can only find partial or old information for this in> forum answers.
I'm also having trouble finding a description of when to use AutomaticUpdater vs AutomaticUpdaterBackend, and what the differences for the user will be.