The installshield| program below is an example of setting up Web files and settings that requires a VBS file (with virtual directory settings but no permissions settings).
////////////////////////////////////////////////////////////////////////////////
//
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.
//
//
FileName: Setup.rul
//
Description: InstallShield Script
//
Note: This template script performs a basic setup. With minor
Modifications, this template can is adapted to create
New, customized setups.
//
////////////////////////////////////////////////////////////////////////////////
Included header files
#include "ifx.h"//cannot be moved
String defines////////////////////////////
Installation Declarations///////////////////
-----DLL Function Prototypes-----
Your DLL function prototypes
----Script Function Prototypes-----
Your script function prototypes
Prototype chk_serial (string,string);
Prototype REGODBC (STRING);
Prototype set_vod_liveaddress ();
Your Global variables
STRING Szvodservername;
STRING Szliveservername;
//////////////////////////////////////////////////////////////////////////////
//
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 Szfile;
STRING Sztargetpath;
STRING Szdir;
STRING Szfolder;
STRING szcomponents, Sztargetdir;
Zy
STRING Szdefault,svresult;
STRING Sdbservername;
OBJECT Piisobj;
Zy
Number Nlevel;
LIST liststartcopy;
List List;
Number nvsize;
STRING msg;
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));
Nsetuptype = typical;
TARGETDIR = "d:\\" ^ "cyclone2000\\";
Szdir = TARGETDIR;
Shell_object_folder = @FOLDER_NAME;
Svname = "";
Svcompany = "";
Svserial = "";
Dlg_start:
Beginning of Dialogs label
Dlg_sdwelcome://Welcome dialog box
SzTitle = "";
szmsg = "";
Nresult = SdWelcome (SzTitle, szmsg);
if (nresult = back) goto Dlg_start;
dlg_sdlicense://Software License Agreement dialog box
Szlicensefile = supportdir ^ "License.txt";
SzTitle = "";
szmsg = "";
Szquestion = "";
Nresult = SdLicense (SzTitle, szmsg, Szquestion, szlicensefile);
if (nresult = back) goto dlg_sdwelcome;
Dlg_sdshowinfolist://readme file dialog box
Szfile = supportdir ^ "Infolist.txt";
List = Listcreate (stringlist);
Listreadfromfile (list, szfile);
SzTitle = "";
szmsg = "";
Nresult = Sdshowinfolist (szTitle, szmsg, list);
Listdestroy (list);
if (nresult = back) goto dlg_sdlicense;
dlg_sdregisteruserex://User Information dialog box
szmsg = "";
SzTitle = "";
Nresult = Sdregisteruserex (SzTitle, szmsg, Svname, Svcompany, svserial);
if (nresult = back) goto dlg_sdshowinfolist;
Check serial number
if (Chk_serial (Svcompany, svserial) <0) Then
Goto Dlg_sdregisteruserex;
endif
Check Serial number complete
DLG_SDASKDESTPATH://Installation Location dialog box
SzTitle = "";
szmsg = "";
Nresult = Sdaskdestpath (SzTitle, szmsg, szdir, 0);
TARGETDIR = Szdir;
if (nresult = back) goto Dlg_sdregisteruserex;
Dlg_setuptype://Installation Type dialog box
SzTitle = &qu