如何在C#和Azure启动任务中自动更新EXE项目?
我在我的天蓝色相关项目中面临着一个关键且有趣的问题。我创建了一个 Web 应用程序,用户可以从那里下载一个插件(C# 中的 EXE 项目),并在解压后上传 EXE 和配置文件到部署在 Azure 平台上的应用程序的启动任务,并且该 exe 定期向我的 Web 应用程序发送数据监视 Azure 上的用户应用程序。
现在我的问题是,如果我在 EXE 项目中进行任何更改,那么拥有旧插件的用户如何更新其现有应用程序上的文件(插件)?我需要一些自动类型的更新机制,这样我就可以避免 EXE 项目的新旧版本之间的冲突。
如果您对 Azure 启动任务有一定的了解,我希望我的问题对您有意义。
谢谢 阿伦.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我确信上述解决方案在 Windows Azure 中尝试时会遇到几个问题。由于安全问题,EXE 更新将在 Azure 上失败。您必须更改设计才能拥有这样的应用程序设计。
试试这个:
自动更新启动任务能否在 Azure 应用程序中运行?
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?
如果我正确理解您的问题,您将向最终客户端提供自定义 EXE,该 EXE 成为 Azure 启动任务的一部分,并在实例运行的整个过程中运行。
可以做的一件事是在 EXE 本身中创建自我更新机制。如果您曾经使用过 Reflector,它具有自我更新机制,当有新版本可用时会提示用户。可以构建类似的东西。您需要记住的事情是
还要看看这个领域的一些供应商,例如 Cumulux 和 Cerebrata,了解他们是如何做事的。
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
Also look at some vendors in this space such as Cumulux and Cerebrata on how do they do stuff.