Install Shield)

Source: Internet
Author: User
Tags microsoft sql server

For beginners, creating an installer is not a problem they have encountered. You generally know how to install it with someone else's installer, rather than how to do it. In fact, it is not difficult to create a general installer. It can be said that it is much easier than writing code. It's just something that everyone thinks is mysterious. Or, the boss is afraid that you know too much about the entire project without giving a chance. In fact, the installer copies the appropriate files to the appropriate place.

This article combines the installation programs I previously wrote to the company to give you an understanding (because it only explains the installation program, it should not involve core issues. It will not infringe on its own interests, and it is done by myself. In fact, at that time, I did not install databases, and I used to have databases automatically distributed and scheduled backups ). Since I have not installed Install Shield on my current host, I can only explain the following to you. I will give you a more detailed explanation after the installation.

Installation Procedure:

1 first, you should know the files required by your installer. First, copy these files to the same folder for future reference. Of course, these folders should include *. EXE files, *. DLL files, images, and help files.

2. Do you need to write the registry? If you want to, you need to add it to the system installer. You can read the book or open Install Shield.

3. Check whether encryption is required. Select the installation type. Generally, this can be selected in Install Shield. For example, the BDE driver. You can do it first or finally write code.

4. If a third-party software driver is used, you can check whether the driver exists in Install Shield. If it exists, it can be added and included. If you do not have one, it will be troublesome. You may have to write your own code.

5. database installation problems. If your program contains a database. You can also add code to automatically run unattended installation programs. Of course, you must write the code for installing the unattended database. Microsoft SQL Server supports this function.

Next, let's take a look at the installation document I wrote after one of my previous projects (more general content can be solved by reading books or checking relevant information ):

I know what files my program needs to copy them together and then run Install Shield. In this example, we import the corresponding files in the corresponding main version.

Example 1: import a Help file. (If you do not know how to export data, please read the Install Shield related books or help)

Similarly, we can import executable files. In fact, these locations do not necessarily only support executable files, but we can also place other files. 2:

Similarly, shared files such as DLL files are stored. These are generally automatically merged into windows.

Switch to the compoents page:

Check whether the check box is selected. This is important. I will show one here, and the rest will be modified at the same time.

The serial number code that we sometimes need to add is as follows: add password verification: Add related code in script. If you forget the secret you set one day, you can find it in the setup. rul file.

Dlg_sdregisteruserex: szmsg = ""; sztitle = ""; nresult = sdregisteruserex (sztitle, szmsg, svname, svcompany, svserial); If (nresult = back) Then goto dlg_sdshowinfolist; else if (svserial! = "123456") Then MessageBox ("Incorrect password! Enter the serial number again! ", Severe); goto dlg_sdregisteruserex; endif; Add the code for automatically running the program: function onmoved ()
Begin
Launchappandwait (winsysdir ^ "dbsetup.exe", "", wait );
End;

Build (default) Media under build

 

To sum up, we can create our own installer. Of course there are other problems, so you have to first look at them. For example, setting up shortcuts and displaying installation directories. If you make a simple installer, you can use some easy-to-install tools, such as wise install.

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.