;***************************************************************************
;* Norton Utilities Preview for Windows 95 Preview Product (Tomahawk) 
;* Install Script 
;*                                                         
;* FOR VERSION 4.0+ OF SYMANTEC INSTALL FOR WINDOWS                        
;***************************************************************************
;
;    Switch Assignments
;----------------------------
; SWITCH_PREVIOUS         50  -- Previous Dialog
; SWITCH_NEXT             51  -- Next Dialog
; SWITCH_CANCEL           52  -- Exit Install
; SWITCH_SMARTCAN         60  -- Put SmartCan in Startup Group
; SWITCH_SDD              61  -- Put System Doctor in Startup Group
; SWITCH_CUSTOM           63  -- Custom Install
; SWITCH_COMPLETE         64  -- Complete Install
; SWITCH_DEFAULT          67  -- Default install location
; SWITCH_OTHER            68  -- New install location
; SWITCH_RESCUE           69  -- Make rescue disk
; 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_REPLACEDOS       75  -- Rename old DOS utilities
; SWITCH_NOROOM           76  -- No space on Windows drive
; SWITCH_RENAME           77  -- Rename DOS files
; SWITCH_PREVIOUSVER      78  -- Previously installed
; SWITCH_ADDPATH          79  -- Add install path to autoexec.bat
; SWITCH_FLOPPY           80  -- Is a diskette in the drive.
; SWITCH_FINDSMARTCAN     81  -- A older smartcan dir was found.
;

[InstallVersion]
4.0

[Process]
Bitmaps(Pix)                   ; Background bitmaps
DisableHelp()                  ; Don't display help buttons
Backup(CustDLLCopy)            ; Copy custom dll to windows dir

;////////////////////////////////////////
;// I N I T I A L I Z E   M E M O R Y
;////////////////////////////////////////
CallProc(Memory)

;////////////////////////////////
;//  V E R S I O N   C H E C K
;////////////////////////////////
switch99 = IsWinVerGTE(0395)   ; Check if running under Win 95
#ifnot(switch99)
    CallProc(WrongVersion)
    Exit()
#endif

SetActiveCopy(NUCopy, install.inf)

;/////////////////////////////////////////////////////////////////////
;//  C H E C K   F O R   S P A C E   O N   W I N D O W S   D R I V E
;/////////////////////////////////////////////////////////////////////
CallProc(CheckWinSpace)
#if(switch76)
    CallProc(NoWinSpace)
    Exit()
#endif

;////////////////////////////////
;//  W A R N I N G   D I A L O G
;////////////////////////////////
:WarningDialog  
CallProc(Warning)
#if(switch52)
   Exit()                      ; Exit if user chooses to bail
#endif

;////////////////////////////////
;//  W E L C O M E  D I A L O G
;////////////////////////////////
switch99 = IsInstallShell()
#if (switch99)
    CallProc(StartExplorer)
#endif    

:WelcomeDialog  
CallProc(Welcome)
#if(switch52)
   Exit()                      ; Exit if user chooses to bail
#endif

;//////////////////////////////////////////
;// R E G I S T R A T I O N   D I A L O G
;//////////////////////////////////////////
:RegisterDialog
CallProc(Register)
#if(switch52)
    Exit()
#endif
#if(switch50)
	goto(WelcomeDialog)
#endif

;///////////////////////////////////////////////////////
;// C O M P L E T E  O R   C U S T O M   I N S T A L L
;///////////////////////////////////////////////////////
:InstallTypeDialog
CallProc(InstallType)
#if(switch52)
    Exit()              ; Exit if user chooses to bail
#endif
#if(switch50)
    goto(RegisterDialog)
#endif

;//////////////////////////////////////////////////////////
;// S E A R C H   F O R  P R E V I O U S  V E R S I O N S
;//////////////////////////////////////////////////////////
:VersionSearch
CallProc(SearchInfo)
#if(switch52)
    Exit()              ; Exit if user chooses to bail
#endif
#if(switch50)
    goto(InstallTypeDialog)
#endif

;//////////////////////////////////////////////////////////
;// L O O K   F O R   S M A R T C A N   D I R E C T O R Y
;//////////////////////////////////////////////////////////
:FindSmartCanDlg
CallProc( FindSmartCan )
#if (switch81)
    CallProc( FindSmartCanDialog )
    #if(switch52)
        Exit()
    #endif
    #if(switch50)
        goto(InstallTypeDialog)
    #endif
#endif
;/////////////////////////////////////////////////
;//  S E T   T A R G E T  D I R E C T O R I E S 
;/////////////////////////////////////////////////
:TargetDirs
switch02 = CallProcEx(CheckLFNTarget)   ; Target drive support LFN's?
switch03 = CallProcEx(CheckLFNCDrive)   ; Boot drive support LFN's?
switch04 = CallProcEx(CheckLFNWindows)  ; Windows drive support LFN's?

#ifnot(switch02)
   ResetTarget(TargetExt)      ; Set 8.3 application extensions folder
#else
   #ifnot(switch78)            ; If LFN support but no prev version
      ResetTarget(TargetLFN)   ; Set default LFN target
   #endif
   ResetTarget(TargetExtLFN)   ; Set LFN application extensions folder
#endif

;////////////////////////////////////////////////////////////////////
;// F I N D   S H A R E D   C O M P O N E N T S   D I R E C T O R Y
;////////////////////////////////////////////////////////////////////
switch99 = CallProcEx(FindSharedComponents) ; Get shared comp dir from reg
#ifnot(switch99)
   #ifnot(switch03)	       ; If shared comp folder not registered and
      GetSymantecDir()         ;   no LFN support, use Symantec dir.
      ResetTarget(TargetShared)
   #endif
#endif

;//////////////////////////////////////////////////////////////////////
;// C U S T O M   I N S T A L L  C O M P O N E N T  S E L E C T I O N
;//////////////////////////////////////////////////////////////////////
GetPrevVerSize()               ; Calculate the prev ver size if available
switch98 = TRUE                ; Need to prompt for drive/folder

#ifnot(switch63)
   goto(InstallLocation)       ; If not custom install, jump to drive select
#endif

:compselect
PrimarySelect()                ; Prompt for components to install

#ifnot(switch98)
   goto(CheckSpace)            ; Skip drive prompt if reselect comp after err
#endif

;/////////////////////////////////////////////////////////////////////
;// D E F A U L T   O R   O T H E R  I N S T A L L  L O C A T I O N
;/////////////////////////////////////////////////////////////////////
:InstallLocation
CallProc(SpecifyLocation)
#if(switch52)
   Exit()              
#endif
#if(switch50)
   goto(InstallTypeDialog)
#endif

;//////////////////////////////////////////////////
;// C O M P R E S S E D   D R I V E   D I A L O G
;//////////////////////////////////////////////////
:CompressedDialog
switch40 = IsDriveCompressed(ALL)
#if(switch40)
	CallProc(CompressedDrive)
	#if(switch52)
   		Exit()              ; Exit if user chooses to bail
	#endif
	#if(switch50)
		goto(InstallLocation)
	#endif
#endif

;#ifnot(switch02)
;   TargetDrive(TargetDrive)    ; Prompt for target drive/folder
;#else
;   TargetDrive(TargetDriveLFN)
;#endif

;////////////////////////////////////////////
;// C H E C K   F O R   D R I V E S P A C E
;////////////////////////////////////////////
:checkspace
switch71 = FALSE
switch72 = FALSE

switch98 = CheckDiskSpace(TARGET)   ; Selected components fit on target?
#ifnot(switch98)
   CallProcEx(NoDiskSpace)     ; Display error if not
#endif

#if(switch71)
    Exit()
;   goto(compselect)        ; Reselect Components
#endif
#if(switch72)
   goto(InstallLocation)	       ; Select another drive to install to
#endif

;//////////////////////////////////
;// S T A R T U P   O P T I O N S     
;//////////////////////////////////
:StartupDialog
switch60 = IsOptionSelected(unerasew)
switch61 = IsOptionSelected(sysdocw)
#ifnot(switch60)
    #ifnot(switch61)
        goto(RescueDialog)
    #endif
#endif

CallProcEx(StartupDlg) 
#if(switch52)
    Exit()           
#endif
#if(switch50)
   	goto(InstallLocation)
#endif

;////////////////////////////////
;//  R E S C U E  D I A L O G
;////////////////////////////////
:RescueDialog
switch99 = IsOptionSelected(rescuew)
#if(switch99)
   CallProcEx(RescueDlg)
   #if(switch52)
      Exit()      
   #endif
   #if(switch50)
      #ifnot(switch60)
          #ifnot(switch61)
              goto(InstallLocation)
          #endif
      #endif
          goto(StartupDialog)
   #endif
#endif

;////////////////////////////////////////
;// C O P Y   F I L E S   D I A L O G
;////////////////////////////////////////
:CopyFilesDialog
CallProc(CopyFiles)
#if(switch52)
   Exit()              
#endif
#if(switch50)
   #if(switch99)
      goto(RescueDialog)
   #else
      #ifnot(switch60)
          #ifnot(switch61)
              goto(InstallLocation)
          #endif
      #endif
      goto(StartupDialog)
   #endif
#endif

;////////////////////////////////////////
;// C R E A T E   D I R E C T O R I E S 
;////////////////////////////////////////
CreateDirectory(CreateExtDir)
CreateDirectory(CreateSharedDir)  ; Create target directories if necessary

;////////////////////////////////////////
;//        C O P Y   F I L E S
;////////////////////////////////////////
DisableUtils()
Copy()
EnableUtils()

switch99 = Exists(SymevntFind)
#if(switch99)
   Backup(SymevntCopy)         ; Update Symevnt files if in system dir
#endif

;//////////////////////////////////////////////////////////
;// S T O R E   U S E R  R E G I S T R A T I O N  I N F O
;//////////////////////////////////////////////////////////
SetRegistration(SetSymUtil32) 

;/////////////////////////////////////////
;// U P D A T E   U S A G E  C O U N T S 
;/////////////////////////////////////////
CallProcEx(UsageCounts)

;////////////////////////////////////////////////////////////////
;// C R E A T E   S H O R T   N A M E S   F O R   T A R G E T S
;////////////////////////////////////////////////////////////////
ResetTarget(TargetSharedShort)
CallProcEx(GetShort)
ResetTarget(TargetSharedSave)  ; Save short form of shared path in TARGET5
ResetTarget(TargetShort)
CallProcEx(GetShort)           ; Set short form of target path in TARGET4

MergeRegFile(NuReg)            ; NU.REG needs long form of shared in TARGET 3

ResetTarget(TargetSave)        ; Save short form of target path in TARGET3
ResetTarget(TargetExtShort)
CallProcEx(GetShort)           ; Set short form of app ext path in TARGET4   

;/////////////////////////////////////////////
;// A D D   N U   R E G I S T R Y   I N F O
;/////////////////////////////////////////////
switch99 = IsOptionSelected(unerasew)
#if(switch99)
   MergeRegFile(UnerasewReg)
   MergeRegFile(SmartcanReg)
#endif

switch99 = IsOptionSelected(nddw)
#if(switch99)
   MergeRegFile(NddwReg)
#endif

switch99 = IsOptionSelected(sdw)
#if(switch99)
   MergeRegFile(SdwReg)
#endif

switch99 = IsOptionSelected(imagew)
#if(switch99)
   MergeRegFile(ImagewReg)
#endif

switch99 = IsOptionSelected(rescuew)
#if(switch99)
   MergeRegFile(RescuewReg)
#endif

switch99 = IsOptionSelected(sysinfow)
#if(switch99)
   MergeRegFile(SysinfowReg)
#endif

switch99 = IsOptionSelected(sysdocw)
#if(switch99)
   MergeRegFile(SysdocwReg)
#endif

switch99 = IsOptionSelected(spacewizw)
#if(switch99)
   MergeRegFile(SpacewizwReg)
#endif

switch99 = IsOptionSelected(ndrvex)
#if(switch99)
   MergeRegFile(NdrvexReg)
#endif

#if(switch60)
   MergeRegFile(SmartcanEnableReg) ; Replace recycle bin if selected
   CallProcEx(UnErase)
#endif

;//////////////////////////////////////////////////////
;// U P D A T E   P A T H S   I N   P I F   F I L E S
;//////////////////////////////////////////////////////
CallProc(ProcessPIF)

;//////////////////////////////////////////////
;// C R E A T E   P R O G R A M   G R O U P S            
;//////////////////////////////////////////////
#ifnot(switch61)
   DeselectOption(SysdocStart)	   ; Inhibit creation of System Doctor in
#endif                             ;   Startup group if not selected
; Groups()
CallProc( DoGroups )

switch99 = IsInstallShell()
#if (switch99)
    CallProc(StopExplorer)
#endif

;//////////////////////////////////
;//      R U N   R E S C U E   
;//////////////////////////////////
:RunRescue
switch99 = IsOptionSelected(rescuew)
#if(switch99)
    #if (switch69)
        CallProc(FloppyInDrive)
        #if (switch80)
            CallProc(FloppyDialog) ; Warn to remove floppy if any in drive
            goto(RunRescue)
        #endif
        Backup(RescueCopy)	   ; Put all files in System folder
        ExecChildProcess(RescueRun) ;Run Rescue
    #endif
#endif
Delete(RescueDel)                  ; Always del in case left from prev instal

;////////////////////////////////////////
;// R E N A M E   I N F O   D I A L O G
;////////////////////////////////////////
:RenameOldStuff
#if (switch77)
    CallProc(RenameInfo)
#endif
#if(switch52)
   Exit()              
#endif
CallProc(Rename)

;///////////////////////////////////////////////////////////
;// U P D A T E   T H E   P A T H   I F   R E Q U E S T E D
;///////////////////////////////////////////////////////////
switch99=Exists(AutoexecFind)		 ; Autoexec already exist?
#if(switch99)
   Backup(SaveAutoexec)                  ; Make backup of autoexec
   switch06=IsOptionSelected(ndd)
   switch07=IsOptionSelected(unerasew)
   switch99=VerifyStartup(CheckNDD)	 ; Autoexec already exist?
   #if(switch99)
       SilentModifyTF(AutoexecAddNDD)
   #else
       SilentModifyTF(Autoexec)
   #endif
#endif
#if(switch79)                            ; Put path in autoexec if user
   SilentModifyTF(AutoexecPath)          ;   requested
#endif

;//////////////////////////////
;//      C L E A N   U P
;//////////////////////////////
CallProcEx(UpdateInstFlag)
UpdateReg32(RegUpdate)

;////////////////////////////////////
;// P R E P A R E   F O R   E X I T
;////////////////////////////////////
switch73 = FALSE
CallProc(Finished)

;/////////////////////////////////////////////////////////////////////
;// C H E C K   F O R   F L O P P Y   B E F O R E   R E B O O T I N G
;/////////////////////////////////////////////////////////////////////
:CheckForFloppy
#if(switch73)
    CallProc(FloppyInDrive)
    #if (switch80)
        CallProc(FloppyDialog)
        goto (CheckForFloppy)
    #endif  
#endif

;//////////////////////////////////////////
;// D E L E T E  L E F T O V E R  D L L S 
;//////////////////////////////////////////
switch99 = IsOptionSelected(rescuew)
#if(switch99)
    #if (switch69)
        Delete(RescueDel)
    #endif
#endif
    
Delete(CustDLLDel)
Delete(Leftovers)
#if(switch73)
    ExitRestart()
#else
    Exit()
#endif

End()

;###########################################################################
;###########################################################################
;###########################################################################
;###########################################################################

;***************************************************************************
;* SubProc Executed When Install Takes Over As Shell                       *
;***************************************************************************
[SubProc]
Backup(CustDLLCopy)            ; Copy custom dll to windows dir
DelFromIni(DelVxds)            ; Remove Symevnt from SYSTEM.INI
Delete(CustDLLDel)
Return()

;***************************************************************************
;* SetShell section                                                        *
;***************************************************************************
[SetShell]
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=SubProc

[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]
symkrnl6.dll
symevnt1.dll
s32gui6.dll
s32krnl6.dll
siwnu.dll
numisc.dll

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

;***************************************************************************
;* External function calls                                                 *
;***************************************************************************
[StartExplorer]
dll = siwnu.dll
function = StartExplorer

[StopExplorer]
dll = siwnu.dll
function = StopExplorer

[WrongVersion]
dll = siwnu.dll
function = WrongVersionDialog

[Welcome]
dll = siwnu.dll
function = WelcomeDialog

[Warning]
dll = siwnu.dll
function = WarningDialog

[Register]
dll = siwnu.dll
function = RegisterDialog

[CompressedDrive]
dll = siwnu.dll
function = CompressedDialog

[InstallType]
dll = siwnu.dll
function = InstallTypeDialog

[SpecifyLocation]
dll = siwnu.dll
function = SpecifyLocationDialog

[CopyFiles]
dll = siwnu.dll
function = CopyFilesDialog

[StartupDlg]
dll = siwnu.dll
function = StartupDialog

[RescueDlg]
dll = siwnu.dll
function = RescueDialog

[Finished]
dll = siwnu.dll
function = FinishDialog

[NoDiskSpace]
dll = siwnu.dll
function = NoDiskSpaceDialog

[FindSymevntDll]
dll = siwnu.dll
function = FindSymevnt

[NukeSymevntDll]
dll = siwnu.dll
function = NukeSymevnt

[CheckLFNTarget]
dll = siwnu.dll
function = DriveSupportsLFN
location = TARGET

[CheckLFNCDrive]
dll = siwnu.dll
function = DriveSupportsLFN
location = C

[CheckLFNWindows]
dll = siwnu.dll
function = DriveSupportsLFN
location = WINDOWS

[FindSharedComponents]
dll = siwnu.dll
function = FindSharedComponents

[CheckPrevVer]
dll = siwnu.dll
function = CheckPrevVerPath

[UpdateInstFlag]
dll = siwnu.dll
function = UpdateInstalledFlag

[UsageCounts]
dll = siwnu.dll
function = UpdateUsageCounts

[GetShort]
dll = siwnu.dll
function = ConvertToShortName

[ConfigureNU]
dll = siwnu.dll
function = NortonStartUpOptions

[UnErase]
dll = siwnu.dll
function = UnEraseInstall

[ReplaceOldFiles]
dll = siwnu.dll
function = ReplaceOldFilesDialog

[CheckWinSpace]
dll = siwnu.dll
function = WindowsDriveSpace               

[NoWinSpace]
dll = siwnu.dll
function = NoWindowsSpaceDialog

[RenameInfo]
dll = siwnu.dll
function = RenameInfoDialog 

[SearchInfo]
dll = siwnu.dll
function = SearchDialog

[Memory]
dll = siwnu.dll
function = InitMemory

[Rename]
dll = siwnu.dll
function = RenameNUFiles

[ProcessPIF]
dll = siwnu.dll
function = ProcessPifFiles

[ExitHookProc]
dll = siwnu.dll
function = ReleaseDLL

[DoGroups]
dll = siwnu.dll
function = CreateGroupItems

[FloppyInDrive]
dll = siwnu.dll
function = IsFloppyInDrive

[FloppyDialog]
dll = siwnu.dll
function = RemoveFloppyDialog

[FindSmartCan]
dll = siwnu.dll
function = FindSmartCanDirectory

[FindSmartCanDialog]
dll = siwnu.dll
function = SmartCanDialog

;***************************************************************************
;* Dialog Info                                                             *
;***************************************************************************

[NUCopy:TypeSelect]
count = 2
caption = "Norton Utilities Preview Install Type"
text = "Please select the type of install you want to perform."
grouptext = "Install Types"
button1 = "&Complete Install"
button2 = "C&ustom Install"
descrip1 = "Installs all of the DOS and Windows Norton Utilities Preview.  This will require xx.x MB of disk space."
descrip2 = "Lets you choose which Norton Utilities modules to install.  If you need more options later, you can run install again."

[NUCopy:Primary]
caption = "Norton Utilities Preview 95 Main Selection"
button1 = "Select..."
button2 = "Select..."
button3 = "Select..."
button4 = "Select..."
button5 = "Select..."
text = App1Text

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

[NUCopy:Component]
caption = "Norton Utilities Preview Component Selection"
text    = "Select/Deselect the components you want to install.  Checked items will be installed."

[NUCopy:CopyDialog]
caption = "Copying Norton Utilities Preview Files..."
posx = -10
posy = -10

[NUCopy:Advo]
posx = 20
posy = 20
location = siwnu.dll
count = 6
BitmapsOnly=1

[AdvoDefault]
posx = 20
posy = 30
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 purchasing Norton Utilities Preview!"

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

[VersionSearch]
caption =  "Searching for Previous Version"
text1   =  "Searching for a previously installed"
text2   =  "version of Norton Utilities Preview."
appname =  "sysdoc32.exe"
apppath =  C:\NU

[SymantecDir]
caption = "Searching for Shared Directory"
text1 = "Searching for Symantec shared"
text2 = "program folder."
appname = "symcfg.bin"
apppath = C:\SYMANTEC

[TargetDrive]
caption =  "Install Norton Utilities Preview Files"
defpath =  C:\NU
text    =  "Please select the drive/folder where you want to install Norton Utilities."
reqspace=  "Approximate additional disk space required"

[TargetDriveLFN]
caption =  "Install Norton Utilities Preview Files"
defpath =  "C:\Program Files\Norton Utilities"
text    =  "Please select the drive/folder where you want to install Norton Utilities."
reqspace=  "Approximate additional disk space required"

[FileCopy]
copycaption   =  "Installing Norton Utilitites Preview"
errorcaption  =  "Error Copying Files"
insertcaption =  "Insert Diskette"
Message       =   MessageText

[Cancel]
caption = "Norton Utilities Preview Setup"
text    = "Are you sure you want to exit?"

[CancelShell]
caption = "Norton Utilities Preview Setup"
"You have selected to exit Setup. In order "
"to reset the Windows environment, Setup "
"will need to restart your computer."
"Are you sure you want to exit?"

;***************************************************************************
;* Target Folder Settings                                                  *
;***************************************************************************

[TargetLFN]
reset = TARGET
location = "C:\Program Files\Norton Utilities"

[TargetShort]
reset = TARGET4
location = %s, TARGET

[TargetSave]
reset = TARGET3
location = %s, TARGET4

[TargetExt]
reset = TARGET2
location = "System"
relative = 1
relativeto = TARGET

[TargetExtLFN]
reset = TARGET2
location = "System"
relative = 1
relativeto = TARGET

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

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

[TargetSharedShort]
reset = TARGET4
location = %s, TARGET3

[TargetSharedSave]
reset = TARGET5
location = %s, TARGET4

[CreateExtDir]
%s, TARGET2

[CreateSharedDir]
%s, TARGET3

;***************************************************************************
;* File backup                                                             *
;***************************************************************************
 
[SaveSysIni]
system.ini, system.nu, WINDOWS, WINDOWS

[AutoexecFind]
c:\autoexec.bat

[SaveAutoexec]
c:\autoexec.bat, c:\autoexec.nu

[SaveSysIniLFN]
system.ini, "System.ini copy prior to NU install", WINDOWS, WINDOWS

[SaveAutoexecLFN]
c:\autoexec.bat, "c:\Autoexec.bat copy prior to NU install"

[CustDLLCopy]
siwnu.dll, siwnu.dll, SOURCE, WINDOWS
siwisl.dll, siwisl.dll, SOURCE, WINDOWS
siwisl16.dll, siwisl16.dll, SOURCE, WINDOWS

[SymevntFind]
symevnt.386, SYSTEM
symevnt1.dll, SYSTEM

[SymevntCopy]
symevnt.386, symevnt.386, TARGET3, SYSTEM
symevnt1.dll, symevnt1.dll, TARGET3, SYSTEM

[RescueCopy]
rescue.exe,   rescue.exe,   TARGET3, TARGET4
rescue32.exe, rescue32.exe, TARGET3, TARGET4
s32stat.dll,  s32stat.dll,  TARGET5, TARGET4

[RescueRun]
"%s\rescue32.exe /REGMSG", TARGET4

;***************************************************************************
;* Delete Files                                                            *
;***************************************************************************

[RescueDel]
rescue.exe,    TARGET4
rescue32.exe,  TARGET4
s32stat.dll,   TARGET4

[CustDLLDel]
siwnu.dll,     WINDOWS
siwisl.dll,    WINDOWS
siwisl16.dll,  WINDOWS

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

;***************************************************************************
;* System.ini / Autoexec.bat Mods                                          *
;***************************************************************************

[CheckNDD]
file=c:\autoexec.bat
finditems=FindNDD

[FindNDD]
*ndd*

[AutoExec]
FileSpec   = c:\autoexec.bat
filetype   = autoexec
Create     = 0
CreateText = 
rem1       = "rem"
FindRems   = 0
RemItems   = AutoexecRemItems

[AutoExecAddNDD]
FileSpec   = c:\autoexec.bat
filetype   = autoexec
Create     = 0
CreateText = 
rem1       = "rem"
FindRems   = 0
RemItems   = AutoexecRemItems
AddItems   = AutoexecAddItems

[AutoexecRemItems]
"ndd*"
"*\ndd*"
"*smartcan*", switch07
"*\smartcan*", switch07

[AutoexecAddItems]
"%s\NDD.EXE C: /Q", TARGET3, PutMeAfterThis=AutoexecAfterThis, switch06

[AutoexecAfterThis]
ndd*
*\ndd*

[AutoexecPath]
FileSpec   = c:\autoexec.bat
filetype   = autoexec
Create     = 1
CreateText = 
rem1       = "rem"
FindRems   = 0
AddPath    = TARGET3

[DelVxds]
IniName = system.ini
SectionName = 386enh
device=*symevnt.386*

;***************************************************************************
;* Reg Database mods                                                       *
;***************************************************************************

[NuReg]
file = %s\nu.reg, TARGET2

[SmartcanReg]
file = %s\smartcan.reg, TARGET2

[SmartcanEnableReg]
file = %s\smcanon.reg, TARGET2

[UnerasewReg]
file = %s\ue32.reg, TARGET2

[NddwReg]
file = %s\ndd32.reg, TARGET2

[SdwReg]
file = %s\sd32.reg, TARGET2

[ImagewReg]
file = %s\image32.reg, TARGET2

[RescuewReg]
file = %s\rescue32.reg, TARGET2

[SysinfowReg]
file = %s\si32.reg, TARGET2

[SysdocwReg]
file = %s\sysdoc32.reg, TARGET2

[SpacewizwReg]
file = %s\sw32.reg, TARGET2

[NdrvexReg]
file = %s\ndrvex.reg, TARGET2

[RegUpdate]
key = "HKEY_LOCAL_MACHINE"
subkey = "SOFTWARE\Symantec\Norton Utilities\Install\9.0\Components"


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

[Pix]
color = %s\nu.bmp, 1, 1
color = %s\symlogo.rle, -1, 1

[VerDll]
ver.dll, system

[SetSymUtil32]
s32util6.dll, TARGET2

[WindowsVersion]
3.95
"Norton Utilities Preview requires"
"Windows 95 in order to install."

[Registration]
dll = s32util6.dll
string = "Symantec Install for Windows"
active = no
serialize = 0

;***************************************************************************
;* Groups                                                                  *
;***************************************************************************
[groups]
"Norton Utilities", nu.grp
"Startup",          startup.grp

[Norton Utilities]
"Disk Editor",             diskedit.pif,   diskedit,  0,  TARGET3, diskedit.ico
"Norton Diagnostics",      ndiags.pif,     ndiags,    0,  TARGET3, ndiags.ico
"Norton Disk Doctor",      ndd32.exe,      nddw,      0,  TARGET3
"Rescue Disk",             rescue32.exe,   rescuew,   0,  TARGET3
"Space Wizard",            sw32.exe,       spacewizw, 0,  TARGET3
"Speed Disk",              sd32.exe,       sdw,       0,  TARGET3
"System Information",      si32.exe,       sysinfow,  0,  TARGET3
"Norton System Doctor",    sysdoc32.exe,   sysdocw,   0,  TARGET3
"UnErase Wizard",          ue32.exe,       unerasew,  0,  TARGET3
"Image",                   image32.exe,    imagew,    0,  TARGET3
"Info Desk",               infodesk.hlp,   basefiles, 0,  TARGET4, helpdesk.ico

[Startup]
"Norton System Doctor", sysdoc32.exe, sysdocstart, 0, TARGET3, sysdoc32.exe, TARGET3, " "
;"Norton Disk Doctor",   ndd32.exe,    nddstart,    0, TARGET3, ndd32.exe,    TARGET3, "/q", 1

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

[NUCopy]
CopyMain.BaseFiles,    "Norton Utilities Base Files - %ldK",           0, Y, N, Y
CopySub.sysdocstart,   " "
;CopySub.nddstart,      " "

CopyMain.DosUtils,     "Norton DOS Utilities - %ldK",                  0, N, Y, Y
CopySub.diskedit,      "Disk Editor - %ldK"
CopySub.ndiags,        "Norton Diagnostics - %ldK"
CopySub.ndd,           "Norton Disk Doctor - %ldK"
CopySub.rescue,        "Rescue Disk - %ldK"
CopySub.spacewiz,      "Space Wizard - %ldK"
CopySub.speedisk,      "Speed Disk - %ldK"
CopySub.unerase,       "UnErase - %ldK"
CopySub.unformat,      "Unformat - %ldK"

CopyMain.WinUtils,     "Norton Windows Utilities - %ldK",              0, N, Y, Y
CopySub.imagew,        "Image - %ldK"
CopySub.nddw,          "Norton Disk Doctor - %ldK"
CopySub.rescuew,       "Rescue Disk - %ldK"
CopySub.sdw,           "Speed Disk - %ldK"
CopySub.spacewizw,     "Space Wizard - %ldK"
CopySub.sysinfow,      "System Information - %ldK"
CopySub.sysdocw,       "Norton System Doctor - %ldK"
CopySub.unerasew,      "UnErase Wizard - %ldK"
CopySub.ndrvex,        "Shell Extensions - %ldK"

CopyMain.DoNotRemove,   "For uninstall bug - %ldK",              0, N, N, N
CopySub.xxx,            "Bogus Field - %ldK"
CopySub.yyy,            "Bogus Field - %ldK"


