; **********************************************************************************
; * pcANYWHERE for Windows 95 and Windows NT
; * standard install script
; *
; * FOR VERSION 4.1 OF SYMANTEC INSTALL FOR WINDOWS
; **********************************************************************************
;
;   Switch Assignments
; ----------------------------
;               'platform detection'
; SWITCH_WIN95                             1    -- is Win95     
; SWITCH_NT                                        2    -- Is Win NT 3.51 or greater
;                                                                       3  -- True if registry indicates installation exists
;                                                                       4  -- True if standalone, false if workstation script                                                                           
;                                                                       5-7  -- used for local switch logic     

;               'file copy dependency switches
;                //                                                     5       -- copy Win95 files
;                //                                                     6  -- copy WinNT files                                                                  
;                //                                                     7  -- copy ctl3d32.dll < no longer, now copied for NT           
;                //                                                     8  -- copy netuser.inf
;                //                                                9  -- copy during network install only
;                                                                 10-18 -- used to enable disable copying of files      
; SWITCH_FUNC_RET                         19  -- Success / Failure return value, general
;                                                                                       purpose (i.e. CallProcEx)
; SWITCH_RET_1                            20    -- function specific
; SWITCH_RET_2                            21
; SWITCH_RET_3                            22
;                                                                 23-29 -- function specific

; SWITCH_PREVIOUS         50  -- Previous Dialog
; SWITCH_NEXT             51  -- Next Dialog
; SWITCH_CANCEL           52  -- Exit Install
; SWITCH_DEFAULT          67  -- Default install location
; SWITCH_OTHER            68  -- New install location
; SWITCH_DESELECT         71  -- No disk space, deselect components
; SWITCH_CHANGEDRIVE      72  -- No disk space, change drive
; SWITCH_REBOOT           73  -- Reboot when done
; SWITCH_NOREBOOT         74  -- Don't reboot when done
; SWITCH_NOROOM           76  -- No space on Windows drive
; SWITCH_FLOPPY           80  -- Is a diskette in the drive.
;                         84  -- GUI Debug
;                         83  -- QA Debug
;                                                                 90  -- general purpose switch for local logic
;                                                                 95  -- true if okay to register service on NT 
; SWITCH_DEBUG_MSGBOX     99  -- display debug message boxes within script

; Target Usage:
; Creating Directories & Copying Files
;         TARGET  - Program Directory
;         TARGET2 - Program Directory \ System
;         TARGET3 - Shared Components 
;         TARGET4 - Program Directory \ Files
;         TARGET5 - Windows System directory (system)
;
; Processing Registry 
;         TARGET  - Program Directory
;         TARGET2 - Program Directory \ System
;    TARGET3 - Shared Components 
;    TARGET4 - Program Directory \ System (short directory)
;    TARGET5 - Reg Processing: Shared Components (short directory) 
;                               Group Processing: Program Directory (short directory)

[InstallVersion]
4.0

[process]
Bitmaps(pix)                           ;display background bitmap
AllowIntlChars()                       ;allow international characters
backup(pcawinst)                       ;copy install dll to Windows directory

;////////////////////////////////////////
;// INITIALIZE MEMORY
;////////////////////////////////////////
switch4 = TRUE ;                standalone
#if(switch4)
	CallProc(Func_MemoryStandalone)
#else
	CallProc(Func_MemoryWorkstation)
#endif

switch84 = FALSE ; ui debug switch
switch83 = FALSE ; qa "          "
switch1  = FALSE ; true if Win95
switch2  = FALSE ; true if WinNT
switch3  = FALSE ;
switch99 = FALSE ;
;switch7  = TRUE  ; don't copy ctl3d32.dll
switch8  = TRUE  ; don't copy netuser.inf                       
; switch9  = TRUE  ; don't copy 
switch95        = FALSE ; true if okay to register service on NT

; ///////////////////////////////////////
; // Version Check
; ///////////////////////////////////////

WizardPanel(Panel_WrongVersion, siwpca.dll)
switch1 = IsWinVerGTE(0395)        ;switch1=TRUE if running under Win95
#ifnot(switch1)
;       Note ("On NT") ;
	switch2= CallProcEx (Func_CheckNTVer)
	#ifnot(switch2)
		WizardProcessPanel()
		Goto(Label_CleanupAndExit) 
	#endif
#endif

;setup the file information for copying
SetActiveCopy(PCACopy, install.inf)

; check if we are already installed
switch3 = CallProcEx(Func_QueryInstallVal)
#if(switch3)
;       Note("We are installed")
#endif

; ///////////////////////////////////////////
; // Welcome & Registration Dialog
; ///////////////////////////////////////////
; places info in the qpd directory ???? Where is it?
WizardPanel(Panel_Welcome, siwpca.dll)
WizardProcessPanel()

; ///////////////////////////////////////////
; // License Dialog
; ///////////////////////////////////////////
; uses end-user.txt, don't compress for now
WizardPanel(Panel_License, siwpca.dll)
WizardProcessPanel()

;///////////////////////////////////////////
;//  CHECK FOR SPACE ON WINDOWS DRIVE
;///////////////////////////////////////////
;// sets switch76 if less than 1/2 meg
WizardPanel(Panel_NoWinSpace, siwpca.dll)

#if(switch1)
	switch19 = CallProcEx(Func_CheckWinDriveSpace_95)
#else
	switch19 = CallProcEx(Func_CheckWinDriveSpace_NT)
#endif

#if(switch19)  ; were okay
	WizardExcludePanel(Panel_NoWinSpace)
#else
	WizardProcessPanel()
   Exit()
#endif

; test access to registry, see if we fail
WizardPanel(Panel_RegAccessWarning, siwpca.dll)
switch19 = CallProcEx (Func_RegTestKeyAccess)
#if(switch19)
	WizardExcludePanel(Panel_RegAccessWarning)
#else
	WizardProcessPanel()
	; user continues unless they select cancel
#endif

; ///////////////////////////////////////////
; //  Set Default Target Directories
; ///////////////////////////////////////////
:TargetDirs
; let custom dll set up target directories dependent on type of install
; as well as lfn support or not on the resulting drives
; sets up TARGET, TARGET
; if standard, install chooses default local directory (c:\)
; if network, install uses first network drive
; if workstation, install chooses default local directory
; (until more inteligence is added to search other drives)
CallProcEx(Func_SetupDfltTarget)      ; setup default TARGET
#if(switch1)
	CallProcEx(Func_SetupSharedComponentsDir) ; setup PATH4
	CallProcEx(Func_SetVarTarget3)                          ; TARGET3 from PATH4
						; Get shared comp dir from reg
#endif
; ///////////////////////////////////////////
; // SPECIFY LOCATION
; ///////////////////////////////////////////
; TARGET is set up at this point ???
; This is not standard in the installer.  Provided all by custom dll.
; Needs to add space validation for user feedback.
; Custom Dll needs to use specified TARGET variable to update edit control for user
:InstallLocation
WizardPanel(Panel_SpecifyLocationSta, siwpca.dll)
#if(switch4)
	WizardProcessPanel()
#else
	WizardExcludePanel(Panel_SpecifyLocationSta)
#endif

WizardPanel(Panel_SpecifyLocationWrk, siwpca.dll)
#ifnot(switch4)
	WizardProcessPanel()
#else
	WizardExcludePanel(Panel_SpecifyLocationWrk)
#endif

;WizardPanel(Panel_SpecifyLocation, siwpca.dll)
WizardIncludePanel (Panel_SetupReviewCopyFilesSta)
WizardIncludePanel (Panel_SetupReviewCopyFilesWrk)
WizardIncludePanel (Panel_SetupReviewNoCopyFilesWrk)
;WizardProcessPanel()

; more work if workstation install

; ///////////////////////////////////////////
; // SETUP REVIEW / COPY FILES DIALOG
; ///////////////////////////////////////////
:SetupReviewCopyFilesDialog
WizardPanel(Panel_SetupReviewCopyFilesSta, siwpca.dll)
#if(switch4)
	WizardProcessPanel()
#else
	WizardExcludePanel(Panel_SetupReviewCopyFilesSta)
#endif          

WizardPanel(Panel_WorkStationHostFiles, siwpca.dll)

#if(switch4)
	WizardExcludePanel(Panel_WorkStationHostFiles)
	WizardExcludePanel(Panel_SetupReviewCopyFilesWrk)
	WizardExcludePanel(Panel_SetupReviewNoCopyFilesWrk)
;       Goto(Label_CheckTargetSpace)
#else
	WizardIncludePanel(Panel_SetupReviewCopyFilesWrk)               ;   we back up to here
	WizardIncludePanel(Panel_SetupReviewNoCopyFilesWrk)
#endif  
	

#if(switch4)
	Goto(Label_CheckTargetSpace)
;#endif
#else
	; workstation section only
	switch40 = FALSE                                                                                                ; reinit - assume no copy host files    
	WizardSetSkip(Panel_WorkStationHostFiles, Panel_SetupReviewNoCopyFilesWrk)
	WizardProcessPanel()

	; user didn't choose to skip
	switch40 = TRUE ;       

	; ///////////////////////////////////////////
	; // COPY FILES DIALOG
	; ///////////////////////////////////////////
	;       :SetupReviewCopyFilesDialogWrk
;       Note("Begin sr")
	WizardExcludePanel(Panel_SetupReviewNoCopyFilesWrk)
	WizardPanel(Panel_SetupReviewCopyFilesWrk, siwpca.dll)
	WizardProcessPanel()
;       Note("End sr")
	Goto(Label_CheckTargetSpace)

	; ///////////////////////////////////////////
	; // COPY FILES DIALOG
	; ///////////////////////////////////////////
;       :SetupReviewNoCopyFilesDialogWrk
	WizardPanel(Panel_SetupReviewNoCopyFilesWrk, siwpca.dll)
	WizardExcludePanel(Panel_SetupReviewCopyFilesWrk)
;       WizardExcludePanel(Panel_SpecifyLocationWrk)
	WizardProcessPanel()
#endif

:Label_CheckTargetSpace
CallProcEx(Func_SetVars)

; test target files space
WizardPanel(Panel_NoTargetSpace, siwpca.dll)

#if(switch1)
	switch19 = CallProcEx(Func_CheckTargetSpace_95)
#else
	switch19 = CallProcEx(Func_CheckTargetSpace_NT)
#endif

#if(switch19)  ; were okay
	WizardExcludePanel(Panel_NoTargetSpace)
#else
	WizardExcludePanel (Panel_SetupReviewCopyFilesSta)
	WizardExcludePanel (Panel_SetupReviewCopyFilesWrk)
	WizardExcludePanel (Panel_SetupReviewNoCopyFilesWrk)
	WizardProcessPanel()
	; if user cancels, its automatic
	; otherwise, go back to Panel_SpecifyLocation
	#if(switch4)
		WizardGotoPanel(Panel_SpecifyLocationSta)
	#else
		WizardGotoPanel(Panel_SpecifyLocationWrk)
	#endif
#endif



; ///////////////////////////////////////////
; // CREATE DIRECTORIES
; ///////////////////////////////////////////
; no return from CreateDirectory, could possible fail, need to verify
; paths user provides  (maybe create directories in custom dll?)
:Label_CreateDirectories
;Note("Create Dirs") 
;CallProcEx(Func_ShowRegs)
WizardPanel(Panel_Error_DirCreateFailed)
switch20 = CallProcEx(Func_CreateDirsStaWrk)
#ifnot(switch20)
	WizardProcessPanel()
	#if(switch4)
		WizardGotoPanel(Panel_SpecifyLocationSta)
	#else
		WizardGotoPanel(Panel_SpecifyLocationWrk)
	#endif
#endif
#if(switch1)
	CallProcEx(Func_CreateDirSharedComp)
#endif
WizardExcludePanel (Panel_Error_DirCreateFailed)
Goto(Label_SetVarsShortDirs)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; dead stuff until next ;;;;
; sets TARGET2 variable (appends system to target)
#if(switch1)
;       ResetTarget(TargetProgExt)      ; set extension, relies on App Path in Win95, (WinNT ?) 
; temporary for now
	ResetTarget(Target2_Target)    ; NT doesn't 
#else   ; were on NT
	ResetTarget(Target2_Target)    ; NT doesn't 
#endif

ResetTarget(Target4_Target\Data)
ResetTarget(Target5_Target\Download)

switch20 = CallProcEx(Func_CreateTarget)
#ifnot(switch20)
	WizardProcessPanel()
	#if(switch4)
		WizardGotoPanel(Panel_SpecifyLocationSta)
	#else
		WizardGotoPanel(Panel_SpecifyLocationWrk)
	#endif
#endif

#if(switch1)    ; windows 95
	CallProcEx(Func_CreateTarget2) ; local shared should succeed
#endif
CallProcEx(Func_CreateTarget3) ; should succeed or already exist
CallProcEx(Func_CreateTarget4) ; assume success (Target\Data)
CallProcEx(Func_CreateTarget5) ; assume success (Target\Download)

WizardExcludePanel (Panel_Error_DirCreateFailed)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
:Label_SetVarsShortDirs
; get short version only after directories are created
CallProcEx(Func_SetVarsShortDirs)


; set target 5 = windows\system dir
;ResetTarget(Target5_System)

; this is temporary since not currently using data directory
;#if(switch2)   ; on NT
;       ResetTarget(Target4_System\Drivers)
;#endif

; ///////////////////////////////////////////
; // COPY FILES
; ///////////////////////////////////////////
#ifnot(switch4)
	Goto(Label_SetupCopyFilesWorkstation)
#endif
:Label_SetupCopyFilesStandard
;
; standard install - set up switches for copying
;
; files always installed on standard install (platform independent)
switch16 = FALSE                ; common workstation files (general)
switch17 = FALSE                ; common workstation files (local host specific)
switch18 = FALSE                ; common non workstation files

; set all others to don't copy (initial assumption)
switch10 = TRUE                 ; Win95 workstation files  (general)
switch11 = TRUE                 ; Win95 workstation files  (local host specific)
switch12 = TRUE                 ; Win95 non workstation files
switch13 = TRUE                 ; WinNT workstation files  (general)
switch14 = TRUE                 ; WinNT workstation files  (local host specific)
switch15 = TRUE                 ; WinNT non workstation files

; platform specific files always installed 
#if(switch1)    ; on Win95
	switch10 = FALSE        ; copy Win95 workstation files (general)
	switch11 = FALSE  ; copy Win95 workstation files (local host specific)
	switch12 = FALSE        ; copy Win95 non workstation files
#else                           ; were on WinNT
	switch13 = FALSE        ; copy WinNT workstation files  (general)
	switch14 = FALSE        ; copy WinNT workstation files  (local host specific)
	switch15 = FALSE        ; copy WinNT non workstation files
#endif
Goto(Label_CopyFiles)

:Label_SetupCopyFilesWorkstation
;
; workstation install - set up switches for copying
;
; files never installed on workstation
switch12 = TRUE                 ; don't copy Win95 non workstation files
switch15 = TRUE                 ; don't copy WinNT non workstation files
switch18 = TRUE                 ; don't copy common non workstation files

; files always installed on workstation
switch16 = FALSE                ; copy common workstation files (general)

; set all others to don't copy (initial assumption)
switch10 = TRUE                 ; Win95 workstation files  (general)
switch13 = TRUE                 ; WinNT workstation files  (general)
switch11 = TRUE                 ; Win95 workstation files  (local host specific)
switch14 = TRUE                 ; WinNT workstation files  (local host specific)
switch17 = TRUE         ; common workstation files (local host specific)

; platform specific files always installed on workstation
#if(switch1)    ; on Win95
	switch10 = FALSE                ; copy Win95 workstation files
#else                           ; on WinNT
	switch13 = FALSE                ; copy WinNT workstation files
#endif
  

; files only installed on workstation when host run locally
#if(switch40)
	; user chose to install host files
	switch17 = FALSE        ; copy common workstation host files

	; platform specific host files
	#if(switch1)    ; on Win95
		switch11 = FALSE        ; copy Win95 workstation host files     
	#else
		switch14 = FALSE        ; copy WinNT workstation host files
	#endif
#endif  

:Label_CopyFiles
CallProcEx(Func_SetupTargetsCopyStaWrk)
;CallProcEx(Func_ShowRegs)
DisableUtils()
Copy()                                  ;copy files

; update symevent files in windows\system if necessary
#if(switch1)    ; on Win95
	; update symevents in local system directory
	switch5 = CallProcEx(Func_ExistSymVxD)
	switch6 = CallProcEx(Func_ExistSymDll)
	
	switch7 = FALSE ;
	#if(switch5)
;               Note("Sym VxD exists") ;
		switch7 = TRUE ;
	#endif

	#if(switch6)
;               Note("SymDll Exists") ;
		switch7 = TRUE ;
	#endif

	#if(switch7)
		CallProcEx(Func_UpdateFileSymVxD)
		CallProcEx(Func_UpdateFileSymDll)
	#endif  

#endif 

; Move template files into data directory
; can we use Target4 ?  
;ResetTarget(Target4_Target\Data)
;CallProcEx(Func_MoveSampleFiles)
#if(switch2)
	CallProcEx(Func_MoveNTHostDriver)
#endif
EnableUtils()

#if(switch1)
	CallProcEx(Func_CreateAWBinFile)
#endif

RemoveFromLoad(RemHost)                ;remove load=winhost from win.ini in case it is old

:Label_InstallService
; We need to use short names 
;       1) registering VxD's
;       2) registering host service on NT
;       3) creating group items
;   shared component directory in target3, move to target5 and convert to short (no lfn name)
;   local system directory in target2, move to target4 and convert to short (no lfn name)
ResetTarget(Target2to4)         ; TARGET4 = TARGET2  (local sys directory)
ResetTarget(Target3to5)         ; TARGET5 = TARGET3  (shared component dir)
CallProcEx(Func_GetShortTarget4)     ; TARGET4 = short filename 
CallProcEx(Func_GetShortTarget5)     ; TARGET5 = short filename

; note routines below rely on TARGET4 
#if(switch2)    ; on NT, install service
	; delete service first
	switch19 = CallProcEx(Func_RemoveService)
	switch90 = FALSE ;      init done flag 
	#ifnot(switch19)
		#if(switch24)
;                       Note ("Success - No previous host service") ;
			switch90 = TRUE ; done flag - we evaluated switch19 fail condition
			switch95 = TRUE ; attemp to register service later
		#endif
		#ifnot(switch90)
			#if(switch20)
;                               Note ("Host marked for deletion, may still exist, should reboot?") ;
;                               Note ("We will try anyway and see what happens") ;
				switch90 = TRUE ;  done flag
				switch95 = TRUE ; attemp to register service later
			#endif
		#endif
		#ifnot(switch90)
;                       Note ("Failure - Remove Host Service - Note following switch #");
			CallProcEx(Func_ShowSwitches)
		#endif
	#else
;               Note ("Success - Previous host service removed") ;
		switch95 = TRUE ; attemp to register service later
	#endif
#endif

; if on NT and remove service worked
#if(switch2)
	#if(switch95)
		switch19 = CallProcEx(Func_CreateService)
		#if(switch19)
;                       Note ("Success - Create Service") ;
		#else
;                       Note ("Failure - Create Service - Note following switch #") ;
			CallProcEx(Func_ShowSwitches)
		#endif
	#endif
#endif

#if(switch99)
;       CallProcEx(Func_ShowTargets)                            ; for debugging purposes only
#endif

; ///////////////////////////////////////////
; // UPDATE USAGE COUNTS
; ///////////////////////////////////////////
#if(switch1) ; Win95
	#ifnot(switch3) 
		CallProcEx(Func_UpdateUsageCounts)      ; handled differently depending on InitDll
														; setting       
	#endif
#endif

; ///////////////////////////////////////////
; // ADD PCA REGISTRY INFO
; ///////////////////////////////////////////
:Label_Registry
;CallProcEx(Func_ShowRegs)
#if(switch4)
	CallProcEx(Func_SetupTargetsRegistrySta)
#else
	#if(switch40)
		CallProcEx(Func_SetupTargetsRegistryWrkHost)
	#else
		CallProcEx(Func_SetupTargetsRegistryWrkNoHost)
	#endif
#endif
;Note ("Registry")
;CallProcEx(Func_ShowRegs)


MergeRegFile(RegWinCommon)                                        ; merge the shared reg file   
MergeRegFile(RegAWReg)                                            ; pcANYWHERE defaults 
#if(switch1)    ; Win95
	MergeRegFile(RegWin95)                ; merge reg file
	MergeRegFile(RegWinShellExt)                      ; merge shell extensions for Win95    
#else
;       ResetTarget(Target2_Target2\awgina)
	MergeRegFile(RegWinNT)
	; now reset target2 back to the way it was
;       CallProcEx(Func_RestoreTarget2)
#endif
; reg stuff specific to standard install
#if(switch4)
	CallProcEx(Func_CreateKey_InstallTypeSta)               ; Standalone
#else
	#if(switch40)
		CallProcEx(Func_CreateKey_InstallTypeWrkHost)  ; 
	#else
		CallProcEx(Func_CreateKey_InstallTypeWrkNoHost)  ; 
	#endif          
#endif

CallProcEx(Func_CreateKey_FilesDirectory) ; chf files, etc.

; read awgina entry, place into our local reg place
#if(switch2)
	CallProcEx (Func_QueryValueEx_OrigGina)         ; result in pathret buffer
	; could check return value, however, check return buffer instead
	switch5 = CallProcEx (Func_IsPathEmpty)
	; add new entry into local gina if necessary
	#ifnot(switch5)
		CallProcEx(Func_CreateKey_SaveOrigGina)
	#endif
#endif

; ///////////////////////////////////////////
; // CREATE PROGRAM GROUPS
; ///////////////////////////////////////////
EnableWin95Shell()


;ResetTarget(Target1to5)       ; Target1 -> Target5
;CallProcEx(Func_GetShortTarget5)     ; if on WinNT, convert Target5 to short name
;ResetTarget(Target2to4)
;CallProcEx(Func_GetShortTarget4)
; need source to point to its parent at this point (could use a different 
;       target I guess)
#if(switch4)
	CallProcEx(Func_SetupTargetsGroupsSta)
#else
	CallProcEx (Func_GetSourceParent)
	CallProcEx(Func_SetupTargetsGroupsWrk)
#endif
												
;CallProcEx(Func_ShowRegs)
Groups()                                ; setup groups
; following statements are needed to restore the original state 
ResetTarget(Target3to5) ; Target3 -> Target5
CallProcEx(Func_GetShortTarget5) ; convert Target5 to short name

;ResetTarget(Target1to5)       ; Target1 -> Target5
;CallProcEx(Func_GetShortTarget5)     ; if on WinNT, convert Target5 to short name
;Groups()                                ;setup groups
; following statements are needed to restore the original state 
;ResetTarget(Target3to5) ; Target3 -> Target5
;CallProcEx(Func_GetShortTarget5) ; convert Target5 to short name


; ///////////////////////////////////////////
; // Tech Support Dialog
; ///////////////////////////////////////////
WizardPanel(Panel_TechSupport, siwpca.dll)
WizardProcessPanel()

WizardPanel(Panel_HowToReach, siwpca.dll)
WizardProcessPanel()

WizardPanel(Panel_CrossSell, siwpca.dll)
WizardProcessPanel()

; ///////////////////////////////////////////
; // ONLINE REGISTRATION DIALOG
; ///////////////////////////////////////////
;WizardPanel(Panel_RegisterNow, siwpca.dll)
;WizardSetSkip(Panel_RegisterNow, Panel_Finished)
;WizardProcessPanel()
;WizardPanel(Panel_OnlineRegistration, siwpca.dll)
;WizardSetSkip(Panel_OnlineRegistration, Panel_Finished)
;WizardProcessPanel()
;WizardPanel(Panel_OnlineMarketing, siwpca.dll)
;WizardProcessPanel()
;WizardSetSkip(Panel_SendRegistration, Panel_Finished)
;WizardPanel(Panel_SendRegistration, siwpca.dll)
;WizardProcessPanel()

;WizardPanel(Panel_Finished_95, siwpca.dll)
;WizardPanel(Panel_Finished_NT, siwpca.dll)
;#if(switch1)
;       WizardExcludePanel(Panel_Finished_NT)
;#else
;       WizardExcludePanel(Panel_Finished_95)
;#endif
;WizardProcessPanel()

WizardPanel(Panel_Finished_95, siwpca.dll)
#if(switch1)
	WizardProcessPanel()
#else
	WizardExcludePanel(Panel_Finished_95)
#endif
WizardPanel(Panel_Finished_NT, siwpca.dll)
#if(switch2)
	WizardProcessPanel()
#else
	WizardExcludePanel(Panel_Finished_NT)
#endif

; one more panel for NT
WizardPanel(Panel_FinishedNTReboot, siwpca.dll)
#if(switch2)
	WizardProcessPanel()
#else
	WizardExcludePanel(Panel_FinishedNTReboot)
#endif

; ///////////////////////////////////////////
; // CLEAN UP
; ///////////////////////////////////////////
; What is this all about?
;CallProcEx(UpdateInstFlag)
;UpdateReg32(RegUpdate)

; ///////////////////////////////////////////
; // CHECK FOR FLOPPY
; ///////////////////////////////////////////
:CheckForFloppy
;WizardPanel(FloppyDialogFinish, siwpca.dll)
;#if(switch73)
;    switch80 = FALSE;
;    CallProc(FloppyInDrive)
;    #if (switch80)
;       WizardProcessPanel()
;       WizardGotoPanel(FloppyDialogFinish)
;    #endif
;#endif

; ///////////////////////////////////////////
; // DELETE LEFT OVER DLLS
; ///////////////////////////////////////////
:Label_CleanupAndExit
CallProcEx(ExitHookProc)
;Delete(InstallDLLs)                ;remove install files


; on Win95 we took over as shell, we therefore need to reboot
; on NT rebooting windows is not enough, user must shutdown and restart
#if(switch1)
	ExitRestart()
#else   ; on WinNT
	Exit()
#endif
End()

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;               Functions Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;----------------------------------------
[Func_MemoryStandalone]
dll = siwpca.dll
function = InitDll
arg0 = 0
arg1 = 20
;----------------------------------------
[Func_MemoryWorkstation]
dll = siwpca.dll
function = InitDll
arg0 = 1
arg1 = 20
;----------------------------------------
[Func_CheckNTVer]
dll = siwpca.dll
function = IsWinVerNTGTE
osversionMajor = 03
osversionMinor = 51
;----------------------------------------
[Func_CheckWinDriveSpace_95]
dll = siwpca.dll
function = FuncCheckFreeDriveSpaceWindows
;arg0 = 5000000000
arg0 = 125000
; above should fail
;----------------------------------------
[Func_CheckWinDriveSpace_NT]
dll = siwpca.dll
function = FuncCheckFreeDriveSpaceWindows
arg0 = 50000
; above should fail
;----------------------------------------
[Func_CheckTargetSpace_95]
dll = siwpca.dll
function = FuncCheckFreeDriveSpaceTarget
arg0 = 0000000
;arg0 = 500000000
; above should fail
;----------------------------------------
[Func_CheckTargetSpace_NT]
dll = siwpca.dll
function = FuncCheckFreeDriveSpaceTarget
arg0 = 0000000
; set above to 30MB
; above should fail
;----------------------------------------
[Func_RegTestKeyAccess]
dll = siwpca.dll
function = FuncRegTestKeyAccess
section = Section_AccessTest
options = TERMINATE_ON_ERROR

[Section_AccessTest]
HKEY_LOCAL_MACHINE, "SOFTWARE", PATHRET
HKEY_LOCAL_MACHINE, "SOFTWARE\Symantec", PATHRET
HKEY_LOCAL_MACHINE, "SOFTWARE\Symantec\pcANYWHERE", PATHRET
HKEY_CURRENT_USER,  "SOFTWARE", PATHRET
HKEY_CURRENT_USER,  "SOFTWARE\Symantec", PATHRET
HKEY_CURRENT_USER,  "SOFTWARE\Symantec\pcANYWHERE", PATHRET
HKEY_LOCAL_MACHINE, "SOFTWARE\Symantec\InstalledApps", PATHRET
HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Services", PATHRET
;----------------------------------------
[Func_SetVars]
dll = siwpca.dll
function = FuncSetVar
section = Section_SetVars

[Section_SetVars]
PATH0, %s, TARGET                                       ; Program Directory 
PATH1, %s, TARGET                                       ; Program\System not being used
PATH2, %s\data, TARGET
PATH3, %s\download, TARGET
PATH8, %s\setup, TARGET
PATH9, %s\drivers, SYSTEM
;----------------------------------------
[Func_SetVarsShortDirs]
dll = siwpca.dll
function = FuncConvertToShortName
section = Section_SetVarsShortDirs

[Section_SetVarsShortDirs]
%s, PATH4, PATH5
%s, PATH0, PATH6
%s, PATH1, PATH7
;----------------------------------------
[Func_CreateDirsStaWrk]
dll = siwpca.dll
function = FuncCreateDirLoc
section = Section_CreateDirsStaWrk
options = TERMINATE_ON_ERROR

[Section_CreateDirsStaWrk]
%s, PATH0       ; program dir
%s, PATH1       ; local system directory
%s, PATH2       ; data dir
%s, PATH3       ; download dir
;----------------------------------------
[Func_CreateDirSharedComp]
dll = siwpca.dll
function = FuncCreateDirLoc
arg0 = "%s, PATH4"
;----------------------------------------
[Func_SetupTargetsCopyStaWrk]
dll = siwpca.dll
function = FuncSetVar
section = Section_SetupTargetsCopyStaWrk

[Section_SetupTargetsCopyStaWrk]
TARGET,  %s, PATH0  
TARGET2, %s, PATH1
TARGET3, %s, PATH4
TARGET4, %s, PATH2
TARGET5, %s, SYSTEM
;----------------------------------------
[Func_SetupTargetsRegistrySta]
dll = siwpca.dll
function = FuncSetVar
section = Section_SetupTargetsRegistrySta

[Section_SetupTargetsRegistrySta]
TARGET,  %s, PATH0  
TARGET2, %s, PATH1
TARGET3, %s, PATH4
TARGET4, %s, PATH7
TARGET5, %s, PATH5
;----------------------------------------
[Func_SetupTargetsRegistryWrkHost]
dll = siwpca.dll
function = FuncSetVar
section = Section_SetupTargetsRegistryWrkHost

[Section_SetupTargetsRegistryWrkHost]
TARGET,  %s, PATH0  
TARGET2, %s, PATH1
TARGET3, %s, PATH4
TARGET4, %s, PATH7
TARGET5, %s, PATH5
;----------------------------------------
[Func_SetupTargetsRegistryWrkNoHost]
dll = siwpca.dll
function = FuncSetVar
section = Section_SetupTargetsRegistryWrkNoHost

[Section_SetupTargetsRegistryWrkNoHost]
TARGET,  %s, PATH0  
TARGET2, %s, PATH1
TARGET3, %s, PATH4
TARGET4, %s, SOURCE
TARGET5, %s, SOURCE
;----------------------------------------
[Func_SetupTargetsGroupsSta]
dll = siwpca.dll
function = FuncSetVar
section = Section_SetupTargetsGroupsSta

[Section_SetupTargetsGroupsSta]
TARGET,  %s, PATH6  
TARGET2, %s, PATH6
TARGET3, %s, PATH6
;----------------------------------------
[Func_SetupTargetsGroupsWrk]
dll = siwpca.dll
function = FuncSetVar
section = Section_SetupTargetsGroupsWrk

[Section_SetupTargetsGroupsWrk]
TARGET,  %s, SOURCE ; after source is modified to parent
TARGET2, %s, PATH6
TARGET3, %s, PATH6
;----------------------------------------
[Func_UpdateUsageCounts]
dll = siwpca.dll
function = FuncUpdateUsageCounts

[RefCounts]
symevnt.386, PATH4
symevnt1.dll, PATH4
s32evnt1.dll, PATH4
;----------------------------------------
[Func_ShowTargets]
dll = siwpca.dll
function = FuncShowTargets
;----------------------------------------
[Func_ShowRegs]
dll = siwpca.dll
function = FuncShowRegs
;----------------------------------------
[Func_SetupDfltTarget]
dll = siwpca.dll
function = SetupDefaultTarget
type = standard ; network, workstation
lfnLocation = "c:\Program Files\pcANYWHERE"
nolfnLocation = "c:\WIN32APP\winaw32"
;----------------------------------------
;type = workstation
;lfnLocation = "c:\Program Files\Norton pcANYWHERE"
;nolfnLocation = "c:\WIN32APP\winaw32"
;type = network
;lfnLocation = "c:\Program Files\Norton pcANYWHERE"
;nolfnLocation = "c:\WIN32APP\winaw32"
;----------------------------------------
[Func_SetupSharedComponentsDir]
dll = siwpca.dll
function = FuncGetSharedCompDir
arg0 = "c:\Program Files\Symantec"
arg1 = "c:\WIN32APP\Symantec"
arg2 = PATH4
;----------------------------------------
[Func_SetVarTarget3]
dll = siwpca.dll
function = FuncSetVar
arg0 = TARGET3
arg1 = "%s, PATH4"
;----------------------------------------
[Func_GetShortTarget4]
dll = siwpca.dll
function = FuncConvertToShortName
arg0 = "%s, TARGET4"
arg1 = "TARGET4"
;----------------------------------------
[Func_GetShortTarget5]
dll = siwpca.dll
function = FuncConvertToShortName
arg0 = "%s, TARGET5"
arg1 = "TARGET5"
;----------------------------------------
[Func_CreateTarget]
dll = siwpca.dll
function = FuncCreateDirLoc
arg0 = "%s, TARGET"
;----------------------------------------
[Func_CreateTarget2]
dll = siwpca.dll
function = FuncCreateDirLoc
arg0 = "%s, TARGET2"
;----------------------------------------
[Func_CreateTarget3]
dll = siwpca.dll
function = FuncCreateDirLoc
arg0 = "%s, TARGET3"
;----------------------------------------
[Func_CreateTarget4]
dll = siwpca.dll
function = FuncCreateDirLoc
arg0 = "%s, TARGET4"
;----------------------------------------
[Func_CreateTarget5]
dll = siwpca.dll
function = FuncCreateDirLoc
arg0 = "%s, TARGET5"
;----------------------------------------
[Func_CreateKey_InstallTypeSta]
dll = siwpca.dll
function = FuncRegCreateKeyValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = "InstallType" 
arg3 = "REG_DWORD"
arg4 = "0"
;----------------------------------------
[Func_CreateKey_InstallTypeWrkHost]
dll = siwpca.dll
function = FuncRegCreateKeyValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = "InstallType" 
arg3 = "REG_DWORD"
arg4 = "1"
;----------------------------------------
[Func_CreateKey_InstallTypeWrkNoHost]
dll = siwpca.dll
function = FuncRegCreateKeyValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = "InstallType" 
arg3 = "REG_DWORD"
arg4 = "2"
;----------------------------------------
[Func_CreateKey_FilesDirectory]
dll = siwpca.dll
function = FuncRegCreateKeyValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = "FilesDirectory" 
arg3 = "REG_SZ"
arg4 = "%s, PATH2"
;----------------------------------------
[Func_CreateService]
dll = siwpca.dll
function = FuncCreateService
ServiceName = "awhost32"
DisplayName = "pcANYWHERE Host Service"
BinaryName  = "awhost32.exe"  
BinaryPath  = TARGET4
;----------------------------------------
[Func_RemoveService]
dll = siwpca.dll
function = FuncRemoveService
ServiceName = "awhost32"
;----------------------------------------
[Func_ShowSwitches]
dll = siwpca.dll
function = FuncShowSwitches
FirstSwitch = 20
NumberToShow = 11
;----------------------------------------
[Func_CreateAWBinFile]
dll = siwpca.dll
function = FuncCreateAWBinFile
arg0 = "%s, PATH0"
arg1 = "%s, PATH2"
;----------------------------------------
[Func_RestoreTarget2]
dll = siwpca.dll
function = FuncGetParentDir
location = TARGET2
szRet = TARGET2
;----------------------------------------
[Func_ExistSymVxD]
dll = siwpca.dll
function = FuncDoesFileExist
fileName = symevnt.386
filePath = SYSTEM
;----------------------------------------
[Func_ExistSymDll]
dll = siwpca.dll
function = FuncDoesFileExist
fileName = symevnt1.dll
filePath = SYSTEM
;----------------------------------------
[Func_UpdateFileSymVxD]
dll = siwpca.dll
function = FuncUpdateFile
fileNameSrc = symevnt.386
fileNameDest = symevnt.386
filePathSrc = TARGET3
filePathDest = SYSTEM
;----------------------------------------
[Func_UpdateFileSymDll]
dll = siwpca.dll
function = FuncUpdateFile
fileNameSrc = symevnt1.dll
fileNameDest = symevnt1.dll
filePathSrc = TARGET3
filePathDest = SYSTEM
;----------------------------------------
[Func_CreateKey_AccessTest]
dll = siwpca.dll
function = FuncRegCreateKeyValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = "AccessTest" 
arg3 = "REG_SZ"
arg4 = "0"
;----------------------------------------
[Func_DeleteKey_AccessTest]
dll = siwpca.dll
function = FuncRegDeleteKeyValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = "AccessTest"
;----------------------------------------
[Func_QueryInstallVal]
dll = siwpca.dll
function = FuncRegQueryValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = Installed
arg3 = PATHRET
;----------------------------------------
[Func_QueryValueEx_OrigGina]
dll = siwpca.dll
function = FuncRegQueryValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\MICROSOFT\WINDOWS NT\CurrentVersion\WinLogon"
arg2 = GinaDLL
arg3 = PATHRET
;----------------------------------------
[Func_IsPathEmpty]
dll = siwpca.dll
function = FuncIsPathEmpty
path = PATHRET
;----------------------------------------
[Func_CreateKey_SaveOrigGina]
dll = siwpca.dll
function = FuncRegCreateKeyValue
arg0 = "HKEY_LOCAL_MACHINE"
arg1 = "SOFTWARE\Symantec\pcANYWHERE\6.0\System"
arg2 = "GinaDLL" 
arg3 = "REG_SZ"
arg4 = PATHRET
;----------------------------------------
[Func_MoveSampleFiles]
dll= siwpca.dll
function = FuncMoveFile
section = Section_MoveSampleFiles 
;----------------------------------------
[Section_MoveSampleFiles]
modem.chf, modem.chf, %s, PATH0, %s, PATH2
network.chf, network.chf, %s, PATH0, %s, PATH2
ras.chf, ras.chf, %s, PATH0, %s, PATH2
modem.bhf, modem.bhf, %s, PATH0, %s, PATH2
network.bhf, network.bhf, %s, PATH0, %s, PATH2
incoming.gwf, incoming.gwf, %s, PATH0, %s, PATH2
outgoing.gwf, outgoing.gwf, %s, PATH0, %s, PATH2
compserv.osf, compserv.osf, %s, PATH0, %s, PATH2
symantec.osf, symantec.osf, %s, PATH0, %s, PATH2
;----------------------------------------
[Func_MoveNTHostDriver]
dll= siwpca.dll
function = FuncMoveFile
arg0 = aw_host.sys
arg1 = aw_host.sys
arg2 = "%s, PATH0"
arg3 = "%s, PATH9"
;----------------------------------------
[Func_GetSourceParent]
dll = siwpca.dll
function = FuncGetParentDir
location = SOURCE
szRet = SOURCE
;----------------------------------------
;;;;;;;;;;;;;;;;;;;; Functions to support internal script commands ;;;;;;
[Target5_System]
reset = TARGET5
location = %s, SYSTEM

[Target2_Target]
reset = TARGET2
location = %s, TARGET

[Target2_Target\System]
reset = TARGET2
location = %s\System, TARGET

[Target4_Target\Data]
reset = TARGET4
location = %s\Data, TARGET

; this is temporary
[Target4_System\Drivers]
reset = TARGET4
location = %s\Drivers, SYSTEM

; this is temporary
[Target2_Target2\awgina]
reset = TARGET2
location = %s\awgina.dll, TARGET2

[Target5_Target\Download]
reset = TARGET5
location = %s\Download, TARGET

[Target2to4]
reset = TARGET4
location = %s, TARGET2

[Target3to5]
reset = TARGET5
location = %s, TARGET3

[Target1to5]
reset = TARGET5
location = %s, TARGET

[RegWinCommon]
file = %s\winaw32.reg, TARGET2
location = TARGET2

[RegAWReg]
file = %s\awi.reg, TARGET2
location = TARGET2

[RegWin95]
file = %s\winaw32w.reg, TARGET2
location = TARGET2

[RegWinNT]
file = %s\winaw32n.reg, TARGET2
location = TARGET2

[RegWinShellExt]
file = %s\awshelli.reg, TARGET2
location = TARGET2

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;               Wizard Panels Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Panel_WrongVersion]
Title="Incorrect Version"
DlgProc=_PanelDlgProc@16
ResourceId=102
Bitmap16=601
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[Panel_NoWinSpace]
Caption="Low Disk Space"
DlgProc=DlgProcNoWinSpace
ResourceId=108
;Bitmap16=610
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[Panel_Welcome]
Title="Welcome to Norton pcANYWHERE"
DlgProc=DlgProcSubclassWelcomeDlgProc
ResourceId=100
Bitmap16=602
PanelDataProc=_WelcomeDataProc@0
PanelFlags=First

[Nothing]
DlgProc=_DlgProcSubclassWelcomeDlgProc
DlgProc=_WelcomeDlgProc@16

[Panel_License]
Caption="Online License Agreement"
DlgProc=_LicenseDlgProc@16
ResourceId=502
PanelDataProc=_LicenseDataProc@0

[Panel_RegAccessWarning]
Caption="Registry Access Rights"
DlgProc=PanelDlgProc
ResourceId=147
;Bitmap16=610
PanelDataProc=_DefaultDataProc@0
PanelFlags=Next


[Panel_NoTargetSpace]
Caption="Low Disk Space"
;Title="Low Disk Space"
DlgProc=DlgProcNoTargetSpace
ResourceId=143
;Bitmap16=610
PanelDataProc=_DefaultDataProc@0
PanelFlags=Next

[Panel_Error_DirCreateFailed]
Caption="Directory Creation Failed"
DlgProc=_PanelDlgProc@16
ResourceId=142
;Bitmap16=602
PanelDataProc=_DefaultDataProc@0

[Panel_TechSupport]
Caption="Symantec Support Solutions"
Title="Symantec Support Solutions"
DlgProc=_TechSupDlgProc@16
ResourceId=507
Bitmap16=207

[Panel_SetupReviewCopyFilesSta]
Title="Setup Review"
DlgProc=DlgProcSetupReview
ResourceId=128
Bitmap16=613
PanelDataProc=_DefaultDataProc@0

[Panel_SetupReviewCopyFilesWrk]
Title="WorkStation Setup Review"
DlgProc=DlgProcSetupReview
ResourceId=128
Bitmap16=613
PanelDataProc=_DefaultDataProc@0

[Panel_SetupReviewNoCopyFilesWrk]
Title="WorkStation Setup Review"
DlgProc=DlgProcSetupReview
ResourceId=129
Bitmap16=613
PanelDataProc=_DefaultDataProc@0

[Panel_WorkStationHostFiles]
Title="Host Operation"
DlgProc=_PanelDlgProc@16
ResourceId=141
Bitmap16=602
PanelDataProc=_DefaultDataProc@0
PanelFlags=Skip

[Panel_Finished_95]
Title="Setup Complete"
DlgProc=_PanelDlgProc@16
ResourceId=130
Bitmap16=619
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last+Finish

[Panel_Finished_NT]
Title="Setup Complete"
DlgProc=_PanelDlgProc@16
ResourceId=130
Bitmap16=619
PanelDataProc=_DefaultDataProc@0
PanelFlags=First

[Panel_FinishedNTReboot]
;Title="Setup Complete"
DlgProc=_PanelDlgProc@16
ResourceId=149
Bitmap16=619
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last+Finish



[Panel_FloppyDialogFinish]
Title="Remove Floppy Diskette"
DlgProc=PanelDlgProc
ResourceId=109
Bitmap16=618
PanelDataProc=_DefaultDataProc@0
PanelFlags=First

[Panel_SpecifyLocationSta]
Title="Program Location"
DlgProc=DlgProcSpecifyLocation
ResourceId=118
Bitmap16=604
PanelDataProc=_DefaultDataProc@0

[Panel_SpecifyLocationWrk]
Title="Program Location"
DlgProc=DlgProcSpecifyLocation
ResourceId=119
Bitmap16=604
PanelDataProc=_DefaultDataProc@0

[Panel_CompressDialog]
Title="Compressed Drive Information"
DlgProc=PanelDlgProc
ResourceId=104
Bitmap16=609
PanelDataProc=_DefaultDataProc@0


[Panel_OnlineRegistration]
DlgProc=_UsaRegDlgProc@16
PanelDataProc=_UsaRegDataProc@0
ResourceId=505
PanelFlags=Skip

[Panel_OnlineMarketing]
DlgProc=_MarketingDlgProc@16
PanelDataProc=_MarketingDataProc@0
ResourceId=506
PanelFlags=Skip

[Panel_SendRegistration]
Title="Send Us Your Form"
DlgProc=_SendRegDlgProc@16
PanelDataProc=_SendRegDataProc@0
ResourceId=514
Bitmap16=214
PanelFlags=Skip

[Panel_RegisterNow]
Title="Register Now"
DlgProc=_RegNowDlgProc@16
PanelDataProc=_RegNowDataProc@0
ResourceId=504
Bitmap16=602
PanelFlags=Skip

[Panel_CrossSell]
Title="Windows 95 Solutions"
DlgProc=_CrossSellDlgProc@16
PanelDataProc=_CrossSellDataProc@0
ResourceId=512
Bitmap16=212

[Panel_HowToReach]
Title="How to Reach Us"
DlgProc=_ReachDlgProc@16
ResourceId=513
Bitmap16=213




;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;               Groups
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;-----------------------------------------------------------------------
; Copy.
;-----------------------------------------------------------------------
[PCACopy]
CopyMain.BaseFiles, "pcANYWHERE",    0, Y, N, Y

[PCACopy:CopyDialog]
caption = "Copying pcANYWHERE Files..."
;posx = -50
;posy = -50

[FileCopy]
insertcaption = "Insert Diskette"
errorcaption = "Error Copying Files"

[Cancel]
caption = "pcANYWHERE Setup Wizard" 
text = "Are you sure that you want to exit?" 

;-----------------------------------------------------------------------
; Copy file information for remote-only version
;-----------------------------------------------------------------------
; [PCARemoteCopy]
; CopyMain.BaseFiles, "pcANYWHERE - %ldK ",    2000, Y, N, Y
; [PCARemoteCopy:CopyDialog]
; caption = "Copying pcANYWHERE Files..."
; posx = -10
; posy = -10

;-----------------------------------------------------------------------
; Copy file information for host-only version
;-----------------------------------------------------------------------
; [PCAHostCopy]
; CopyMain.BaseFiles, "pcANYWHERE - %ldK ",    2000, Y, N, Y
; [PCAHostCopy:CopyDialog]
; caption = "Copying pcANYWHERE Files..."
; posx = -50
; posy = -50

;----------------------------------------------------------------------------------
;[AdvoDefault]
;posx = 20
;posy = 20
;text = AdvoText

;[AdvoText]
;"Please fill out your registration"
;"form to be sure to get information"
;"about product updates."
;""

;-----------------------------------------------------------------------
; Groups.
;-----------------------------------------------------------------------
; I removed the DELETE flag at end of following line, now maybe group
;   will appear
[groups]
"Montauk",       winaw32.grp, DELETE 

[Montauk]
"pcANYWHERE"                    ,  winaw32.exe,        BaseFiles, 0, TARGET
"Remove pcANYWHERE"     ,  "setup.exe",      BaseFiles, 0, TARGET2, , , "/u"
"Release Notes"         ,  "readme.txt",         BaseFiles, 0, TARGET3


; used for setup of installation
[pcawinst]
;symkrnl5.dll, symkrnl5.dll, SOURCE, WINDOWS
siwpca.dll, siwpca.dll, SOURCE, TEMPDIR

;cleanup after setup is done
;[InstallDLLs]
;SIWPCA.DLL, WINDOWS

[RemHost]
winhost.exe


[ExitHookProc]
dll = siwpca.dll
function = ReleaseDLL


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;               Testing Area
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[MsgBoxWin95Okay]
caption = "Win95"
text = "Okay"

[MsgBoxWinNTOkay]
caption = "WinNT"
text = "Okay" 

[MsgBoxCreateTarget3]
caption = "Notice"
text = "Create Target 3 Now" 

[MsgBoxCreatedTarget3]
caption = "Notice"
text = "Created Target 3" 

[MsgBoxExcludedPanel]
caption = "Notice"
text = "Excluded Drive Creation Error Panel" 

[MsgBoxCopyDone]
caption = "Notice"
text = "Copy Completed"

[MsgBoxUsageCountDone]
caption = "Notice"
text = "Usage Counts Done"

[MsgBoxRegistryDone]
caption = "Notice"
text = "Registry Done"

[MsgBoxGroupsDone]
caption = "Notice"
text = "Groups Done"




;***************************************************************************
;* SetShell section                                                        *
;***************************************************************************
[SetShell]
WinIniName = win.ini
SystemIniName = system.ini
Message = MessageBox.SetShellMessage
SysSectionName = boot
WinSectionName = windows
shell = %s\Setup.exe
load =
run =
SetShellIfLoaded=
Backup = Backup.SetShellSave
Restore = Backup.SetShellRestore
IfActiveList=LoadedList
SubProcess=SubProc
;this switch forces Setup to take over as shell.
Active = no


[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]
ctl3d32.dll
symevnt1.dll
mfc30.dll
msvcrt20.dll
mfcans32.dll
mfcuia32.dll
awshell.dll


[SetShellMessage]
caption  =  "pcANYWHERE Setup"
"Welcome to pcANYWHERE."
"Please select OK to allow Setup to restart your "
"computer and continue the installation. "
"Press Cancel to exit Setup."
