Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Deployment Khi bạn xây dựng một ứng dụng cho chính mình, bạn có thể chỉ cần chạy file thực thi được tạo ra bởi Visual Basic. Nếu bạn đang xây dựng ứng dụng cho những người khác, tuy nhiên, bạn cần phải làm cho nó có thể cho họ để cài đặt các chương trình trên máy tính của họ. Visual Studio cung cấp cho bạn một vài tùy chọn để xây dựng các gói cài đặt, bao gồm triển khai ClickOnce, thiết lập dự án trình cài đặt Windows, Xcopy, và triển khai Robocopy. "Xcopy" phần sau trong chương. | Deployment When you build an application for yourself you can simply run the executable created by Visual Basic. If you are building the application for others however you need to make it possible for them to install the program on their computers. Visual Studio gives you a couple of options for building installation packages including ClickOnce deployment Windows Installer setup projects Xcopy and RoboCopy deployment. The section Xcopy later in this chapter says more about Xcopy and RoboCopy deployment. In brief however Xcopy deployment simply means copying a program and all of the files that it needs to work onto the target computer. You don t need to register the executable DLLs or any other object and you don t need to modify the Registry. RoboCopy is the next version of Xcopy provided in the Vista operating system. Before you start churning out deployment packages however it s worth taking a few minutes to consider deployment in the abstract. A clear idea of how and when you want to provide releases to users can make things easier for you and them. Deployment Models Before getting into the details about deployment options available for Visual Basic applications it s worth thinking about deployment on a higher level. Before you plan a deployment strategy you should decide what type of deployment is appropriate for your users. You should ask yourself how quickly users will want new releases and how much effort they will be willing to spend downloading installing and configuring new releases. Part III Development User Types When you pick a deployment method you should think about the kinds of users that will be installing the application. First consider the amount of emotional and monetary investment the users are putting into your application. If your application is a relatively small utility that is available for free on the Internet then users will probably be unwilling to spend a huge amount of time downloading installing and configuring it. A user who clicks