See people use InstallShield to make ASP installation program (5)

Source: Internet
Author: User
Tags goto include
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



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.