AppUpdater components can be updated, the main problem is to set the server's virtual directory configuration, access to the directory browse.
Smart Client Development: Using AppUpdater Components I have intended to introduce Updater Application Block today. Later, I think that some friends often feedback saying that it is too much trouble in using UAB integration into their own development. Ask if there is a simpler method to deploy smart customers end. Before whhip appears, the answer is or now, that is, using the AppUpdater component. The IssueVision, which is introduced in Teched 2004 in the United States, Taskvision these classic SMART Client Demo is used by this component to implement the intelligent client deployment.
Use the AppUpdater component to use these files: You can download the file name function in http://windowsforms.com/downloads/gdn/dotnetUpdater.zip Description AppStart.exe Multi-agency program, starting the real application program. It is not directly launched to prevent the upgrade failure to prevent the main application upgrade. AppStart.config AppStart.exe configuration file, specify the directory where the application you want to start, and the most important component to start the application appupdater.dll, automatic upgrade of the main component system.resources.dll resource file Mscorlib.Resources .dll core resource file UpdateVersion.xml server-side version upgrade profile
OK, start describing how to use it.
(1). Import AppUpDater (2) in Custom Control. Configure Auto Download options
AutofileLoad: TruechangeDectionMode ServermanifestcheckUpdateURL http: //yourserverdomainname/smartserver/UpdateVersion.xmlshowdefaultui: True
AutoFileLoad can make the files on the server dynamically loaded, you can imagine what is similar to the assembly.LoadFrom in un-touch deployment ChangeDetectonMode is setting the detection mode: Detect according to the configuration file, that is, the file specified by the UpdateURL property. If DirectFileCheck is a comparative timestamp to each file, do not download this file. UpdaterUrl means updates the configuration file on the server, wherein UpdateVersion.xml follows:
UpdateVersion.xml Explanation:
It is recommended that everyone is set to Dynamic, which is read from the configuration file, but let the server's .config file allows the server to be downloaded, we also have to set it in the ASP.NET application "configuration" in IIS, It is not allowed by default. Showdefaultui means that you want to start a new version with a simple interface at the end of the download. You can also display your own form, the method is set to false and write code in the onupdateComplete event. Show your form.
Of course, there are some other properties, for example, whether to use a public key (can be one, you can also provide an assembly, including multiple public keys) Verify the file to download. I will not say much to the time relationship.
(3) Start the actual application using AppStart.exe. (4) Set the download folder to allow the Directory to browse, because AppuPdater wants to enumerate all files and download them locally. If it is Windwos 2003, trouble, to allow WebDAV, and set the .config file to allow download. (5) Be a MSI installation file, package the application, so that when the application runs, it can automatically determine whether there is no latest version and download it locally.
Posted @ 2004