Installshield

xiaoxiao2021-03-06  49

Install shield x 10.0

Premier Edition

Installer Production Guide

Zhongke Software Group Enterprise Information Business Department

December 9, 2004 Guiden

Zhongke Software Group

Sinosoft Group

http://www.sinosoftgroup.com

table of Contents

1. Install Shield X 10.0 premier edition introduction ... 3

2. Create a new project ... 4

3. Rapid build a installation with Project Assistant ... 5

3.1. Below is the Project Assistant home page ... 5

3.2. Project Assistant's first step ... 6

3.3. Project Assistant method second step ... 7

3.4. Project assistant's third step ... 8

3.5. Project assistant fourth step ... 9

3.6. Project Assistant fifth step fifth step ... 10

3.7. Project Assistant Sixth Step 6 ... 11

3.8. Project Assistant Seventh step ... 12

3.9. Project assistant's eighth step eighth ... 13

4. Installation Designer Mode ... 15

4.1. INSTALLATION Designer mode home ... 15

4.2. INSTALLATION Designer Mode Project Shande ... 16

4.3. INSTALLATION Designer Mode Part 1 ... 17

4.4. INSTALLATION Designer mode second part ... 19

4.5. INSTALLATION Designer Section III ... 22

4.6. INSTALLATION Designer Mode 4 ... 23

4.7. INSTALLATION Designer fifth part ... 25

4.8. INSTALLATION Designer Sixth Part ... 26

4.9. INSTALLATION Designer Section 7 ... 28

4.10. INSTALLATION Designer Mode 8 ... 29

4.11. INSTALLATION Designer Mode Ninth ... 30

1. Install Shield X 10.0 Premier Edition

In 2004, INSTALLSHIELD integrates devstudio, Multiplatform and Update Service together, forming InstallShield X

INSTALL SHIELD X is divided into two versions, one is InstallShield X Express and InstallShield X Premier Edition. The front is designed for quick and easy packaging, if your app is just simple installation, write a write to the registry, do a shortcut to write the program, use this fastest, look professional; Production and customization, there is special requirements, such as writing a repository, run SQL, EXE, and other requirements, as needed to prepier Edition.

Of course, they can make any platforms under any system, such as Mac OS X, OS / 400, Windows, AIX, Solaris, Linux, HP-UX, or various types of UNIX systems. Support 64-bit applications.

Below is the interface of Install Shield X 10.0 Premier Edition,

2. New projects we create new projects, different projects, may have different options, but it is basically different, and the type of type is selected according to the requirements of the project, and the web project is to build this, other types There may be no items in this item.

The item type dialog box is selected below:

After new completion of the project, INSTALLSHIELD 10 will enter the Project Assistant interface, which is the installation assistant that appears from DevStudio 9, which organizes some of the most commonly used operations as a wizard in "Previous", "Next" manner to become a wizard, you can Use this wizard to quickly complete the whole process of the installer production.

However, this method is too simple. He is the EXPRESS version is a quick guide, only some super simple work, such as: the company name, etc. If you want to make a complex operation, you can't do it. So, I recommend that friends who need to make professional installations or use Installation Designer to make installers.

Project assistant approach, INSTALLATION Designer mode, we choose Project Assistant, quickly create a installer, in fact, I usually use the Project Assistant how to establish a good installer to see if it can be installed, then, choose the Installation Designe mode. Do more detailed work.

3. Quickly build a installation with Project Assistant

Now start using this way a step-by-step business installer.

3.1. Below is the Project Assistant Home interface

In the picture below the picture, there is a icon of seven steps. There is a 'last' '' next 'of the next', what is used, don't have to say it, you will do it.

Don't say two words, click 'Next', because the above steps seem to have something to fill something, in fact, your thoughts are right, do not fill anything, this is called fool!

Is it beautiful? What is more happily, these interfaces can be changed, but also change the subject, the above picture is the default topic, he has five or six options, such as optional Windows XP theme, etc. If you are especially, I will not say more here.

3.2. Project assistant method first step

Ok, now I'm now 'Next' comes out, the picture is as follows:

The left side here is the open link of the default parameters, as well as help links, etc., the right side is what we have to fill. From: the company name, application name, application version number, company website address, the last one has a small computer icon, is to choose an icon, this icon is the icon that you make a installer in the future, there is I do one by empty, but here I use the default icon.

Yes, there is an item on the installation icon on the installation icon, as if it is said that when the version is updated, is it notified to notify the end user update.

Fools also need to fill in the company name, software name, always stronger than the default My Project Name-3, of course, since we use professional tools, we use some professionalism, filled out, then click down 'Next' ,

3.3. Project Assistant method second step

Looking at the picture below:

Here is the basic condition that allows you to choose your application and the basic conditions to meet on the general system. It is to select IE6. However, I just used it soon, I don't know if I can add a project, such as: Is there a super star reader, etc. Anyway, I am not clear, here is talking about it, after reading it, here, it will take the jade.

It is the default, no choice in the picture. If your software writes on all WIN platforms, you can choose this. But sometimes if you only want users to install software to Server2000, on the Server2003 server, just select these two.

3.4. Project Assistant's third step

After choosing, continue to click 'Next', the picture is as follows:

Here is to classify the files in the software, put it in a few directory, and then choose the content here when you customize the installation type, such as: If I put the software file in A, B Directory (Correctly, I should only call only A (Features) in a typical installation. After making the installer, only the user selects only the file in the a directory (Features), which is not installed. B (Features).

If you want to change, you can change it first.

3.5. Project Assistant Fourth Step 4

Let's see 'Next', here is the real file. The interface is as shown below.

This interface content is a bit more, I don't say it on the left, and the fool is also understood, huh, huh. Let's take a look at the right side, there is a bmp1 folder on the picture, that is, I use 'add folders' to call it in. (Tip: There will be a dialog box when adding a directory, remember to select 'including subdirectories and file' options, the rightmost list box * .jpg, * GIF these images are files in the BMP1 computer folder . Others I have not moved. 'All application data' This is the previous directory we built. It can be chosen here. That is, here we can return the files to be installed to our planned type, if this directory is selected, then it means All the files that include him allocated here.

Because I didn't build a directory on the step, I didn't have other options here. The default all files were classified in the 'all application data'.

The middle list box is a directory, but the name is a bit blamed, huh, but it will be understood that the installshield uses variables instead of the actual path, [] This number is variable. To see more defined variables, the method is to see the right head menu on them. The ProgramFilesFolder in this interface is the same representative of the Program Files folder, and CommonFileFolde is the same, which means the Common File clip in the computer. As for these variables in that definition, I didn't find it, of course, if you have time, go to find a look. It should be in a corresponding table. Not introduced in detail, I have point 'Next'.

3.6. Project assistant fifth step

Point 'Next' The picture is as follows:

There is only one big list box in this interface, where you want to put things you want to give users in the start menu,

InstallShield See you will find an Exe executable file from you, find it will be listed, you can increase, album. If one is not, then you will add 'new' yourself. Note: If you choose one of the list, there should be several items in the right side of the list, the default first is selected (that is, create a start menu). The second is to create a shortcut at the desktop, the third is to choose an icon for this shortcut, there is a simple, don't tell me.

3.7. Project Assistant Sixth Step 6

Let's go, 'Next', (Picture in the following) Here we want us to fill in the registry, you can copy a good registry, you can handle it, if your software does not write a registry, you can also Don't move, this is a green software. I always write the software user who wants to write the registry. If it is not necessary, don't add it. (I added a Sino button in the picture, but there is no data)

3.8. Project Assistant Way Seventh Step

Next is the selection language (the pictures are as follows :), INSTALLSHIELD X 10.0 has included most languages, no need to download the language pack before you can download the language pack, you can use Chinese, now it is ok.

If you have selected two or more languages, please ask you to install it in the language installation. If your procedure is to delete English. If you are doing software, there are several languages ​​and are also classified when you do an installer, then you can choose several languages ​​at the same time for users to choose to install.

What is needed here is that you can choose the file directory of different languages ​​you have classified in the pull-down control above the language box, that is, you can put different language versions of the file in different directories, here you can You can choose a directory to select the appropriate installation language.

3.9. Project assistant's eighth step eight

The final step of the Project Assistant mode (the picture is below) Select an installation type, then point 'build installations'. If you choose the first one, it will automatically generate a .exe file.

4. Installation Designer Mode

It is actually the development model. You can do what you want to do, you can also write a program with a script similar to the C language, call the API to establish a database, write a registry, check the integrity of the target system.

4.1. INSTALLATION DESIGNER Mode Home

This is basically the text interface of the above way, if not suitable, you can modify it.

4.2. INSTALLATION Designer Mode Project Headplace

A total of nine parts is divided, and here will be introduced one by one.

4.3. INSTALLATION DESIGNER method first part

Organization is part of IS X responsible for installing content organizations.

There are three subprojects, Setup Design, Features, Components. Features is all installation subprojects, there is no settings for files and files under the subproject; Components are all files (components), which only makes all the files in the entire installation project Rivie and manage in directory order, setup Design is integrated with Features and Components two-part feature, which is the organizational structure of Features to list all Components under Feature.

Here, we can add new Features, features is installation you can choose from different installation parts, such as 64-bit supported Features in Whidbey, I have not installed, huh, huh. However, the installation example I have done is not possible, so I haven't been divided. There is only one default feature, all of them are installed under Default, and the interface on the selection of custom installation is jumped over. Maybe my example is too small. Features is a tree organization, as long as your code is good, you can take a minimize. Components' meaning: General file (.aspx and CSS, images, etc.) are a directory as a Component, there is a global component (default name alphafiles), then each file directory is a Component; and each EXE and DLL are as a separate Component. The benefit is that we generally do not set up for pages and image files, so you can easily manage a directory as a Component.

The component's settings can be made in Components or in Setup Design.

Destination Permissions: Permissions, sometimes our web directory is the directory used by the upload file, then the directory should be writable, then it is best to set up the ASPNET in this Component, so that the normal function is normal.

Permanent: persistent content, some contents continue to remain on your computer while you need to uninstall, such as usage information, Access database files, etc., then we can set its permanent to "Yes".

Others have some related settings about COM and .NET, this is no longer described here.

The interface as shown below will appear after the Component is expanded:

File is the file included in this Component; Registry Data is to add registry information; shortcuts is adding express menu and desktop;

Advanced Settings is some advanced settings, such as: Application Paths Write the application path to the registry to make the program to find the DLL you need without changing the PATH environment variable; assembly is a registered private or global Assembly ;

Com registration is to register COM, if your .NET program uses the COM component, you can register here, the role of Regsvr32; File Types is the definition file type and open mode;

Control NT Service and Install NT Service are used for installation and control NT services. If you include NT services in your program, you can install install nt service on this EXE or DLL, each attribute of NT Service can Set here.

4.4. INSTALLATION Designer mode second part

This part of the main content has two: Files and folders and redistributables, Mobile Devices is the new content of IS X, which is used in the installation of a mobile phone in the project, which is very small. .

FILES AND Folders is used by directory and files for local and target, which you can drag local files to a directory of the target. Here, some specific system catalogs on the target will be listed here (as shown below), if you need to put some files to the root directory of IIS, you can easily implement it. Look at the picture below:

When you add a folder, you can add a dynamic link mode. If you add a file or delete files to this directory after adding, then IS will automatically modify the file list when you compile, if you do not use a dynamic link method, If you add a file to this directory, you will not pack it together. If the file is deleted, the IS will report an error when compiling. REDISTRIBUTABLES: This view includes all installshield Objects and third-party Merge Modules (.msm files). If you need to install MDAC2.8, OLE DB, MSDE, etc., you can select this component directly here, then the component will be automatically installed in the installer. Before using IS, I installed the web project to Windows 2000 Server, because there is no MDAC2.7 on the Windows 2000 Server, and the .net program needs this component, I need to manually install MDAC2.7, after using IS, I can select MDAC2.7 directly. When the installer is installed, there is no MDAC2.7, and if not, it will be installed and restarted, and then continue to install. IS X has multiple components, more commonly used: JRE1.4.2 and IE6, both of them are setup prerequisites components, we don't have to worry about the installation of JRE (at least I used to install other ways ). These components need to be used in which feature is used.

Below is a component map:

4.5. INSTALLATION DESIGNER Section III

Look at the picture below:

Here are five: shortcuts, registry, odbc resources, ini file change, environment variables (Environment Variables).

Shortcuts: Here SHORTCUTS refers to a shortcut to set global (these features are also in the Organization section, but there is set it on a certain component). You can add a shortcut to the Start Menu, send to (Send to) and Desktop. The settings here are relatively simple, and there is no longer explained in detail here.

There is a setting method to explain this: When we install a web server project, sometimes you need to add a shortcut to our web project, not a shortcut to the static page in the installation directory. The advantage of this is that after we click shortcut, the system will open an IE window, and the URL points to http: // localhost / mywebsite. And this feature I didn't find in the IS graphics operation. The way I implemented is: First add a shortcut to a page pointing to the web directory (such as point .htm or .aspx.jsp),

Then find the shortcut table in Direct Editor in Additional Tools.

The content of Arguments is changed to the URL that needs to be accessed, such as localhost / site / default.aspx, you can also write your personal website or company website, so you can access your homepage from the menu. There is also a shortcut to add a unloading of this program, but his target is [systemfolder] msiexec.exe, arguments is / x [productcode].

Registry: Manage registry keys, here is basically static information, if you want to add dynamic information such as installation date, then you can program it through installscript.

ODBC Resources: Manage ODBC Drivers and DSN, even very small, just don't say it.

Ini File Changes: Everyone uses .config or XML.

Environment Variables: Add environment variables, you might do more installations for Java programs. Everyone knows that we can use it when developing GX, now you can write the standard classpath here to add JDK, JDBC and other roads, and the GX itself comes into itself.

4.6. INSTALLATION DESIGNER Six

Here are three: IIS, Component Services, SQL Server service. IIS: At this time, we have the necessary items that WebForm applications, IS X is more than IISTUDIO, and before IS 9, set an IIS virtual directory to modify manual multiple Direct to implement . It is very simple to add sites and virtual directories here. Please pay attention to the right attribute table, basically all the properties set by IIS here can be set here.

Component Services: COM installation has never used it, don't say it. SQL Servers: This is also the new function of IS. I have been doing a WinForm program before IS X to perform the installation database, configure Web.config and License. IS X provides a Database IMPORT WIZARD to import a local database into the IS (in fact, it is integrated into a scirpt file), and the import process is simple. The imported Script file is stored in the installation package, when installed, the installer will help you install the SQL database. Here you can also set up the restrictions on the database on the target, such as the version of SQL Server, can be installed in MSDE.

In fact, we are all useful, because we deploy JSP to the application server, we will write a few lines after selecting the specific directory of the application service when installing, and then write a few lines, automatically running the application after installation The server is not a line, huh, huh,

4.7. INSTALLATION DESIGNER Fifth Part 5

In fact, here, I took him down, here is the script that configures MS SQLL Server and creates a table.

The above is a creation of SQL, where you want you to connect the database to create a table, he will ask you the username and password you logged in, here I also Insert a few lines of data. To ask how to connect a database, as long as you build a New SQL Connection connection, he will have a guide.

Just regret that there is no direct support for the Oracle database, no way, who wants to be installation is the MS partner. We have used Oracle, and we can only write the interior. . . . One way is to do an exe to make a database, such as using Delphi, and then during the installation process, or before completion, call running this EXE is not OK, huh, Either simply use it as part of the software, install it into the Start menu, after you want to configure it. 4.8. INSTALLATION DESIGNER Sixth Part

This part should belong to the advanced feature, which is not as clear as you clearly, as you can clearly complete the settings. This part mainly includes programming the desired functionality and customization of certain installation settings, processes, and some special operations using Installscript programming. Installscript: This is InstallShield's scripting language, using installscript you can complete a lot of operations, from file operation, XML operation, registry operation, and more. The syntax of Installscript is similar to C , and provides a large number of functions that can be written relatively simple.

Writing Installscript Beginning from New Script file (.rul), every function we created in the Script file is available under Custom Actions so that we can control the operation sequence of the installscript function, this The function is mainly to add all kinds of functions to Install, and the customized function can be the installscript function written above, or it can be a single function in an independent EXE, a function in the DLL, VBScript, JScript, etc. Can add or use the Wizard directly (Custom Actions Wizard)

There are a lot of properties after adding or adding an end, these attributes include custom functions. Wait (Wait for running to complete the custom function and execute), running conditions, run failures, running in each installation sequence The installation order, etc., each part please understand the property settings table and use help.

You can also write a WinFrom to perform SQL Server or Oracle database installation, license input, modify the database connection string and license, etc., I added a Custom Action pointing to DatabaseSetup.exe, let him get the end installation Call, so after all the web program is installed, I call this EXE for configuring, and the configuration completes the exit This program ends the entire installation.

But now use SQL without this, it has been integrated here, if you get Oracle, how is it. If you use Oracle, I am sorry, you write Winfrom to do it.

SEQUENCES: This feature sets the sequence of installation of all thections, which can be set, including: user interface, standard installation action, custom function, etc. You can adjust the installation order or direct passing the installation order via Move Up, Move Down or Change Sequence Number Remove some Sequence. You can also add some custom features or system features here.

If you need your installer to restart your computer, simply insert a Standard action ScheduleReboot at Sequence, this action is to restart your computer at the end of the installation.

other functions:

Support file With this feature, the installer producer can add some files that only in the installation process, such as language files, splash bitmap files, and more. System Searches Search for files, folders, registry projects in the target machine system during installation, determine some of the parameters required to install in the installation process during the installation process. .

Property Manager edits the property table in this view, many attributes appear in the above views.

4.9. INSTALLATION DESIGNER Section 7

User interface

All user interfaces can be managed in this view. Dialogs include all dialogs in the system, here we can change the behavior of the object in each dialog, change the text and images in the dialog, if you have selected more in the installation language project in Project Properties Language, then each language corresponding to the dialog box will be listed, you can modify separately.

Here we can also import, export dialogs. Everyone should pay attention to there is a licenseagreement dialog, the license agreement dialog, where we need to select a .rtf file, the content in the RTF file during the installation process is displayed in the Protocol Text Box. All regular installations need to set this item (to write your license, huh).

IS supports custom user interface, but this item is not supported in a web project. If you install a WinForm program, you can use other Skin to beautify your installer. There are six interfaces here, reading the book chooses a favorite interface.

4.10. INSTALLATION DESIGNER Mode 8

Media defines information such as file organizations for your installer in this view. I have used Release Wizard, so I haven't used this project, or the release wizard is more convenient, if you like this, use it!

4.11. INSTALLATION Designer Mode Ninth Part

This is the last one of the Designer mode. The language in all systems, the literature, all in these tables, what to do, do you. However, it is very difficult to change, for example, some pictures of the installation interface, the installation sign in the lower left corner, etc. It is useless. It may be that I am not familiar, please see the picture below.

Additional Tools is an additional tool view.

Dependency Scanners

This tool can scan the execution files and library files in the installation project, which can find which system environments and DLL support you need, so you can guarantee that your program is trying to include the required various libraries when deploying to the customer computer. Instead, customers want to find and install.

MSI Debugger

The debugging of the MSI installation project where you can debug every custom function and the execution of the dialog. Installscript installation items do not have this feature.

In fact, you choose a different type, this note is not a mask, all is not normal, just that you choose type is incorrect, I usually use the MSI type, establish a web project to use the web type, but you have to choose other Types can also be. To select the type correctly, please see help, here no longer say.

Direct Editor

Edit all MSI Tables here. We have all the information, such as product information, shortcuts, etc. in front of the product, such as product information, shortcuts, etc., is what the top of this is said, you should change it.

This brief manner is just helping you use InstallShield software, rich experience is what you are constantly practicing, if you want to be fine in InstallShield, you need to use it. (end)

This article is two copies, .doc and .html.

转载请注明原文地址:https://www.9cbs.com/read-82333.html

New Post(0)