home *** CD-ROM | disk | FTP | other *** search
INI File | 1997-01-17 | 15.6 KB | 689 lines |
- ;////////////////////////////////////////////////
- ;// Norton Speed Disk for NT Trial install script
- ;// (c) 1996 Symantec - Peter Norton Product Group
- ;// For use with the Symantec Install version 4.2 32-bit
- ;////////////////////////////////////////////////
-
- ; Switch01 - Install is shell
- ; switch02 - QPD Exists
- ; switch03 - MM Version of installation
- ; switch04 - Launch IE3 install
- ;
- ; switch06 - LFN Target?
- ; switch07 - LFN C Drive?
- ; switch08 - LFN Windows Drive?
- ; switch09 - Symevnt exists in the system directory
- ; switch10 - NDD dos is selected
- ; switch11 - Unerase is selected
- ; switch12 - Patch win.com
- ;
- ; switch39 - Auto install
- ; switch40 - Target or Windows drive is compressed
- ; switch45 - Allows pressing back from the program location screen
- ; switch49 - SWITCH_INTLCHAR - Int'l chars in specifed path
- ; switch58 - SWITCH_DISKETTE - Diskette install
- ; switch60 - SWITCH_SMARTCAN - Enable NPROTECT
- ; switch61 - SWITCH_SDD - System Doctor enable
- ; switch63 - SWITCH_CUSTOM - custom install
- ; switch64 - SWITCH_COMPLETE - full install
- ; switch68 - SWITCH_OTHER - User has selected another location than the default
- ; switch69 - SWITCH_RESCUE - Create a rescue disk
- ; switch71 - SWITCH_DESELECT - User chooses to exit install (disk space)
- ; switch72 - SWITCH_CHANGEDRIVE - User wants to change locations (disk space)
- ; switch73 - SWITCH_REBOOT - Reboot at the end
- ; switch74 - SWITCH_NOREBOOT - Don't reboot at the end
- ; switch76 - SWITCH_NOROOM - Set by WinSpace function
- ; switch77 - SWITCH_RENAME - Rename old NU files
- ; switch78 - SWITCH_PREVIOUSVER - Previous version found
- ; switch79 - SWITCH_ADDPATH - Add the path to the autoexec
- ; switch80 - SWITCH_FLOPPY - Floppy in drive
- ; switch85 - SWITCH_LIVEUPDATE
- ; switch87 - SWITCH_SAGEDISABLE - Disable System Agent
- ; switch88 - Need zip association for spacewizard
-
- [InstallVersion]
- 4.0
-
- [Process]
- EnableForceWrite()
- EnableOverwrite()
- Enable256Advos()
- SetInternalFlag(1)
- Bitmaps(Pix)
-
- SaveRegistry(SaveRegGroup)
- DisableHelp()
- Backup(CustDLLCopy)
-
- ; Initialize the custom dll
-
- CallProc(Memory)
-
- ; Check for the proper version of Windows
-
- WizardPanel(WrongVersion, siwsd.dll)
-
- switch99 = IsWinVerGTE(0400)
- #ifnot(switch99)
- WizardProcessPanel()
- Exit()
- #endif
-
- switch99 = CallProcEx(CheckVersion)
- #ifnot(switch99)
- WizardProcessPanel()
- Exit()
- #endif
-
- switch99 = CallProcEx(IsAdminMode)
- #ifnot(switch99)
- MessageBox(MustBeAdmin)
- Exit()
- #endif
-
- ; Check for diskette version of NU
-
- CallProcEx(IsDisketteInstall)
-
- SetActiveCopy(SDCopy, install.inf)
-
- ; Check for low disk space
-
- WizardPanel(NoWinSpace, siwsd.dll)
-
- CallProc(CheckWinSpace)
- #if(switch76)
- WizardProcessPanel()
- Exit()
- #endif
-
- ; Process the Welcome wizard panel and the
- ; license agreement panel
-
- WizardPanel(Welcome, siwsd.dll)
- WizardProcessPanel()
-
- WizardPanel(License, siwsd.dll)
- WizardProcessPanel()
-
- SelectOption(basefiles)
-
- ; These don't serve any purpose anymore
-
- switch06 = CallProcEx(CheckLFNTarget)
- switch07 = CallProcEx(CheckLFNCDrive)
- switch08 = CallProcEx(CheckLFNWindows)
-
- ; Find the shared components directory or
- ; set the default if not found
-
- CallProcEx(FindSharedComponents)
-
- WizardPanel(SpecifyLocation, siwsd.dll)
- WizardIncludePanel(NoDiskSpace)
- WizardProcessPanel()
-
- #if(switch49)
- WizardGotoPanel(SpecifyLocation)
- #endif
-
- ; Check the required space to see if we can
- ; install
-
- :checkspace
- WizardPanel(NoDiskSpace,siwsd.dll)
-
- switch98=CheckDiskSpace(TARGET)
-
- #ifnot(switch98)
- WizardProcessPanel()
- #endif
-
- WizardExcludePanel(NoDiskSpace)
-
- ; Verify what we're going to do with the user
-
- WizardPanel(CopyFiles,siwsd.dll)
- WizardProcessPanel()
-
- ; Setup the various directories and get short path names
- ; Directories are as follows:
- ;
- ; TARGET - LFN Program Directory
- ; TARGET3 - LFN Symantec Shared Directory
- ; TARGET6 - Short Program Directory
- ; TARGET8 - Short Symantec Shared Directory
- ; TARGET15 - SYSTEM32\Drivers Dir
-
- CreateDirectory(CreateTarget)
- CreateDirectory(CreateSharedDir)
-
- CallProcEx(GetShortTarget)
- CallProcEx(GetShortShared)
-
- ResetTarget(SetDriversDir)
-
- ; Do the file copy now
-
- DisableUtils()
- Copy()
- EnableUtils()
-
- ; Get rid of the wizard panels we don't need anymore
-
- WizardExcludePanel(CopyFiles)
- WizardExcludePanel(NoDiskSpace)
- WizardExcludePanel(SpecifyLocation)
- WizardExcludePanel(License)
- WizardExcludePanel(Welcome)
- WizardExcludePanel(NoWinSpace)
- WizardExcludePanel(WrongVersion)
-
- ; Set the user registration
-
- SetRegistration(SetSymUtil32)
-
- ; Update the registry and usage counts
-
- CallProcEx(UsageCounts)
- CallProcEx(ProcessRegEntries)
-
- ; Register Speedisk and Nprotect Services
-
- Launch(S32TrialReg)
- Launch(UnregisterSDService)
- Launch(RegisterSDService)
- Launch(S32TrialRundll)
-
- ; Update the help indexes
- ;Launch(UpdateHelpIndex)
-
- ; Create the icons
-
- EnableWin95Shell()
- Groups()
-
- ; Set the installed flag in the registry
-
- CallProcEx(UpdateInstFlag)
-
- WizardPanel(Finished, siwsd.dll)
- WizardProcessPanel()
-
- Delete(CustDLLDel)
- Delete(Leftovers)
-
- #if(switch73)
- RebootNT()
- #endif
- Exit()
- End()
-
-
- ;********************************************************************
- ; Copy sections
- ;********************************************************************
-
- [SDCopy]
- CopyMain.BaseFiles, "Norton Speed Disk Basefiles - %ldK", 0, Y, N, Y
- CopySub.speediskw, " "
-
- CopyMain.DoNotRemove, "Dummy Entry - Don't remove", 0, N, N, N
- CopySub.xxx, "Bogus Field"
- CopySub.yyy, "Bogus Field"
-
-
- [SDCopy:TypeSelect]
- count = 2
- caption = "Norton Speed Disk Trial Setup 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 Speed Disk Trial. 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."
-
- [SDCopy:Primary]
- caption = "Norton Speed Disk Trial Main Selection"
- button1 = "Select..."
- button2 = "Select..."
- button3 = "Select..."
- button4 = "Select..."
- button5 = "Select..."
- text = App1Text
-
- [SDCopy:Component]
- caption = "Norton Speed Disk Trial Component Selection"
- text = "Select/Deselect the components you want to install. Checked items will be installed."
-
- [SDCopy:CopyDialog]
- caption = "Copying Norton Utilities Files..."
- posx = -10
- posy = -10
-
- [SDCopy:Advo]
- posx = 20
- posy = 20
- location = siwsd.dll
- count = 1
- BitmapsOnly=1
-
- [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."
-
- [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 Speed Disk Trial!"
-
- ;********************************************************************
- ; Groups
- ;********************************************************************
-
- [groups]
- "Norton Speed Disk Trial", sd.grp, ,COMMON
-
- [Norton Speed Disk Trial]
- "Speed Disk", sd32.exe, speediskw, 0, TARGET
- "Uninstall Speed Disk", setup.exe, basefiles, 0, TARGET, , , "/U"
-
-
- ;********************************************************************
- ; Dialog text
- ;********************************************************************
-
- [FileCopy]
- copycaption = "Installing Norton Utilitites for Windows NT"
- errorcaption = "Error Copying Files"
- insertcaption = "Insert Diskette"
- Message = MessageText
-
- [ReinsertMsg]
- caption = "Norton Speed Disk Trial Setup"
- "Please reinsert the Norton Speed Disk Trial Setup Disk 1"
-
- [Cancel]
- caption = "Norton Speed Disk Trial Setup Wizard"
- text = "Are you sure you want to exit?"
-
- [CancelShell]
- caption = "Norton Speed Disk Trial Setup Wizard"
- "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?"
-
- [MustBeAdmin]
- caption = "Norton Speed Disk Trial"
- "You must have administrator rights on this machine "
- "in order to install Norton Utilities. Setup will "
- "now exit."
-
- ;********************************************************************
- ; File backups
- ;********************************************************************
-
- [SaveSysIni]
- system.ini, system.sd, WINDOWS, WINDOWS
-
- [SaveAutoexec]
- c:\autoexec.bat, c:\autoexec.sd
-
- [SaveSysIniLFN]
- system.ini, "System.ini copy prior to Speed Disk install", WINDOWS, WINDOWS
-
- [SaveAutoexecLFN]
- c:\autoexec.bat, "c:\Autoexec.bat copy prior to Speed Disk install"
-
- [CustDLLCopy]
- siwsd.dll, siwsd.dll, SOURCE, TEMPDIR
- cramapi.dll, cramapi.dll, SOURCE, TEMPDIR
-
- [BackupSymantec]
- symantec.cnt, symantec.cnt, TARGET2, TARGET3
-
- [InfodeskTemp]
- infodesk.dll, infodesk.dll, SOURCE, TEMPDIR
-
- [SaveRegGroup]
- WINDOWS, system.sd, user.sd
-
- ;********************************************************************
- ; File deletes
- ;********************************************************************
-
- [DelSymantec]
- symantec.cnt, TARGET2
-
- [CustDLLDel]
- siwsd.dll, TEMPDIR
- version.dll, TARGET
-
- [Leftovers]
- siwsd.dll, TEMPDIR
-
- ;********************************************************************
- ; External function calls
- ;********************************************************************
-
- [CheckVersion]
- dll = siwsd.dll
- function = WinVersionCheck
- Major = 4
- Minor = 00
- Build = 1
-
- [SetEnv]
- dll = siwsd.dll
- function = SetPath
-
- [AlreadyInstalled]
- dll = siwsd.dll
- function = AlreadyInstalled
-
- [DebugStub]
- dll = siwsd.dll
- function = DebugStub
-
- [CheckLFNTarget]
- dll = siwsd.dll
- function = DriveSupportsLFN
- location = TARGET
-
- [CheckLFNCDrive]
- dll = siwsd.dll
- function = DriveSupportsLFN
- location = C
-
- [CheckLFNWindows]
- dll = siwsd.dll
- function = DriveSupportsLFN
- location = WINDOWS
-
- [FindSharedComponents]
- dll = siwsd.dll
- function = FindSharedComponents
-
- [UpdateInstFlag]
- dll = siwsd.dll
- function = UpdateInstalledFlag
-
- [UsageCounts]
- dll = siwsd.dll
- function = IncrementUsageCounts
- section = NUNTSharedComponents
-
- [GetShort]
- dll = siwsd.dll
- function = ConvertToShortName
-
- [GetShortTarget]
- dll = siwsd.dll
- function = ConvertToShortName
- source = 0
- dest = 6
-
- [GetShortShared]
- dll = siwsd.dll
- function = ConvertToShortName
- source = 3
- dest = 8
-
- [CheckWinSpace]
- dll = siwsd.dll
- function = WindowsDriveSpace
-
- [Memory]
- dll = siwsd.dll
- function = InitMemory
-
- [ExitHookProc]
- dll = siwsd.dll
- function = ReleaseDLL
-
- [FloppyInDrive]
- dll = siwsd.dll
- function = IsFloppyInDrive
-
- [BackupTarget4]
- dll = siwsd.dll
- function = BackupTarget4
-
- [RestoreTarget4]
- dll = siwsd.dll
- function = RestoreTarget4
-
- [IncrementBasefiles]
- dll = siwsd.dll
- function = IncrementBinaryUsageCounts
- section = SystemSharedComponents
-
- [ProcessRegEntries]
- dll = siwsd.dll
- function = ProcessRegEntries
- file = nsd1.reg
- location = TARGET
-
- [CheckOurPath]
- dll = siwsd.dll
- function = CheckOurPath
-
- [IsDisketteInstall]
- dll = siwsd.dll
- function = IsDisketteInstall
-
- [IsAdminMode]
- dll = siwsd.dll
- function = IsRunningAsAdministrator
-
-
- ;********************************************************************
- ; Text file mods
- ;********************************************************************
-
- ;********************************************************************
- ; ini file modifications
- ;********************************************************************
-
- ;********************************************************************
- ; Registration entries
- ;********************************************************************
-
- ;********************************************************************
- ; Misc install sections
- ;********************************************************************
-
- [RegisterSDService]
- "%s\sdsrv.exe -i", TARGET
-
- [UnregisterSDService]
- "%s\sdsrv.exe -u", TARGET
-
- [S32TrialReg]
- "regsvr32.exe /s %s\iratrial.dll", TARGET8
-
- [S32TrialRundll]
- "rundll32.exe %s\IRATRIAL.DLL,SetupTrialWare Symantec,Norton Speed Disk Trial,1,0,30", TARGET8
-
- [AutoexecFind]
- c:\autoexec.bat
-
- [FindSymantec]
- symantec.cnt, TARGET3
-
- [Pix]
- color = %s\nu.bmp, 1, 1
- color = %s\symlogo.rle, -1, 1
-
- [VerDll]
- ver.dll, system
-
- [SetSymUtil32]
- s32utilh.dll, TARGET3
-
- [NUNTSharedComponents]
- Component = s32krnlh.dll
- Component = s32guih.dll
- Component = s32utilh.dll
- Component = iratrial.dll
-
- [SharedComponents]
-
- [OnRampSharedComponents]
-
- [SystemSharedComponents]
-
- [NRegEditSharedComponents]
-
- [SI32SharedComponents]
-
- [TargetExt]
- reset = TARGET2
- location = "System"
- relative = 1
- relativeto = TARGET
-
- [SetLiveUpdateDir]
- reset = TARGET11
- location = %s\LiveUpdate, TARGET3
-
- [SetDriversDir]
- reset = TARGET15
- location = %s\Drivers, SYSTEM
-
- [CreateExtDir]
- %s, TARGET2
-
- [CreateTarget]
- %s, TARGET
-
- [CreateSharedDir]
- %s, TARGET3
-
- [WindowsVersion]
- 4.0
- "Norton Speed Disk Trial requires"
- "Windows NT version 4.0 or greater in order to install."
-
- [Registration]
- dll = s32utilh.dll
- string = "Symantec Install for Windows"
- active = no
- serialize = 0
-
- ;********************************************************************
- ; Wizard panels
- ;********************************************************************
-
- [WrongVersion]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Incorrect Version"
- DlgProc=_PanelDlgProc@16
- ResourceId=102
- Bitmap16=600
- PanelDataProc=_DefaultDataProc@0
- PanelFlags=First+Last
-
- [NoWinSpace]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Low Disk Space"
- DlgProc=_PanelDlgProc@16
- ResourceId=108
- Bitmap16=600
- PanelDataProc=_DefaultDataProc@0
- PanelFlags=First+Last
-
- [Welcome]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Welcome to Norton Speed Disk"
- DlgProc=_WelcomeDlgProc@16
- ResourceId=501
- Bitmap16=600
- PanelDataProc=_WelcomeDataProc@0
- PanelFlags=First
-
- [SpecifyLocation]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Program Location"
- DlgProc=PanelDlgProc
- ResourceId=118
- Bitmap16=600
- PanelDataProc=_DefaultDataProc@0
-
- [NoDiskSpace]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Low Disk Space"
- DlgProc=PanelDlgProc
- ResourceId=106
- Bitmap16=600
- PanelDataProc=_DefaultDataProc@0
-
- [CopyFiles]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Setup Review"
- DlgProc=PanelDlgProc
- ResourceId=128
- Bitmap16=600
- PanelDataProc=_DefaultDataProc@0
-
- [Finished]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Setup Complete"
- DlgProc=PanelDlgProc
- ResourceId=130
- Bitmap16=600
- PanelDataProc=_DefaultDataProc@0
- PanelFlags=First+Last+Finish
-
- [FloppyDialogFinish]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Remove Floppy Diskette"
- DlgProc=PanelDlgProc
- ResourceId=109
- Bitmap16=600
- PanelDataProc=_DefaultDataProc@0
- PanelFlags=First
-
- [License]
- Caption="Online License Agreement"
- DlgProc=_LicenseDlgProc@16
- ResourceId=502
- PanelDataProc=_LicenseDataProc@0
-
- [TechSupport]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Symantec Support Solutions"
- DlgProc=_TechSupDlgProc@16
- ResourceId=507
- Bitmap16=207
- PanelFlags=First
-
- [ReachUs]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="How to Reach Us"
- DlgProc=_ReachDlgProc@16
- ResourceId=513
- Bitmap16=213
-
- [CrossMarket]
- Caption="Norton Speed Disk Trial Setup Wizard"
- Title="Windows NT Solutions"
- DlgProc=_CrossSellDlgProc@16
- PanelDataProc=_CrossSellDataProc@0
- ResourceId=512
- Bitmap16=212
-
-
-