Autoupgrader. Pro. v4.6.4 Automatic Upgrade

Source: Internet
Author: User
to Delphi 7=========== 1. Unzip files from "Delphi7" directory and copy them to "Delphi 7\Lib". 2. Start Delphi 7 IDE. 3. Open "AutoUpgraderProD7.dpk" file. 4. Install package to the components palette ("Install" button).

Automatic Upgrade using auautoupgrader

InUtimnidUnder the component, useAuautoupgraderAutomatic Upgrade (tested)

Step 1: Download autoupgrader. Pro. v4.6.4.

Step 2: Open the Delphi7 directory under autoupgrader. Pro. v4.6.4, double-click the autoupgraderprod7.package file to install it, and click Install. After that, an utimnid component is added to the tool panel. Copy all the files under the Delphi7 directory to the bin directory under the Delphi7 installation directory.

What to do when the program is released for the first time.

1. In a developed program, place a tauautoupgrader control on the first startup form.

2. Double-click auautoupgrader1 and make the following settings in the pop-up dialog box:

(1) Select bynumer, check for updates by version number, and fill in the program version number in the numer text box. Note that the format of the program version number must be 1.0.0.1. Otherwise, an error occurs.

(2) Click the Add button to add the HTTP file for this upgrade, in the format of http: // 192.168.1.104: 8080/update/project1.exe. Do not write an error.AutoupgraderOnly HTTPMethod.Do not fill in the error. The upgrade method defaults. You can write the updated content in "Release Notes message;

(3) Click "export to Info-file", enter the file name, and generate a suffix. INF configuration file, then upload the configuration file to your website, and put the upgrade file in the same directory, such as http: // 192.168.1.104: 8080/update.

(4) In the infofileurl attribute of the auautoupgrader1 control, enter the INF file in your website. Assume the file name is aa. INF, the value in the attribute should be http: // 192.168.1.104: 8080/update/AA. INF, so do not make a mistake here. This file determines whether to upgrade the program.

(5) set auautoupgrader1's autocheck to true.

(6) Automatically Check and prompt for upgrade: The method is: Add the following code on the first startup form:

Procedure tform1.formcreate (Sender: tobject );

Begin

Auautoupgrader1.checkupdate (true); // you can only add this sentence.

End;

(7) manual upgrade: put a button on the form and set the attribute to "check for updates". In The onclick event of the button, write auautoupgrader1.checkupdate (false );

(8): create directories and port settings on the website.

The directory must be consistent with the directory set in program development; otherwise, files cannot be found during upgrade. If the Development Directory is http: // 192.168.1.104: 8080/update, you must set the update directory on the website. In addition, the website port must also be 8080.

(9): place the upgrade file and configuration file in the configured directory on the website, for example, update directory. If there are a lot of files, you can't tell which are upgrading and which are not, just put them all in. Haha .. The hard disk is big enough now. It would be better if you could tell clearly.

After modifying the client, how can I upgrade it?

If your client needs to be modified due to business needs, the following modifications and processes should be performed after the modifications are completed to achieve automatic upgrade.

1. Modify auautoupgrader1. Double-click it to modify the version number of bynumer. Note that it must be higher than the previous number. If the previous one is 1.0.0.1, it should be 1.0.0.2.

2. Click the "export to Info-file" button, enter the same file name as during development, and generate a suffix. INF configuration file, and then upload the configuration file to your website, and put the upgrade file in the same directory, such

3. Click OK to save all the Delphi files and compile and run the files.

4. Copy the newly generated configuration file and all compiled Delphi files to the specified directory on the website, for example, http: // 192.168.1.104: 8080/update. Overwrite previous files. Note: you do not need to package. Because what we need here is not a package program file, but a package of the previous parts (unpackaged files ).

5. OK.

6. Subsequent upgrades will all follow the same procedure.


This article from "all promising method, such as dream bubble film" blog, please be sure to keep this source http://kaixinbuliao.blog.51cto.com/2567365/1536714

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.