How to do automatic update of EXE project in C# and Azure Startup task?

若如初见. 提交于 2019-12-10 17:23:29

问题


I am facing a critical and interesting problem in my azure related project. I have created one web application and from there a user can download a plugin (EXE project in C#) and upload EXE and config file after unzip to their application's startup taks which are deployed on Azure platform and that exe sends data periodically to my web application to monitor user application on Azure.

Now my problem is that if I make any changes in the EXE project, then how can users who have the old plugin update their files (plugin) on their existing application? I need some automatic type of update mechanism so I can avoid the conflict between old and new version of the EXE project.

I hope that my problem makes sense to you if you have some knowledge of the Azure startup task.

Thanks Arun.


回答1:


I am sure the above solution will meet several problems while trying in Windows Azure. EXE update will fail on Azure due to security issues. You would have to change the design to have such application design.

Try this: Will Autoupdate Startup task work in azure application?




回答2:


If I understand your problem correctly, you are providing a custom EXE to end client, which becomes part of Azure start-up task, and runs throughout the time the instance is running.

One thing that can be done is to create a self update mechanism in the EXE itself. If you have ever used Reflector, it has self update mechanism, where it prompts user when a new version is available. Something similar could be build. Things that you would require to keep in mind would be

  1. Deciding from where updates are downloaded.
  2. What happens when update location changes.
  3. Any security limitations.

Also look at some vendors in this space such as Cumulux and Cerebrata on how do they do stuff.



来源:https://stackoverflow.com/questions/7721654/how-to-do-automatic-update-of-exe-project-in-c-sharp-and-azure-startup-task

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!