Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference
To create a recorder file:
Start the installer for the software you want to remotely install, and identify the installation sequence. Should the installer not normally function, the software cannot be remotely installed under JP1/Software Distribution.
If the software to be remotely installed is compatible with the Windows Installer, you should customize the software installation windows so that a dialog box only appears upon completion of installation and upon error detection. This customization reduces the number of installation steps you need to identify, and facilitates recorder file creation.
Check the following items to identify installation steps separately for each OS, and record those steps on a paper sheet.
Check what operations the installer requests you to do in what sequence. Repeat the installation several times to check and list the following items:
Note that the operations may change depending on the installation method, the destination machine's condition (the operating system, amount of free disk space, available memory, and existing software). You need to check up elaborately.
Table D-1 lists an example for installing Acrobat Reader 5.05.
Table D-1 Sequence for installing Acrobat Reader 5.05
| # | Text | Class name | Operations | Attribute (parent or child) | Parent window | Remarks |
|---|---|---|---|---|---|---|
| 1 | Set up Adobe Acrobat Reader 5.05 | #32770 |
|
Parent | None | - |
| 2 | Choose Destination Location | #32770 |
|
Parent | None | This dialog box is displayed for the second time after item 4. |
| 3 | Destination Directory | #32770 |
|
Child | Item 2 | Only displayed when you change the destination location. |
| 4 | Set up | #32770 |
|
Child | Item 3 | Only displayed when you change the destination location. |
| 5 | Set up is Complete | #32770 |
|
Parent | None | - |
The recorder file is to be written in the Test Basic language of Visual Test. For button presses, character inputs, key presses, and all other operations, use the functions provided by Visual Test. For these functions, arguments are required. You are required to specify dialog box attributes such as the dialog box window handle, window class, and title text. To check up the attributes of the dialog boxes listed in (a) above, we recommend that you use the Window Information tool of Visual Test.
For details about the Window Information tool of Visual Test, see its manual.
The following is an example of a well-structured recorder file. Normally, create only the shaded portions according to the installer for the software you want to install.
Figure D-2 Example of configuring a recorder file
When you create the target processing, we recommend that you take into account that the installation may be suspended because the user responded to a dialog box, or used the keyboard or mouse by mistake. The following shows an example of the recorder file procedure.
Figure D-3 Example of processing a recorder file
The recorder file repeats finding each dialog box in the loop. Therefore, if the user responds to window A by mistake and window B appears, the recorder file skips the operations on window A and performs the operations on window B.
When you create a recorder file, check the windows to be displayed, and make a listing of the operations on the windows. This structure can complete the processing regardless of the sequence of the displayed windows and the user's actions made by mistake.
Code the recorder file in the Test Basic language of Visual Test according to the installation sequence you noted. First, use the Scenario Recorder of Visual Test to generate the installation sequence automatically. The generated code is the source of the recorder file. Then, modify the generated installation sequence, and compile the source file into a reorder file JP1/Software Distribution can use. For details about the Scenario Recorder of Visual Test, see its manual.
When creating a recorder file, combine the operations on all the dialog boxes that the installer displays.
When scripting the operations on dialog boxes, pair the following steps for each dialog box, and sequentially place the pairs of steps in a loop:
Use the WFndWindC function to find the dialog box. This function uses the Text and Class name to find the dialog box. Therefore, you must acquire the Text and Class name of each dialog box that will be displayed.
You can use the Window Information tool of Visual Test to check the dialog boxes.
The operations on dialog boxes include:
The events recorded by Scenario Recorder contain the information of the dialog boxes and the processing for the dialog boxes.
The following explains the specifications of the WFndWndC function used for finding dialog boxes in the script of the recorder file you create.
In the recorder file, you can incorporate many functions of Visual Test. However, they are not adequate for assuring a proper combination with JP1/Software Distribution. Therefore, you should use the expanded functionalities of JP1/Software Distribution. The following describes the modifications to be made to enable the user of the expanded functionalities.
To compile the source of the recorder file that you have created:
Figure D-4 Copying the DMPTEST.INC file
Add the recorder file that resulted from the compilation by using Visual Test to the Packager. You can add the recorder file to the Packager only by copying the recorder file that has an appropriate extension to the appropriate directory. Note that the directory for containing the recorder file can contain only the recorder file(s).
The extension varies depending on whether you can use multiple installation means. You have to use the default extension generated during compilation. The extension is *.PC6 if you have used Visual Test 6.0 for compilation with only one installation means enabled, and *.PCD if you have used Visual Test 4.0 for compilation.
The following shows the directory for containing the recorder files including the file name(s). In the pathname, RecordFileDirectory is the directory specified in RecordFileDirectory in the installation definition file.
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
Copyright, patent, trademark, and other intellectual property rights related to the "TMEng.dll" file are owned exclusively by Trend Micro Incorporated.