;***************************************************************************
;* Enterprise Developer  - 1.0 Install Script                              *
;* SCRIPT FOR VERSION 3.2+ OF SYMANTEC INSTALL FOR WINDOWS                 *
;***************************************************************************

[InstallVersion]
3.2

[process]
Bitmaps.pix 

EbCopy = SetActiveCopy

AllowIntlChars

;//////////////////////////////////////////////////////////////////////////
; Initialize switches 10 and 12 to TRUE so that ODBC.INI and ODBCINST.INI
; won't get copied if 1)they don't exist and 2)XDB and ORDPROC not selected
;//////////////////////////////////////////////////////////////////////////

switch10 = TRUE
switch12 = TRUE

;//////////////////////////////////////////////////////////////////////////
;Initializing the switches 02 and 40, I am not sure if it is necessary, but
;I will do it anyway; switch48 = TRUE is for message windows...
;//////////////////////////////////////////////////////////////////////////

switch02 = FALSE
switch40 = FALSE
switch48 = TRUE

;////////////////////////////////////////////////////////////////////////////
; Switch09 will be used throughout to test for first time, complete installs
; FALSE will mean it is NOT this case; TRUE means it is.
;////////////////////////////////////////////////////////////////////////////

switch09 = FALSE

switch02 = VersionSearch.EnterpriseDeveloperSearch
#if switch02
	switch40=MessageYesNo.FoundVerAskNewPath
	#if switch40
		ResetTarget.NewTarget
		PathBrowse.GetNewPath
	#endif
#else
	switch09 = TRUE
#endif

SelectInstallType
;//////////////////////////////////////////////////////////////////////////
; If a previous version was found and the user did not ask to change the path
; then get the previous version size because the user is installing over the
; previous version.
;//////////////////////////////////////////////////////////////////////////
#ifnot switch40
	GetPrevVerSize
#endif

#if switch92
	DeselectOption.OrdProc
	DeselectOption.XDB
	DeselectOption.Help
#endif    

switch03 = CheckDiskSpace.TARGET
;//////////////////////////////////////////////////////////////////////////
; If the the user did not choose custom install and does not have enough
; disk space, then ask the customer if he would like to delselect some of
; the components.
;//////////////////////////////////////////////////////////////////////////
#ifnot switch93
	#ifnot switch02                       ;////No previous version
		TargetDrive
		switch03 = CheckDiskSpace.TARGET 
	#endif
	;//////////////////////////////////////////////////////////////////////////
	; If it is not a Minimum install, then the user can deselect some
	; components
	;//////////////////////////////////////////////////////////////////////////
	#ifnot switch92
		#ifnot switch03
	 switch04 = MessageYesNo.AskTheCust
	 #if switch04
		 PrimarySelect
	 #endif
		#endif
	#endif
	switch05 = CheckDiskSpace.TARGET
	#ifnot switch05
		switch50 = MessageYesNo.AskNewPathAgain
		#if switch50
	 PathBrowse.GetNewPath
	 switch51 = CheckDiskSpace.TARGET
	 #ifnot switch51
		 ;//////////////////////////
		 ; Time to get out, no space
		 ;//////////////////////////
		 switch80 = TRUE
	 #endif
		#else
	 ;//////////////////////////
	 ; Time to get out, no space
	 ;//////////////////////////
	 switch80 = TRUE  
	 switch81 = TRUE
		#endif ;switch50
	#endif ;switch05
#else
	;///////////////////////////////////////////////////////////////////////
	; If the user selected the custom install option.
	;///////////////////////////////////////////////////////////////////////
	PrimarySelect
	#ifnot switch02                       ;////If no previous version
		TargetDrive
	#endif
	switch05 = FALSE
	switch05 = CheckDiskSpace.TARGET
	;///////////////////////////////////////////////////////////////////////
	;  If there is no disk space, let the user first delselect some components
	;  and then give him a chance to change the destination path.
	;///////////////////////////////////////////////////////////////////////
	#ifnot switch05
		MessageBox.NoDiskSpace
		PrimarySelect
		switch52 = CheckDiskSpace.TARGET
		#ifnot switch52
	 switch50 = MessageYesNo.AskNewPathAgain
	 #if switch50
		 PathBrowse.GetNewPath
		 switch51 = CheckDiskSpace.TARGET
		 #ifnot switch51
			 ;//////////////////////////
			 ; Time to get out, no space
			 ;//////////////////////////
			 switch80 = TRUE
		 #endif
	 #else
		 ;//////////////////////////
		 ; Time to get out, no space
		 ;//////////////////////////
		 switch80 = TRUE
		 switch81 = TRUE  
	 #endif ;switch50
		#endif ;switch25
	#endif ;switch05
	;///////////////////////////////////////////////////////////////////////
	; End of #ifnot switch93
	;///////////////////////////////////////////////////////////////////////
#endif  

#ifnot switch80

	switch07 = IsOptionSelected.Basefiles
	switch06 = IsOptionSelected.XDB
	switch41 = IsOptionSelected.OrdProc

	;///////////////////////////////////////////////////////////////////////
	; Make sure that the target directory is created.
	;///////////////////////////////////////////////////////////////////////
	CreateDirectory.MakeTheDestDir
	
	#if switch06
	
	;///////////////////////////////////////////////////////////////////////
	; Set XDB directories
	;///////////////////////////////////////////////////////////////////////

		ResetTarget.XDBdir
		ResetTarget.XDBSystem
		ResetTarget.XDBTutorial
		switch32 = TRUE                    ;////Initialized for dir creation
		
		;///////////////////////////////////////////////////////////////////////
		; Search for a copy of XDB with ODBC connections
		;///////////////////////////////////////////////////////////////////////

		switch31 = Exists.LookingForXDB
		#if switch31                       ;////if XDBODBC.DLL is found in SYSTEM
	 switch32 = MessageYesNo.FoundXDB
	 #ifnot switch32                 ;////do not overwrite/add XDB
		 DeselectOption.XDB
		 switch06 = FALSE
	 #endif
		#endif  ;switch31   
		#if switch32  ;if first time/overwrite OK 
	 ;///////////////////////////////////////////////////////////////////
	 ; Create XDB directories if they don't exist
	 ;///////////////////////////////////////////////////////////////////
	 CreateDirectory.MakeXDBdir        
	 CreateDirectory.MakeXDBSysDir
	 CreateDirectory.MakeXDBTutDir
		#endif ;switch32
	#endif ;switch06
		
	#if switch41                          ;////if OrdProc is selected
		#ifnot switch06
	 switch31 = Exists.LookingForXDB
	 #ifnot switch31                 ;////if XDB was NOT found
		 switch36 = MessageYesNo.NoXDBSample
		 #if switch36                 ;////Install XDB Now
			 SelectOption.XDB
			 switch06 = TRUE
			 ResetTarget.XDBdir        ;////Set XDB directories
			 ResetTarget.XDBSystem
			 ResetTarget.XDBTutorial
			 CreateDirectory.MakeXDBdir        
			 CreateDirectory.MakeXDBSysDir
			 CreateDirectory.MakeXDBTutDir
		 #else                        ;////Dont install XDB OR the SampleApp
			 MessageBox.GoOnWithoutThem
			 DeselectOption.OrdProc
			 switch41 = FALSE
		 #endif ;switch36
	 #endif ;switch31 
		#endif  ;switch06
	#endif ;switch04   
	
	#if switch41      ;////if Ordproc selected AND XDB is installed/being installed
		switch48 = TRUE   
		;///////////////////////////////////////////////////////////////////////
		;Set to allow New/Overwrite SampleApp Install
		;It needs to be FALSE, to install to \XDB\TUTORIAL
		;If TRUE, it will not install
		;///////////////////////////////////////////////////////////////////////
		ResetTarget.OrdProcDir
		switch33 = TRUE                    ;////Initilized for the NonOverWrite Case
		switch34 = Exists.SampleApp
		#if switch34                       ;////Found an old SampleApp
	 switch35 = MessageYesNo.FoundSampleApp 
	 #ifnot switch35                 ;////Do NOT update the Sample App
		 DeselectOption.OrdProc
		 switch41 = FALSE
		 switch33 = FALSE             ;////Prevents the install
	 #else     ; UPDATE the Sample App
		 #if switch06                 ;////You are also installing XDB now
		switch38 = MessageYesNo.OverwriteSamp 
		#ifnot switch38          ;////Do NOT Overwrite Existing App
			switch33 = FALSE
			ResetTarget.NewSampleLoc
			CreateDirectory.MakeNewSample
			ResetTarget.NewLocDir
			CreateDirectory.NewXDBLocation
			Backup.SampleCopy
			Backup.NwSmpCopy
			ResetTarget.XDBSystem ;////Only needed here for XDB Copy
			switch48 = FALSE
		#endif ;switch38
		;////////////////////////////////////////////////////////////
		; If s38 was TRUE, it comes here & continues with the
		; overwrite to the existing directory
		;////////////////////////////////////////////////////////////
		 ;////////////////////////////////////////////////////////////////
		 ;for the else >>> You are not installing XDB so you will install
		 ;to a new location and before to use the scripts & zips
		 ;////////////////////////////////////////////////////////////////
		 #else       
			switch33 = FALSE
			ResetTarget.NewSampleLoc
			CreateDirectory.MakeNewSample
			ResetTarget.NewLocDir
			CreateDirectory.NewXDBLocation
			Backup.SampleCopy
			Backup.NwSmpCopy
			switch48 = FALSE
		 #endif ;switch06
	 #endif  ;switch35
		#endif ;switch34

		;////////////////////////////////////////////////////////////////////
		; Last chance to install the scripts/zip files.  It will come here
		; if you are installing the sample app and it has not been found
		; on the system already and you are not installing XDB at this time
		;
		; Also note that XDB is already installed on the system (or
		; else it wouldn't have gotten this far)
		;////////////////////////////////////////////////////////////////////

		#if switch33
	 #ifnot switch06
		 ResetTarget.NewSampleLoc
		 CreateDirectory.MakeNewSample
		 ResetTarget.NewLocDir
		 CreateDirectory.NewXDBLocation
		 Backup.SampleCopy
		 Backup.NwSmpCopy
		 switch48 = FALSE
	 #endif      
		#endif ;switch33

		#if switch48
	 CreateDirectory.MakeOrdProcDir ; Create directory
		#endif ;switch48
		;////////////////////////////////////////////////////////////////////
		; Is there an existing ODBC.INI ?
		;////////////////////////////////////////////////////////////////////
		switch10=exists.IsOdbcIni
		#if switch10
	 switch20 = TRUE ;The ODBC.INI needs modification
		#endif
	 #endif ;switch41
	
		;////////////////////////////////////////////////////////////////////
		; If the XDB Option is selected, the ODBCINST.INI file 
		; needs to be backed up and modified. 
		;////////////////////////////////////////////////////////////////////

	#if switch06 ;If XDB is selected
		;////////////////////////////////////////////////////////////////////
		; Is there an existing ODBCINST.INI ?
		;////////////////////////////////////////////////////////////////////
		switch12=exists.IsOdbcinstIni
		#if switch12
	 switch21 = TRUE
		#endif ;switch12
	#endif ;switch06
	
		;////////////////////////////////////////////////////////////////////
		; Now we know which INI files need modification, It is time to ask the 
		; user if he/she wants the install program to do the modifications.
		; Remember, switch20 == TRUE means that the ODBC.INI needs mods
		; and switch21 == TRUE means that the ODBCINST.INI needs mods.
		; If switch22 == TRUE implies that the user let ODBC.INI be modified
		; If switch23 == TRUE implies that the user let ODBCINST.INI be modified
		; If switch24 == TRUE implies that the user let both INI files be modified
		;////////////////////////////////////////////////////////////////////

		switch22 = FALSE
		switch23 = FALSE
		switch24 = FALSE
	
		#if switch20
	 #if switch21
		 ;//////////////////////////////////////////////////////////////
		 ; Both INI files need mods, Let us ask the user if he/she
		 ; would like us to modify them, i.e. set switch24 to TRUE.
		 ;//////////////////////////////////////////////////////////////
		 switch24 = MessageYesNo.ModBothOdbcQuestion
		 #if switch24
			 switch22 = TRUE
			 switch23 = TRUE
			 Backup.SaveOdbc
			 Backup.SaveOdbcinst
		 #endif ;switch24

	 #else
		 ;//////////////////////////////////////////////////////////////
		 ; Only the ODBC.INI file needs mods         
		 ;//////////////////////////////////////////////////////////////
		 switch22 = MessageYesNo.ModOdbcQuestion
		 #if switch22
			 Backup.SaveOdbc
		 #endif ;switch22
	 #endif ;switch21
		#else 
	 #if switch21
		 ;//////////////////////////////////////////////////////////////
		 ; Only the ODBCINST.INI needs modification
		 ;//////////////////////////////////////////////////////////////
		 switch23 = MessageYesNo.ModOdbcinstQuestion
		 #if switch23
			 Backup.SaveOdbcinst
		 #endif ;switch23
	 #endif ;switch21
		#endif ;switch20
	;///////////////////////////////////////////////////////////////////////
	;Conditional switch to copy tutorial or not
	;///////////////////////////////////////////////////////////////////////
	#if switch41
	#if switch48
		switch42 = FALSE
	#else
		switch42 = TRUE
	#endif ;switch48
	#else
	switch42 = TRUE
	#endif ;switch41 
  
	Backup.DataLinkInst
	switch60 = IsOptionSelected.ODBCdrv
	switch62 = IsOptionSelected.WATdrv
	#if switch60   
		switch63 = CallProcEX.ODBCGen
	#endif
	#if switch62   
		switch63 = CallProcEX.ODBCWAT
	#endif
	switch63 = CallProcEX.ODBCXDB
	
	;///////////////////////////////////////////////////////////////////////
	; If this is a first time install (switch09) AND they are installing
	; the base files (switch07) AND they are installing XDB (switch06) AND
	; they are installing the sample application (switch41), put in the
	; sample EDev.INI - they any of these conditions fail, switch09 is set
	; to FALSE
	;///////////////////////////////////////////////////////////////////////
	#if switch09
		#if switch07
			#if switch06
				#if switch41
					Backup.EDevINI
				#else
					switch09=FALSE
				#endif
			#else
				switch09=FALSE
			#endif
		#else
			  switch09=FALSE
		#endif
	#endif
	
	;//////////////////////////////////////////////////////////////////////
	; if the above if tree passes, switch09 should be TRUE - if not, it will
	; be FALSE - if it's true, modify the new EDev.INI to reflect the 
	; tutorial repository.  Otherwise, skip this section.
	;//////////////////////////////////////////////////////////////////////
	#if switch09
		UpdateINI.ModEDevIni
	#endif
	
	DisableUtils
	copy
	EnableUtils

	;///////////////////////////////////////////////////////////////////////
	;  Now It is time to do the INI file modifications.
	;///////////////////////////////////////////////////////////////////////
	
	#if switch41                          ;//Selected the Order Processing option
		#ifnot switch10                    ;//If the Odbc.ini did not exist
	 switch22 = TRUE
		#endif
		
		;///////////////////////////////////////////////////////////////////////
		;Modifications to the odbc.ini file
		;///////////////////////////////////////////////////////////////////////
		#if switch22
	 #if switch48
		updateini.odbcAdd1 ; update the odbc.ini for sample app
	 #else
		updateini.odbcAdd2
	 #endif
		#endif ;switch22

		#ifnot switch48                    ;//Needed to run the NEWLOC>SQL script
	 ResetTarget.NewSampleLoc
	 ResetTarget.NewLocDir          ;//Needs to set TARGET3 for the script creation
	 switch49 = CallProcEx.ScriptDLL
	 #ifnot switch49
		 MessageBox.CallTech
	 #endif
	 ResetTarget.XDBSystem
		#endif ;switch48
	#endif ;switch41
	
	#if switch06                          ;////Selected XDB option
		#ifnot switch12
	 switch23 = TRUE
		#endif
		;////////////////////////////////////////////////////////////////////
		;Modifications to the odbcinst.ini file
		;////////////////////////////////////////////////////////////////////
		#if switch23
	 updateini.odbcinstAdd
		#endif

	#endif ;switch06
	
	groups

	;///////////////////////////////////////////////////////////////////////
	; Now, if XDB was installed, we need to modify the autoexec file
	; and configure the xdb installation
	;///////////////////////////////////////////////////////////////////////
	#if switch06
		backup.moveXDBODBC          ;////This moves the XDB ODBC dlls to win dir
		modifytextfile.autoexec
		updateini.wininiadd
		;////////////////////////////////////////////////////////////////////
		; Now it gets interesting, if the tutorial is installed
		; then tell XDB to configure it by calling XDBCFG1
		; otherwise tell it not to configure it by calling XDBCFG0
		; In any event, we have to call one of these since they
		; both configure the XDB system tables.
		;////////////////////////////////////////////////////////////////////
		#if switch41
	 ExecChildProcess.XDBCFG1
		#else
	 ExecChildProcess.XDBCFG0
		#endif
		Updateini.ShutDownXDB
	#endif ;switch06
	
	#ifnot switch48
		MessageBox.YouHavetoRun
		MessageBox.ContinuedRun
		MessageBox.ContinuedTwo
	#endif
 
	switch13 = IsRebootRequested
	switch14 = IsInstallShell
	UpdateIni.Fassist
	MessageBox.ReadMeNorm
	
	#if switch13
		End.byeReboot
	#else
		#ifnot switch14
	 End.ByeMessage
		#else
	 End.byeshell
		#endif
	#endif
#else                                    ;////else switch80
	#ifnot switch81 
		messagebox.ByeStillNoDiskSpace
		exit
	#else
		MessageBox.ByeNoDiskSpace
		exit
	#endif
#endif ;switch80

end

;***************************************************************************
;* SubProc Executed When Install Takes Over As Shell                       *
;***************************************************************************

[SubProc]
Return

;***************************************************************************
;* Disks                                                                   *
;***************************************************************************

[disks]
1=A:\, "Enterprise Developer, Disk 1"
2=A:\, "Enterprise Developer, Disk 2"
3=A:\, "Enterprise Developer, Disk 3"
4=A:\, "Enterprise Developer, Disk 4"
5=A:\, "Enterprise Developer, Disk 5"

;***************************************************************************
;* Copy                                                                    *
;***************************************************************************

[EbCopy]
CopyMain.BaseFiles,    "Enterprise Developer",5995, N, N, Y
CopyMain.Data Links,      "SCALE Data Links",300, N, Y, Y
CopySub.WATdrv,       "SCALE WATCOM via ODBC Data Link",66,N,N,Y
CopySub.ODBCdrv,       "SCALE Generic ODBC Data Link",66,N,N,Y
CopyMain.OrdProc,      "Enterprise Developer Sample Application",     0,N, N, Y 
CopyMain.XDB,          "XDB SQL Engine",               3435,N, N, Y
CopyMain.Help,          "Enterprise Developer Help Files", 22, N, N, Y


[EbCopy.disk1]
EXEFILES.ZI!,  "Enterprise Developer EXE files",    Link:Basefiles ,  size:1549742
RTCFG.EXE,     "Runtime Disk Configuration File",   Link:Basefiles,   size:50
COMMDLG.DLL,   "Windows 3.1 Common Library",   SYSTEM, VersionCheck, Link:Basefiles, size:89248
VER.DLL,       "Windows 3.1 Common Library",   SYSTEM, VersionCheck, Link:Basefiles, size:9008
SHELL.DLL,     "Windows 3.1 Common Library",   SYSTEM, VersionCheck, Link:Basefiles, size:41600
ODBC.INI,      "ODBC support file",            WINDOWS, switch10, Link:Basefiles, size:72
ODBCINST.INI,  "ODBC support file",            WINDOWS, switch12, Link:Basefiles, size:56
ODBC.DLL,      "ODBC support file",            SYSTEM, VersionCheck, Link:Basefiles, size:44736
ODBCINST.DLL,  "ODBC support file",            SYSTEM, VersionCheck, Link:Basefiles, size:6016
CTL3D.DLL,  "3D Control support",           SYSTEM, VersionCheck, Link:Basefiles, size:55856  
README.TXT,    "Enterprise Developer Readme File", Link:Basefiles, size:20000
XDBSQL.ICO, "XDB System File", TARGET2, Link:XDB, size:100

[EbCopy.disk2]
IMAGES.ZI!,    "Enterprise Developer Image support", Link:Basefiles,  size:157920
OBJECTS.ZI!,   "Enterprise Developer visual objects", Link:Basefiles, size:710208
DLLFILES.ZI! , "Enterprise Developer DLL files",     Link:Basefiles,   size:2639984
SYSFORMS.ZI!,  "Enterprise Developer system files",  Link:Basefiles,  size:17408
ODBCDRV.ZI!,   "SCALE Generic ODBC Data Link", Link:ODBCdrv, size:80960

[EbCopy.disk3]
EDM.ZI! , "Enterprise Developer Data Modeler",   Link:Basefiles,   size:631322
XDBDRV.ZI!,   "SCALE XDB via ODBC Data Link",      Link:Basefiles,      size:80992
WATDRV.ZI!,   "SCALE WATCOM via ODBC Data Link",      Link:WATdrv,      size:80960
APPGEN.ZI!,    "Enterprise Developer Application Generation Files", Link:Basefiles size:576799
SCALE.ZI!,     "SCALE DLL files",        Link:Basefiles,   size:1417412
DEMOAPP.ZI!,"Sample Application files", TARGET5, Link:OrdProc,size:548301

[EbCopy.disk4]
XDB.ZI! ,   "XDB Engine files",   TARGET2,  Link:XDB, ZIPDDIRS, size:2608324
XDBSYS.ZI! ,"XDB System Database",   TARGET3, Link:XDB, ZIPDDIRS, size:367803
XDBTUT.ZI! ,"XDB Tutorial Database", TARGET4, switch42, Link:OrdProc, ZIPDDIRS,size:1247637
						  
[EbCopy.disk5]
EDEVHELP.ZI! , "Enterprise Developer Help Files",   Link:Help,   size:1052099

;***************************************************************************
;* Groups                                                                  *
;***************************************************************************

[groups]
"Enterprise Developer",           EntDev.grp

[EnterpriseDeveloper]
"Enterprise Developer",   edev.exe, Basefiles
"Readme",                 readme.txt, Basefiles
"ODBC Administration",    odbcadm.exe, XDB, , TARGET2
"Interactive SQL",        xdbsql.exe,      XDB, , TARGET2, xdbsql.ico, TARGET2     
"XDB Add Users",          xdbaddus.exe,      XDB, , TARGET2

;***************************************************************************
;* Message Text                                                            *
;***************************************************************************

[EbCopy:CopyDialog]
caption = "Copying Enterprise Developer Files..."
posx = -5
posy = -5

[EbCopy:Primary]
caption = "Enterprise Developer - Primary Selection"
button1 = "Files"
button2 = "Select Data Links"
button3 = "Files"
button4 = "Files"
button5 = "Files"
text = App1Text

[App1Text]
"Please select the items you wish to install.  If a selection"
"has a button to the right, you can select individual files or"
"components."

[EbCopy:Component]
caption = "Enterprise Developer - Component Selection"
text    = "Indicate which components you want to install.  Highlighted items will be installed."

[AdvoDefault]
posx = 5
posy = 5
text = AdvoText

[AdvoText]
"Please take a moment to complete the Product Registration"
"Card included with your product and return it to Symantec."
"This will ensure that you receive future product"
"announcements and important notices.  It will also" 
"qualify you for any discounts on future upgrades."
""
""
"Thank you for choosing Enterprise Developer."

[EbCopy:TypeSelect]
count = 3
caption = "Enterprise Developer - Install Type"
text = "Please select the type of install you would like to perform."
grouptext = "Install Types"
button1 = "Complete Install"
button2 = "Minimum Install"
button3 = "Custom Install"
descrip1 = "Installs the entire product.  Approximate disk space needed = 14MB"
descrip2 = "Installation excludes help files, the sample application and the XDB Engine.  Approximate disk space needed = 9MB"
descrip3 = "Allows you to choose the components you wish to install"

[ByeMessage]
caption  =  "Enterprise Developer - Install Complete"
" "
"This concludes the installation of "
"Enterprise Developer for Windows."
" "
" "
"Please select one of the exit options" 
"below.  Restarting Windows is highly" 
"recommended before running Enterprise" 
"Developer."

[ByeShell]
caption  =  "Enterprise Developer - Install Complete"
" "
"This concludes the installation of "
"Enterprise Developer for Windows."
" "
" "
"Please select one of the exit options below."

[byereboot]
caption  =  "Enterprise Developer - Install Complete"
"This concludes the installation of" 
"Enterprise Developer."
" "
" "
"Select one of the exit options below."
"Rebooting is highly recommended.  "
"Please remove all floppy disks from "
"the drives."

;///////////////////////////////////////////////////////////////////////
; Turns off File Assist is an ini exists
;///////////////////////////////////////////////////////////////////////
[Fassist]
IniName = fassist.ini
SectionName = compatibility
edev = 0x0
edevteam = 0x0
erun = 0x0
;///////////////////////////////////////////////////////////////////////

[ReadMeNorm]
caption = "Enterprise Developer - README.TXT"
" "
"Please read the README.TXT file"
"before running Enterprise Developer"
"for any of the latest changes and" 
"additions to your documentation."

;///////////////////////////////////////////////////////////////////////
; Installs a DLL used to install our ODBC Data Links
;///////////////////////////////////////////////////////////////////////
[DataLinkInst]
DLINST.DLL, DLINST.DLL, SOURCE, WINDOWS

[ODBCGen]
dll = DLINST.DLL
function = DLINST
inifile = SDODBC.INI

[ODBCXDB]
dll = DLINST.DLL
function = DLINST
inifile = SDXDB.INI

[ODBCWAT]
dll = DLINST.DLL
function = DLINST
inifile = SDWAT.INI
;///////////////////////////////////////////////////////////////////////

[ByeStillNoDiskSpace]
caption  =  "Enterprise Developer - Install Exiting"
"The disk space available is still not"
"sufficient for the components of "
"Enterprise Developer you have selected."
""
"Please restart the installation after" 
"you have made more disk space available."

[ByeNoDiskSpace]
caption  =  "Enterprise Developer - Install Exiting"
"The disk space available is insufficient"
"for the components of Enterprise "
"Developer you have selected."
""
"Please restart the installation after" 
"you have made more disk space available."

[CallTech]
caption = "Enterprise Developer Error Message"
"While trying to install the Sample"
"Application, a XDB script generation "
"has failed.  To fix this error, run "
"the following line of SQL from the XDB" 
"ISQL window:"
""
"  CREATE LOCATION ORDPROC IN C:\dir\ORDPROCD\ORDPROC  XDB SYSTEM TABLES"
""
"where dir is your Enterprise Developer" 
"home directory, in most cases, ENTDEVLP."

[EnterpriseDeveloperSearch]
caption =  "Searching for Previous Version"
text1   =  "Searching for a previously installed"
text2   =  "version of Enterprise Developer"
appname =  "edev.exe"
apppath =  C:\ENTDEVLP

[FoundVersion]
caption = "Enterprise Developer Previous Version"
"A previous version of Enterprise "
"Developer has been detected.  We "
"STRONGLY suggest that you install" 
"this copy to another location and delete" 
"your old version after the installation" 
"is complete."

[FoundVerAskNewPath]
caption = "Enterprise Developer Previous Version"
"A previous version of Enterprise "
"Developer has been detected.  We suggest" 
"that you install this copy to another" 
"location and delete your old version" 
"after the installation is complete."
""
"Would you like to select a new" 
"destination path for Enterprise Developer" 
"Install?"

[YouHaveToRun]
caption = "Sample Application/XDB Installation"
"You have selected not to overwrite your" 
"existing sample application and/or not to" 
"overwrite your existing copy of XDB."
"There are 2 files that have been installed" 
"to your hard drive that will allow you to" 
"use the new sample application."
""
"The following steps will have to be" 
"performed:"

[ContinuedRun]
caption = "NEWLOC.SQL - XDB Script"
"NEWLOC.SQL is an XDB script that will" 
"create a new location for storing the new" 
"Sample Application. This needs to be run" 
"from the XDB ISQL window and can be" 
"found in the \ORDPROCD directory."
""
"THIS SCRIPT MUST BE RUN BEFORE THE" 
"NEXT STEP OTHERWISE THE SAMPLE"
"APPLICATION WILL NOT FUNCTION."

[ContinuedTwo]
caption = "ORDPROC.BAT - New Sample Application"
"ORDPROC.BAT will physically install the" 
"sample application's database files to" 
"the correct directories.  To run this" 
"file, type:" 
""
"                ORDPROC   "
""
"from the \ORDPROCD directory."
				 
[StillInstallXDBOrdProc]
caption = "Install confirmation"
"There is insufficient disk space on the" 
"target drive for the components you have" 
"selected.  "
""
""
" Do you wish to choose another drive for" 
"the installation?"

[GoOnWithoutThem]
caption = "Component Deselection"
"The sample application cannot be run "
"without being able to access a correctly" 
"configured version of XDB.  This "
"installation session will continue without" 
"installing the sample application."

[AskNewPathAgain]
caption = "Enterprise Developer Path Selection"
"There is insufficient disk space for"
"the type of install you have selected."
""
"Would you like to change the destination"
"to a different drive and/or directory "
"where there is enough space?"
 
[GetNewPath]
caption = "Enterprise Developer - Select Destination"
reset = TARGET
DefaultDir = "" 

[DefaultXDBTarget]
reset = TARGET2
location = %s\XDB, TARGET

[NewSampleLoc]
reset = TARGET5
location = %s\ORDPROCD, TARGET

[MakeNewSample]
%s\ORDPROCD, TARGET

[XDBSystem]
reset = TARGET3
location = %s\system, TARGET2

[XDBTutorial]
reset = TARGET4
location = %s\tutorial, TARGET2

[MakeXDBdir]
%s\XDB,TARGET

[XDBdir]
reset = TARGET2
location = %s\xdb, TARGET

[NewTarget]
reset = TARGET
location = "c:\ENTDEV1"

[AskTheCust]
caption = "Insufficient Disk Space"
"There is insufficient disk space for"
"the type of install you have selected."
"We suggest one of the following"
"options:"
""
"1) Deselect product components so"
"that less disk space is required."
"2) Change the destination to a"
"different drive and/or directory"
"where there is enough space."
"3) Exit the installation and free more"
"disk space on your drive."
""
"Would you like to deselect product"
"components?"

[NoDiskSpace]
caption = "Insufficient Disk Space"
"There is insufficient disk space for"
"the type of install you have selected."
"We suggest one of the following"
"options:"
""
"1) Deselect product components so that"
"less disk space is required."
"2) Change the destination to a"
"different drive and/or directory where"
"there is enough space."
"3) Exit the installation and free"
"more disk space on your drive."
""
"The next screen will allow you to"
"deselect product components. You will"
"then be able to change the destination"
"drive and/or directory on the screen"
"that follows."

[TargetDrive]
caption =  "Enterprise Developer - Select Destination"
defpath =  C:\ENTDEVLP
text    =  "Please select the drive/directory where you would like Enterprise Developer installed."
reqspace=  "Approximate disk space required"

[errors]
noprev  =  "Symantec Install for Windows is already running!"
nohelp  =  "If you require assistance, please consult your installation manual or contact technical support."

[FileCopy]
copycaption   =  "Installing Enterprise Developer"
errorcaption  =  "Error Copying Files"
insertcaption =  "Insert Diskette"
Message       =   MessageText

[cancel]
caption = "Enterprise Developer - Exit Install"
text    = "Are you sure you want to exit?"

[cancelshell]
caption = "Enterprise Developer - Exit Install"
text = "You have selected to cancel Install.\nIn order to reset the Windows\nenvironment, Install will also close Windows.\nAre you sure you want to exit?"

[LookingForXDB]
xdbodbc.dll, SYSTEM

[SampleApp]
demodaaa.app, TARGET5

[FoundSampleApp]
caption = "Sample Application Previous Version"
"A previous version of the Sample" 
"Application has been detected."
""
""
"Do you wish to install a new version" 
"of the sample application?"

[OverwriteSamp]
caption = "Sample Application Previous Version"
"You have elected to update both the" 
"Sample Application and install XDB at" 
"this time "
""
"The new sample application can either" 
"overwrite your existing one, or you can" 
"install the application to a different" 
"subdirectory."
""
"Would you like to overwrite your" 
"existing sample application with the" 
"latest version?"

[FoundXDB]
caption = "XDB Previous Version"
"A previous version of XDB has been"
"detected on your hard drive."
""
"XDB has made some enhancements to"
"this release of the XDB engine."
""
"Would you like Team Enterprise"
"Developer to install another copy of" 
"XDB to this hard drive?"
""
"NOTE: If you are currently using a "
"copy of XDB that was originaly installed" 
"by Enterprise Developer, it will"
"be over written if you answer Yes.  "
"Altough this will cause you to lose "
"access to all of your existing" 
"databases, they can be reconnected to" 
"the new version."

[NoXDBSample]
caption = "No XDB Installation Found"
"You have elected to install the "
"Enterprise Developer Sample Application," 
"but you do not have XDB installed"
"correctly on your computer.  XDB needs" 
"to be installed and configured correctly to" 
"run the sample application."
""
""
"Would you like to install XDB now?"

[OrdProcDir]
reset = TARGET5
location = %s\sampleap, TARGET

[MakeOrdProcDir]
%s\Sampleap, TARGET

[NewXDBLocation]
%s\ORDPROC, TARGET5

[NewLocDir]
reset = TARGET3
location = %s\ORDPROC, TARGET5

[SampleCopy]
MAKESCR.DLL, MAKESCR.DLL, SOURCE, WINDOWS

[NwSmpCopy]
ORDPROC1.EXE, ORDPROC1.EXE, SOURCE, TARGET5
ORDPROC2.EXE, ORDPROC2.EXE, SOURCE, TARGET5
ORDPROC3.EXE, ORDPROC3.EXE, SOURCE, TARGET5
ORDPROC.BAT, ORDPROC.BAT, SOURCE, TARGET5

[ScriptDLL]
dll = MAKESCR.DLL
function = MAKESCR
LocName = "ORDPROC"

[MakeTheDestDir]
%s,TARGET

[MakeXDBSysDir]
%s, TARGET3

[MakeXDBTutDir]
%s, TARGET4

;************************************************************************
;  Ini Modifications
;************************************************************************

[ModOdbcQuestion]
caption = "ODBC.INI File Modifications"
"Your ODBC.INI file needs to be modified."
"If you answer YES, your current ODBC.INI"
"file will be backed up as ODBC.ED1"
""
"If you choose NO, you must modify the"
"ODBC.INI file manually to be able to"
"access the XDB databases."

[ModOdbcinstQuestion]
caption = "ODBCINST.INI File Modifications"
"Your ODBCINST.INI file needs to be" 
"modified. If you answer YES, your" 
"current ODBCINST.INI file will be backed" 
"up as ODBCINST.ED1"
""
"If you choose NO, you must modify the"
"ODBCINST.INI file manually to be able to"
"access the XDB databases."

[ModBothOdbcQuestion]
caption = "INI File Modifications"
"Your ODBC.INI and ODBCINST.INI files"
"need to be modified. If you answer YES,"
"your current ODBC.INI and ODBCINST.INI"
"files will be backed up as ODBC.ED1 and"
"ODBCINST.ED1 respectively."
""
"If you choose NO you must modify the"
"ODBC.INI and ODBCINST.INI files" 
"manually to be able to access the XDB" 
"databases."

[odbcAdd1]
IniName = odbc.ini
SectionName = "ODBC Data Sources"
Tutorial = "XDB ODBC Driver"
SectionName = Tutorial
Driver=%s\xdbodbc.dll,SYSTEM
Description="Enterprise Developer Sample XDB SQL Database"
Server=LOCAL
Database=TUTORIAL
Tracing=No
Netbios=No
SysAuthid=
OdbcAuthid=
SearchFilter=
DuplicateLogin=
UserID=

[odbcAdd2]
IniName = odbc.ini
SectionName = "ODBC Data Sources"
Tutorial = "XDB ODBC Driver"
SectionName = Tutorial
Driver=%s\xdbodbc.dll,SYSTEM
Description="Enterprise Developer Sample XDB SQL Database"
Server=LOCAL
Database=ORDPROC
Tracing=No
Netbios=No
SysAuthid=
OdbcAuthid=
SearchFilter=
DuplicateLogin=
UserID=

[odbcinstAdd]
IniName = odbcinst.ini
SectionName = "ODBC Drivers"
"XDB ODBC Driver"=Installed
SectionName = "XDB ODBC Driver"
Driver="%s\xdbodbc.dll",SYSTEM
Setup="%s\xdbodbcs.dll",SYSTEM

[WinIniAdd]
IniName = win.ini
SectionName = "XDB"
XDBCFG="%s",TARGET2
XSRVCFG="%s", TARGET2
XDBAUTOSHUTDOWN=OFF

;***************************************************************************
;* EDev.INI functions                                                      *
;***************************************************************************
[EDevINI]
edevsamp.ini, edev.ini, SOURCE, WINDOWS

[ModEDevINI]
IniName = Edev.ini
SectionName = repositories
Repository1 = "DemoApp,XDB,tutorial,tutorial,%s,",TARGET5

[ShutDownXDB]
IniName = win.ini
SectionName = "XDB"
XDBAUTOSHUTDOWN=ON
;***************************************************************************
;* Delete Files                                                            *
;***************************************************************************

[Leftovers]
win.siw, WINDOWS
system.siw, WINDOWS

;***************************************************************************
;* Misc install functions                                                  *
;***************************************************************************

[XDBCFG0]
"%s\SIWXDBUP 0",TARGET2

[XDBCFG1]
"%s\SIWXDBUP 1",TARGET2

[VerDll]
ver.dll, system

[CheckEm]
win.eb0, WINDOWS

[IsOdbcIni]
odbc.ini,WINDOWS

[IsOdbcinstIni]
odbcinst.ini,WINDOWS

[SaveOdbc]
odbc.ini, odbc.ed1, WINDOWS, WINDOWS

[SaveOdbcinst]
odbcinst.ini, odbcinst.ed1, WINDOWS, WINDOWS

[MoveXDBODBC]
xdbodbc.dll, xdbodbc.dll, TARGET2, SYSTEM
xdbodbcs.dll, xdbodbcs.dll, TARGET2, SYSTEM

[original]

[pix]
color = %s\stars.bmp

;***************************************************************************
;* Autoexec Mods                                                           *
;***************************************************************************

[Autoexec]
caption    = "Enterprise Developer - Modify Autoexec.bat File"
text1      = "The following modifications need to be performed on your autoexec.bat file:"
FileSpec   = c:\autoexec.bat
filetype   = autoexec
findrems   = 0
rem1       = "rem"
rem2       =
rem3       =
rem4       =
EditCaption= "Edit Autoexec.bat File"
EditText   = "Edit the file as desired.  When complete, press Finished.  To cancel all changes made in this or previous edits, press Cancel Edit."
AddPath    = TARGET2
DelItems   = AutoexecDelItems
AddItems   = AutoexecAddItems

[AutoexecDelItems]

[AutoexecAddItems]

;***************************************************************************
;* SetShell section                                                        *
;***************************************************************************

[SetShell]
AppIniName = qaw.ini
WinIniName = win.ini
SystemIniName = system.ini
Message = MessageBox.SetShellMessage
SysSectionName = boot
WinSectionName = windows
shell = %s\install.exe
load =
run =
SetShellIfLoaded=
Backup = Backup.SetShellSave
Restore = Backup.SetShellRestore
Active = yes
IfActiveList=LoadedList
SubProcess=

[SetShellSave]
win.ini, win.siw, WINDOWS, WINDOWS
system.ini, system.siw, WINDOWS, WINDOWS

[SetShellRestore]
system.siw, system.ini, WINDOWS, WINDOWS
win.siw, win.ini, WINDOWS, WINDOWS

[LoadedList]                    

[SetShellMessage]
caption  =  "Enterprise Developer - Install Program"
"Welcome to the Enterprise Developer" 
"Installation program.  Please press OK" 
"to allow Install to restart Windows and" 
"continue the Installation.  Press Cancel" 
"to exit Install."

																								  ;RLS
