Keywords: installshield, _isuer.dll, custom dialog
Description: InstallShield of this document is 6.22, languages: Chinese. The operating system is Windows2000. Resource Editing Tools: Microsoft Visual C 6.0. Modified DLL: _isuer.dll.
InstallShield allows you to add a custom dialog to meet different needs, with regard to how to create a new dialogue resource, there are many reference materials to query, not to say. Here mainly illustrates the following aspects:
1. How to create a dialog with the same style of installshield Wizard.
2. How to write scripts to control the validity judgment of inputs and controls on the custom dialog.
First, create a dialog with the same style of installshield wizard
In the installation wizard, you may need to add some custom steps, which may need to insert some custom dialogs as a step, in order to fully integrate the steps of the custom dialog, that is, custom dialog To have the same style as the INSTALLSHIELD standard step, the picture below is a picture of the InstallShield a standard step:
Standard step example
In the above figure, some styles of the Standard Wizard dialog have been labeled: 1, 2, 3, 4, 1 for this step function, and the description is expressed in black body; 2 is a supplementary description of this function; 3 icon for installshield; 4 is the label of InstallShield.
So how do you implement these features in your custom dialog? Here are the four special places to explain:
First, these four places are a label control, and in VC , it behaves as a static control (CSTATIC).
1 is the place to show the function of this step, then how to achieve the style of the black body? In fact, the mechanism of installshield embedded has been defined. Add a static control on the custom dialog and set the ID of the control to 50, and make the transparent attribute in Extended Styles is valid, then write a custom function in the CAPTION. The position of the control is (10, 3). After setting these, InstallShield automatically changes the fonts in the control to a black body.
2 In addition to this function, this is a normal static control, its ID is 51, which is also set to set the transparent attribute of Extended Styles, and then write a supplementary instructions in the CAPTION. The position of the control is (17, 15).
3 is an icon for installshield, which is also implemented with a static control. Add a static control on the custom dialog, set the ID of the control to 1200, and make the Simple attribute in Styles is valid and the transparent property of Extended Styles is valid, fill in the CAPTION: @ 10550, 10551; 1; 0; 0, 128, 128. The position of the control is (0,0), the size is (332 x 218). After setting it, InstallShield will automatically add this icon in this control.
4 is marked for installshield, but it is different from the normal effect. Add a static control on the custom dialog, set the ID of the control to 7, empty the CAPTION, and remove the Visible property of the control. InstallShield automatically sets the control to standard effects. After setting up the above four places, it is necessary to add a static control to 52, clear the CAPTION, and the position is (0, 0), the size is (332 x 218). The actual effect of running is the same as the effects in the standard installation step.