installshield| program////////////////////////////////////////////////////////////////////////////////
//
IIIIIII ssssss
II SS InstallShield (R)
II ssssss (c) 1996-1999, InstallShield Software Corporation
II SS (c) 1990-1996, InstallShield Corporation
IIIIIII ssssss all Rights Reserved.
//
//
This code is generated as a starting Setup template. You should
Modify it to provide all necessary steps for your setup.
//
//
File Name:Setup.rul
//
Description:installshield Script
//
Comments:this template script performs a basic setup. With minor
Modifications, this template can is adapted to create
New, customized setups.
//
////////////////////////////////////////////////////////////////////////////////
Include Header Files
#include "ifx.h"//do not REMOVE
String defines////////////////////////////
Installation Declarations///////////////////
-----DLL Function Prototypes-----
Your DLL function prototypes
----Script Function Prototypes-----
Your script function prototypes
Your Global variables
//////////////////////////////////////////////////////////////////////////////
//
Function:onfirstuibefore
//
Event:firstuibefore event is sent when installation was run for the
Time on given machine. In the handler installation usually displays
UI allowing end user to specify installation parameters. After this
function returns, Componenttransferdata is called to perform file
Transfer.
//
///////////////////////////////////////////////////////////////////////////////
function Onfirstuibefore ()
Number Nresult,nsetuptype;
STRING SzTitle, szmsg;
STRING Szlicensefile, szquestion;
STRING svname, Svcompany, svserial;
STRING Szdir;
STRING Szfolder;
STRING szcomponents, Sztargetdir;
Number Nlevel;
Begin
To do:if your want to enable background, window title, and caption bar title
Settitle (@TITLE_MAIN, white);
Settitle (@TITLE_CAPTIONBAR, 0, backgroundcaption);
Enable (Fullwindowmode);
Enable (BACKGROUND);
SetColor (Background,rgb (0, 128, 128));
Default Value setting
TARGETDIR = "C:\\inetpub\\wwwroot\\webapp";
Szdir = TARGETDIR;
Shell_object_folder = @FOLDER_NAME;
svname = "Daniel";
Svcompany = "N/a";
svserial = "111-1111111";
Dlg_start:
Beginning of Dialogs label
Dlg_sdwelcome:
SzTitle = "";
szmsg = "";
Nresult = SdWelcome (SzTitle, szmsg);
if (nresult = back) goto Dlg_start;
Dlg_sdlicense:
Szlicensefile = supportdir ^ "License.txt";
SzTitle = "";
szmsg = "";
Szquestion = "";
Nresult = SdLicense (SzTitle, szmsg, Szquestion, szlicensefile);
if (nresult = back) goto dlg_sdwelcome;
Dlg_sdregisteruserex:
szmsg = "";
SzTitle = "";
Nresult = Sdregisteruserex (SzTitle, szmsg, Svname, Svcompany, svserial);
Verify serial number
if (svserial!= "111-1111111") Then
MessageBox ("InValid serial!", WARNING);
Goto Dlg_sdregisteruserex;
endif
if (nresult = back) goto dlg_sdlicense;
Dlg_sdaskdestpath:
SzTitle = "";
szmsg = "";
Nresult = Sdaskdestpath (SzTitle, szmsg, szdir, 0);
TARGETDIR = Szdir;
if (nresult = back) goto Dlg_sdregisteruserex;
Dlg_sdcomponenttree:
if ((Nresult = back) && (Nsetuptype!= CUSTOM)) goto Dlg_sdaskdestpath;
SzTitle = "";
szmsg = "";
Sztargetdir = TARGETDIR;
Szcomponents = "";
Nlevel = 2;
if (Nsetuptype = CUSTOM) Then
Nresult = Sdcomponenttree (SzTitle, szmsg, Sztargetdir, szcomponents, nlevel);
if (nresult = back) goto Dlg_sdaskdestpath;
endif
Dlg_sdselectfolder:
Szfolder = Shell_object_folder;
SzTitle = "";
szmsg = "";
Nresult = Sdselectfolder (SzTitle, szmsg, Szfolder);
Shell_object_folder = Szfolder;
if (nresult = back) goto Dlg_sdcomponenttree;
Setup Default Status
Setstatuswindow (0, "");
Enable (Statuse