home *** CD-ROM | disk | FTP | other *** search
- ;NVC95.NXD v4.70
- NXD BEGIN
-
- set $Source = '{Source}'
- set $Target = '{Target}'
- set $Folder = '{Folder}'
-
- set $Inst_Canary = '{Inst_Canary}'
- set $Inst_Nvc_Win95 = '{Inst_Nvc_Win95}'
- set $Inst_Nvc_ShellExt = $Inst_Nvc_Win95
- set $Inst_Book = '{Inst_Book}'
- set $Inst_Blocker = '{Inst_Blocker}'
- set $Inst_CatsClaw = '{Inst_CatsClaw}'
- set $Inst_CatsClaw_Config = 'No'
- set $Inst_Nse = 'Yes'
- set $Inst_ReadMe = '{Inst_ReadMe}'
- set $Inst_InternetUpdate = 'No'
- set $Inst_UpdateAtStartup = 'No'
- set $Inst_Untbav = '{Inst_Untbav}'
-
- set $Icon_Nvc = '{Icon_Nvc_Win95}'
- set $Icon_Book = '{Icon_Book}'
- set $Icon_CatsClaw = '{Icon_CatsClaw}'
- set $Icon_Blocker = '{Icon_Blocker}'
- set $Icon_ReadMe = '{Icon_ReadMe}'
- set $Icon_InternetUpdate = '{Icon_InternetUpdate}'
-
- set $Start_Canary = 'Yes'
- set $Start_Blocker = 'Yes'
- set $Start_CatsClaw = 'Yes'
- set $Start_Nvc_Win95 = 'No'
-
- #Start
- set $AutoexecCopied = 'FALSE'
-
- #CheckOs
- if $System ! 'WIN95'
- goto #End
-
- #DeleteFiles
- delete $Target+'\NVC.DEF'
- delete $Target+'\NVCBIN.DEF'
- delete $Target+'\NVCMACRO.DEF'
- delete $Target+'\NVCMACRO.CRT'
- delete $Target+'\DOS\NVCLEAN.EXE'
- delete $Target+'\DOS\NVCEXCL.EXE'
-
- #MakeDirs
- makedir $Target+'\DOS'
- makedir $Target+'\WIN95'
- makedir $Target+'\WIN32'
-
- #SetupIni
- setini $Target+'\SETUP.INI' 'NVC' 'Path' $Target
- setini $Target+'\SETUP.INI' 'NVC|WIN95' 'Path' $Target
- setini $Target+'\SETUP.INI' 'NVC|WIN95' 'Folder' $Folder
- setini $Target+'\SETUP.INI' 'NVC|WIN95' 'Version' '4.70'
-
- #Canary
- if $Inst_Canary ! 'Yes'
- goto #Canary_End
- set $Updated = 'No'
- copy $Source+'\DOS\CANARY.COM' $Target+'\DOS\CANARY.COM' update
- copy $Source+'\DOS\CANARY.EXE' $Target+'\DOS\CANARY.EXE' update
- if $Updated = 'No'
- goto #Canary_End
- if $Start_Canary ! 'Yes'
- goto #Canary_End
- if $AutoexecCopied = 'FALSE'
- copy 'C:\AUTOEXEC.BAT' 'C:\AUTOEXEC.NVC' always
- set $AutoexecCopied = 'TRUE'
- search $Line 'C:\AUTOEXEC.BAT' '\CANARY.COM'
- if $Error = 'TRUE'
- goto #NewEntry1
- replace $Line $Target+'\DOS\CANARY.COM 1' 'C:\AUTOEXEC.BAT'
- goto #Canary_End
- #NewEntry1
- insert 'C:\AUTOEXEC.BAT' end $Target+'\DOS\CANARY.COM 1' nodup
- #Canary_End
-
- #Nse
- if $Inst_Nse ! 'Yes'
- goto #Nse_End
- getini $NseTarget $Windir+'\SYSTEM.INI' 'Norman Data Defense Systems' 'NsePath'
- if $Error = 'TRUE'
- getregistry $NseTarget 'HKEY_LOCAL_MACHINE\Software\Norman Data Defense Systems' 'NsePath'
- if $Error = 'TRUE'
- set $NseTarget = $Target+'\NSE'
- makedir $NseTarget
- makedir $NseTarget+'\UPDATE'
- copy $Source+'\NSE\NSE32.EXE' $NseTarget+'\NSE32.EXE' update
- copy $Source+'\NSE\Ndiskio.VXD' $NseTarget+'\Ndiskio.VXD' update
- copy $Source+'\WIN32\NREN.EXE' $Target+'\WIN32\NREN.EXE' update
- copy $Source+'\NSE\NSEW31.386' $NseTarget+'\NSEW31.386' update
- ;copy $Source+'\NSE\UPDATE\NSEUPDAT.ZIP' $NseTarget+'\UPDATE\NSEUPDAT.ZIP' update
- copy $Source+'\NSE\NVCBIN.DEF' $NseTarget+'\NVCBIN.DEF' update
- copy $Source+'\NSE\NVCMACRO.DEF' $NseTarget+'\NVCMACRO.DEF' update
- if exist $Source+'\NSE\NVCMACRO.CRT'
- copy $Source+'\NSE\NVCMACRO.CRT' $NseTarget+'\NVCMACRO.CRT' update
- if exist $Source+'\TCP_IP.CFG'
- copy $Source+'\TCP_IP.CFG' $Target+'\TCP_IP.CFG' update
- run $NseTarget+'\NSE32.EXE' '/INSTALL'
- #Nse_End
-
- #Nvc_Win95
- if $Inst_Nvc_Win95 ! 'Yes'
- goto #Nvc_Win95_End
- delete $Target+'\WIN95\NVCLW16.DLL'
- delete $Target+'\WIN95\NVCLW32.DLL'
- set $Updated = 'No'
- copy $Source+'\WIN95\NVC95.EXE' $Target+'\WIN95\NVC95.EXE' update
- copy $Source+'\WIN95\NVCMSG.DLL' $Target+'\WIN95\NVCMSG.DLL' update
- copy $Source+'\WIN95\NIPXLIB.DLL' $Target+'\WIN95\NIPXLIB.DLL' update
- copy $Source+'\WIN95\NVC95.HLP' $Target+'\WIN95\NVC95.HLP' update
- copy $Source+'\WIN95\NVC95.CNT' $Target+'\WIN95\NVC95.CNT' update
- copy $Source+'\WIN95\NVCPRE.BAT' $Target+'\WIN95\NVCPRE.BAT' update
- copy $Source+'\WIN32\NVC32.EXE' $Target+'\WIN32\NVC32.EXE' update
- copy $Source+'\WIN32\NLOG.DLL' $Target+'\WIN32\NLOG.DLL' update
- copy $Source+'\WIN32\NLOGSNMP.DLL' $Target+'\WIN32\NLOGSNMP.DLL' update
- copy $Source+'\WIN32\NLOGTXT.DLL' $Target+'\WIN32\NLOGTXT.DLL' update
- copy $Source+'\WIN32\NMSG.DLL' $Target+'\WIN32\NMSG.DLL' update
- copy $Source+'\WIN32\TROGUARD.EXE' $Target+'\WIN32\TROGUARD.EXE' update
- copy $Source+'\WIN32\TROGUARD.TXT' $Target+'\WIN32\TROGUARD.TXT' update
- copy $Source+'\WIN32\PSAPI.DLL' $Target+'\WIN32\PSAPI.DLL' update
- copy $Source+'\DOS\NVC32X.EXE' $Target+'\DOS\NVC32X.EXE' update
- copy $Source+'\NVC32.CFG' $Target+'\NVC32.CFG' update
- if $Updated = 'No'
- goto #Scheduling
- if $AutoexecCopied = 'FALSE'
- copy 'C:\AUTOEXEC.BAT' 'C:\AUTOEXEC.NVC' always
- set $AutoexecCopied = 'TRUE'
- search $Line 'C:\AUTOEXEC.BAT' '\NVCPRE.BAT'
- if $Error = 'TRUE'
- goto #NewEntry2
- replace $Line ' ' 'C:\AUTOEXEC.BAT'
- ; replace $Line '@CALL '+$Target+'\WIN95\NVCPRE.BAT' 'C:\AUTOEXEC.BAT'
- goto #Continue2
- #NewEntry2
- ; insert 'C:\AUTOEXEC.BAT' beginning '@CALL '+$Target+'\WIN95\NVCPRE.BAT' nodup
- #Continue2
- register $Folder $Target+'\WIN95\NVC95.EXE' $Icon_Nvc
- if $Start_Nvc_Win95 ! 'Yes'
- goto #Scheduling
- register 'Startup' $Target+'\WIN95\NVC95.EXE' $Icon_Nvc
- #Scheduling
- set $Update = 'No'
- if exist $Source+'\WIN95\NVC95.REG'
- copy $Source+'\WIN95\NVC95.REG' $Target+'\WIN95\NVC95.REG' update
- if $Updated = 'No'
- goto #Nvc_Win95_End
- if exist $Target+'\WIN95\NVC95.REG'
- run $Windir+'\REGEDIT.EXE' '/s '+$Target+'\WIN95\NVC95.REG' nowait
- #Nvc_Win95_End
-
- #NVC_ShellExt
- if $Inst_Nvc_ShellExt ! 'Yes'
- goto #Nvc_ShellExt_End
- set $Updated = 'No'
- copy $Source+'\WIN32\NVCSE.DLL' $Target+'\WIN32\NVCSE.DLL' update
- copy $Source+'\WIN32\NVCOD.EXE' $Target+'\WIN32\NVCOD.EXE' update
- copy $Source+'\WIN32\NVCODRC.DLL' $Target+'\WIN32\NVCODRC.DLL' update
- copy $Source+'\WIN32\NVCOD.HLP' $Target+'\WIN32\NVCOD.HLP' update
- copy $Source+'\NVC32.CFG' $Target+'\NVC32.CFG' update
- if $Updated = 'No'
- goto #Nvc_ShellExt_End
- run $Target+'\WIN32\NVCOD.EXE' '/INSTALL' nowait
- #Nvc_ShellExt_End
-
- #Book
- if $Inst_Book ! 'Yes'
- goto #Book_End
- set $Updated = 'No'
- copy $Source+'\WIN95\NVCBOOK.HLP' $Target+'\WIN95\NVCBOOK.HLP' update
- if $Updated = 'No'
- goto #Book_End
- register $Folder $Target+'\WIN95\NVCBOOK.HLP' $Icon_Book
- #Book_End
-
- #Blocker
- if $Inst_Blocker ! 'Yes'
- goto #Blocker_End
- set $Updated = 'No'
- copy $Source+'\WIN95\ISAMON32.VXD' $Target+'\WIN95\ISAMON32.VXD' update
- copy $Source+'\WIN95\ISAIPC32.DLL' $Target+'\WIN95\ISAIPC32.DLL' update
- copy $Source+'\WIN95\ISAREP32.DLL' $Target+'\WIN95\ISAREP32.DLL' update
- copy $Source+'\WIN95\ISAMON.INI' $Target+'\WIN95\ISAMON.INI' update
- copy $Source+'\WIN95\ISAMON.CFG' $Target+'\WIN95\ISAMON.CFG' update
- copy $Source+'\WIN95\NORMISA.EXE' $Target+'\WIN95\NORMISA.EXE' update
- copy $Source+'\WIN95\NVCSNMP.DLL' $Target+'\WIN95\NVCSNMP.DLL' update
- copy $Source+'\WIN95\RESDEV32.VXD' $Target+'\WIN95\RESDEV32.VXD' update
- if $Updated = 'No'
- goto #Blocker_End
- register $Folder $Target+'\WIN95\NORMISA.EXE' $Icon_Blocker
- if $Start_Blocker ! 'Yes'
- goto #Blocker_End
- register 'Startup' $Target+'\WIN95\NORMISA.EXE' $Icon_Blocker
- #Blocker_End
-
- #CatsClaw
- if $Inst_CatsClaw ! 'Yes'
- goto #CatsClaw_End
- set $Updated = 'No'
- copy $Source+'\WIN95\CLAW95.EXE' $Target+'\WIN95\CLAW95.EXE' update
- copy $Source+'\WIN95\CLAW95RC.DLL' $Target+'\WIN95\CLAW95RC.DLL' update
- copy $Source+'\WIN95\CLAW95.VXD' $Target+'\WIN95\CLAW95.VXD' update
- copy $Source+'\WIN95\CLAW95.HLP' $Target+'\WIN95\CLAW95.HLP' update
- copy $Source+'\WIN95\CLAW95.CNT' $Target+'\WIN95\CLAW95.CNT' update
- copy $Source+'\WIN95\NIPXLIB.DLL' $Target+'\WIN95\NIPXLIB.DLL' update
- copy $Source+'\WIN95\NVCSNMP.DLL' $Target+'\WIN95\NVCSNMP.DLL' update
- copy $Source+'\NVC32.CFG' $Target+'\NVC32.CFG' update
- if exist $Source+'\WIN95\CLAW95.REG'
- copy $Source+'\WIN95\CLAW95.REG' $Target+'\WIN95\CLAW95.REG' update
- if $Updated = 'No'
- goto #CatsClaw_Config
- unregister 'Startup' $Target+'\WIN95\CLAW95.EXE' $Icon_CatsClaw
- run $Target+'\WIN95\CLAW95.EXE' '/INSTALL' nowait
- #CatsClaw_Config
- if $Inst_CatsClaw_Config ! 'Yes'
- goto #CatsClaw_End
- set $Updated = 'No'
- copy $Source+'\WIN95\CLAW95CF.EXE' $Target+'\WIN95\CLAW95CF.EXE' update
- if $Updated = 'No'
- goto #CatsClaw_End
- register $Folder $Target+'\WIN95\CLAW95CF.EXE' $Icon_CatsClaw
- #CatsClaw_End
-
- #ReadMe
- if $Inst_ReadMe ! 'Yes'
- goto #ReadMe_End
- set $Updated = 'No'
- copy $Source+'\README.TXT' $Target+'\README.TXT' update
- if $Updated = 'No'
- goto #ReadMe_End
- register $Folder $Target+'\README.TXT' $Icon_ReadMe
- #ReadMe_End
-
- #InternetUpdate
- if $Inst_InternetUpdate ! 'Yes'
- goto #InternetUpdate_End
- set $Updated = 'No'
- copy $Source+'\WIN32\NUF_W32.DLL' $Target+'\WIN32\NUF_W32.DLL' update
- copy $Source+'\WIN32\NUPGRADE.EXE' $Target+'\WIN32\NUPGRADE.EXE' update
- if $Updated = 'No'
- goto #InternetUpdate_End
- register $Folder $Target+'\WIN32\NUPGRADE.EXE' $Icon_InternetUpdate
- if $Inst_UpdateAtStartup = 'Yes'
- register 'Startup' $Target+'\WIN32\NUPGRADE.EXE -hidden -wait:5' $Icon_InternetUpdate
- #InternetUpdate_End
-
- #UnTbav
- if $Inst_Untbav ! 'Yes'
- goto #UnTbav_End
- makedir $Target+'\uninst'
- set $Updated = 'No'
- copy $Source+'\uninst\untbav32.exe' $Target+'\uninst\untbav32.exe' update
- copy $Source+'\uninst\deltbdir.exe' $Target+'\uninst\deltbdir.exe' update
- copy $Source+'\uninst\nrreboot.exe' $Target+'\uninst\nrreboot.exe' update
- if $Updated = 'No'
- goto #UnTbav_End
- popmessage 'ThunderByte Anti Virus is removed, this takes some time.'
- run $Target+'\uninst\UNTBAV32.EXE' '-q -s -c -r'
- #UnTbav_End
-
- if $Deferred = 'Yes'
- popmessage 'You must restart the computer to complete the installation.'
- #End
-
- NXD END
-
-