简体   繁体   中英

How do i update an application after pusblishing it in visual studio

我发布了一个应用程序,发布时我检查了该应用程序应检查更新-现在如何使它真正检查更新-我应该在哪里放置新文件以及采用哪种格式?

You'll need it on some kind of Web server.

I would imigine that you also want some authentication so that only the application it self can gain access to the new version of the software.

I'm going to assume you mean you are using CLickOnce as the installer. If you want the app to check for updates every time it is ran you need to publish to a location all the apps can see. If this is an internal app I believe a network share will do. If not then you need to publish to a web server or ftp server.

You can use ClickOnce as nportelli mentioned above, or you can use a 3rd party utility to do the heavy lifting for you.

I wrote an open-source library to do just that transparently - including an external update application to do the actual cold update. See http://www.code972.com/blog/2010/08/nappupdate-application-auto-update-framework-for-dotnet/

The code is at http://github.com/synhershko/NAppUpdate (Licensed under the Apache 2.0 license)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM