home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Antiviry
/
normanav.wnt
/
DATA.Z
/
NVCNT.NXD
< prev
next >
Wrap
Text File
|
1999-06-17
|
12KB
|
279 lines
;NVCNT.NXD v4.70
NXD BEGIN
set $Source = '{Source}'
set $Target = '{Target}'
set $Folder = '{Folder}'
set $Inst_Nvc_Win32 = '{Inst_Nvc_Win32}'
set $Inst_Nvc_ShellExt = $Inst_Nvc_Win32
set $Inst_Book = '{Inst_Book}'
set $Inst_NtService = '{Inst_NtService}'
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_Win32}'
set $Icon_Book = '{Icon_Book}'
set $Icon_NtService = '{Icon_NtService}'
set $Icon_ReadMe = '{Icon_ReadMe}'
set $Icon_InternetUpdate = '{Icon_InternetUpdate}'
set $Start_NtService = 'Yes'
set $Start_Nvc_Win32 = 'No'
#CheckOs
if $System ! 'WINNT'
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+'\WIN32'
#SetupIni
setini $Target+'\SETUP.INI' 'NVC' 'Path' $Target
setini $Target+'\SETUP.INI' 'NVC|WIN32' 'Path' $Target
setini $Target+'\SETUP.INI' 'NVC|WIN32' 'Folder' $Folder
setini $Target+'\SETUP.INI' 'NVC|WIN32' 'Version' '4.70'
#Nse
if $Inst_Nse ! 'Yes'
goto #Nse_End
getregistry $NseTarget 'HKEY_LOCAL_MACHINE\Software\Norman Data Defense Systems' 'NsePath'
if $Error = 'FALSE'
goto #Nse_Engine
set $NseTarget = $Target+'\NSE'
setregistry 'HKEY_LOCAL_MACHINE\Software\Norman Data Defense Systems' 'NsePath' $NseTarget
if $Error = 'FALSE'
goto #Nse_Engine
popmessage 'The installation of NVC version 4.70 must be done by a user with administrator rights.'
goto #end
#Nse_Engine
set $NSEupdate = 'No'
makedir $NseTarget
copy $Source+'\NSE\Ndiskio.SYS' $NseTarget+'\Ndiskio.SYS' update
copy $Source+'\NSE\NSE32.EXE' $NseTarget+'\NSE32.EXE' update
copy $Source+'\WIN32\NREN.EXE' $Target+'\WIN32\NREN.EXE' update
run $NseTarget+'\NSE32.EXE' '/INSTALL' nowait
run $Target+'\WIN32\NREN.EXE' '/INSTALL' nowait
delete $NseTarget+'\NSE_W32.D@L'
if update $Source+'\NSE\NSE_W32.DLL' $NseTarget+'\NSE_W32.DLL'
goto #Nse_Dll
goto #Nse_Def
#Nse_Dll
rename $NseTarget+'\NSE_W32.DLL' $NseTarget+'\NSE_W32.D@L'
copy $Source+'\NSE\NSE_W32.DLL' $NseTarget+'\NSE_W32.DLL' update
set $NSEupdate = 'Yes'
#Nse_Def
;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
set $NSEupdate = $Updated
#Nse_End
#Nvc_Win32
if $Inst_Nvc_Win32 ! 'Yes'
goto #Nvc_Win32_End
set $Updated = 'No'
copy $Source+'\WIN32\NVCNT.EXE' $Target+'\WIN32\NVCNT.EXE' update
copy $Source+'\WIN32\NIPXLIB.DLL' $Target+'\WIN32\NIPXLIB.DLL' update
copy $Source+'\WIN32\NVCMSG.DLL' $Target+'\WIN32\NVCMSG.DLL' update
copy $Source+'\WIN32\NVCNT.HLP' $Target+'\WIN32\NVCNT.HLP' update
copy $Source+'\WIN32\NVCNT.CNT' $Target+'\WIN32\NVCNT.CNT' 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+'\NVC32.CFG' $Target+'\NVC32.CFG' update
if !exist $Winsysdir+'\CTL3D32.DLL'
copy $Source+'\WIN32\CTL3D32.DLL' $Winsysdir+'\CTL3D32.DLL' update
if $Updated = 'No'
goto #Scheduling
register $Folder $Target+'\WIN32\NVCNT.EXE' $Icon_Nvc common
if $Start_Nvc_Win32 ! 'Yes'
goto #Scheduling
register 'Startup' $Target+'\WIN32\NVCNT.EXE' $Icon_Nvc common
#Scheduling
set $Updated = 'No'
if exist $Source+'\WIN32\NVCNT.REG'
copy $Source+'\WIN32\NVCNT.REG' $Target+'\WIN32\NVCNT.REG' update
if $Updated = 'No'
goto #Nvc_Win32_End
run $Windir+'\REGEDIT.EXE' '/s' $Target+'\WIN32\NVCNT.REG' nowait
#Nvc_Win32_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+'\WIN32\NVCBOOK.HLP' $Target+'\WIN32\NVCBOOK.HLP' update
if $Updated = 'No'
goto #Book_End
register $Folder $Target+'\WIN32\NVCBOOK.HLP' $Icon_Book common
#Book_End
#NtService
if exist $Source+'\WIN32\NVCSRV.REG'
copy $Source+'\WIN32\NVCSRV.REG' $Target+'\WIN32\NVCSRV.REG' update
delete $Target+'\WIN32\*.S@S'
delete $Target+'\WIN32\*.E@E'
delete $Target+'\WIN32\*.D@L'
if $Inst_NtService ! 'Yes'
goto #NtService_End
getregistry $Data 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NVCSRV' 'DisplayName'
if $Error = 'FALSE'
goto #Test_NtService
getregistry $Data 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog' 'Group'
if $Error = 'TRUE'
goto #NtService_End
setregistry 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog' 'Group' $Data
if $Error = 'FALSE'
goto #Test_NtService
popmessage 'The installation of NVC version 4.70 must be done by a user with administrator rights.'
goto #End
#Test_NtService
copy $Source+'\NVC32.CFG' $Target+'\NVC32.CFG' update
copy $Source+'\OFFICES.TXT' $Target+'\OFFICES.TXT' update
copy $Source+'\WIN32\UPDNVC.BAT' $Target+'\WIN32\UPDNVC.BAT' update
copy $Source+'\WIN32\NCFG.EXE' $Target+'\WIN32\NCFG.EXE' update
copy $Source+'\WIN32\NCFGW.EXE' $Target+'\WIN32\NCFGW.EXE' update
copy $Source+'\WIN32\NCFGW.HLP' $Target+'\WIN32\NCFGW.HLP' update
copy $Source+'\WIN32\NCFGW.CNT' $Target+'\WIN32\NCFGW.CNT' update
copy $Source+'\WIN32\NVCPOPUP.HLP' $Target+'\WIN32\NVCPOPUP.HLP' update
if update $Source+'\WIN32\NVCSRV.EXE' $Target+'\WIN32\NVCSRV.EXE'
goto #Do_NtService
if update $Source+'\WIN32\NVCPOPUP.EXE' $Target+'\WIN32\NVCPOPUP.EXE'
goto #Do_NtService
if update $Source+'\WIN32\NVCEVLOG.DLL' $Target+'\WIN32\NVCEVLOG.DLL'
goto #Do_NtService
if update $Source+'\WIN32\NVCSNMP.DLL' $Target+'\WIN32\NVCSNMP.DLL'
goto #Do_NtService
if update $Source+'\WIN32\NRMNTVER.DLL' $Target+'\WIN32\NRMNTVER.DLL'
goto #Do_NtService
if update $Source+'\WIN32\NIPXLIB.DLL' $Target+'\WIN32\NIPXLIB.DLL'
goto #Do_NtService
if update $Source+'\WIN32\NVCFLT3.SYS' $Target+'\WIN32\NVCFLT3.SYS'
goto #Do_NtService
if update $Source+'\WIN32\NVCREC3.SYS' $Target+'\WIN32\NVCREC3.SYS'
goto #Do_NtService
if update $Source+'\WIN32\NVCFL3.SYS' $Target+'\WIN32\NVCFL3.SYS'
goto #Do_NtService
if update $Source+'\WIN32\NVCFLT4.SYS' $Target+'\WIN32\NVCFLT4.SYS'
goto #Do_NtService
if update $Source+'\WIN32\NVCREC4.SYS' $Target+'\WIN32\NVCREC4.SYS'
goto #Do_NtService
if update $Source+'\WIN32\NVCFL4.SYS' $Target+'\WIN32\NVCFL4.SYS'
goto #Do_NtService
if $NSEupdate ! 'Yes'
goto #NtService_End
run $Target+'\WIN32\NCFG.EXE' '-stop'
run $Target+'\WIN32\NCFG.EXE' '-start'
goto #NtService_End
#Do_NtService
delete $Target+'\WIN32\NVCDRV.EXE'
run $Target+'\WIN32\NCFG.EXE' '-stop'
rename $Target+'\WIN32\NVCSRV.EXE' $Target+'\WIN32\NVCSRV.E@E'
copy $Source+'\WIN32\NVCSRV.EXE' $Target+'\WIN32\NVCSRV.EXE' update
rename $Target+'\WIN32\NVCPOPUP.EXE' $Target+'\WIN32\NVCPOPUP.E@E'
copy $Source+'\WIN32\NVCPOPUP.EXE' $Target+'\WIN32\NVCPOPUP.EXE' update
rename $Target+'\WIN32\NVCEVLOG.DLL' $Target+'\WIN32\NVCEVLOG.D@L'
copy $Source+'\WIN32\NVCEVLOG.DLL' $Target+'\WIN32\NVCEVLOG.DLL' update
rename $Target+'\WIN32\NVCSNMP.DLL' $Target+'\WIN32\NVCSNMP.D@L'
copy $Source+'\WIN32\NVCSNMP.DLL' $Target+'\WIN32\NVCSNMP.DLL' update
rename $Target+'\WIN32\NRMNTVER.DLL' $Target+'\WIN32\NRMNTVER.D@L'
copy $Source+'\WIN32\NRMNTVER.DLL' $Target+'\WIN32\NRMNTVER.DLL' update
rename $Target+'\WIN32\NIPXLIB.DLL' $Target+'\WIN32\NIPXLIB.D@L'
copy $Source+'\WIN32\NIPXLIB.DLL' $Target+'\WIN32\NIPXLIB.DLL' update
rename $Target+'\WIN32\NVCFLT3.SYS' $Target+'\WIN32\NVCFLT3.S@S'
copy $Source+'\WIN32\NVCFLT3.SYS' $Target+'\WIN32\NVCFLT3.SYS' update
rename $Target+'\WIN32\NVCREC3.SYS' $Target+'\WIN32\NVCREC3.S@S'
copy $Source+'\WIN32\NVCREC3.SYS' $Target+'\WIN32\NVCREC3.SYS' update
rename $Target+'\WIN32\NVCFL3.SYS' $Target+'\WIN32\NVCFL3.S@S'
copy $Source+'\WIN32\NVCFL3.SYS' $Target+'\WIN32\NVCFL3.SYS' update
rename $Target+'\WIN32\NVCFLT4.SYS' $Target+'\WIN32\NVCFLT4.S@S'
copy $Source+'\WIN32\NVCFLT4.SYS' $Target+'\WIN32\NVCFLT4.SYS' update
rename $Target+'\WIN32\NVCREC4.SYS' $Target+'\WIN32\NVCREC4.S@S'
copy $Source+'\WIN32\NVCREC4.SYS' $Target+'\WIN32\NVCREC4.SYS' update
rename $Target+'\WIN32\NVCFL4.SYS' $Target+'\WIN32\NVCFL4.S@S'
copy $Source+'\WIN32\NVCFL4.SYS' $Target+'\WIN32\NVCFL4.SYS' update
set $Deferred = 'Yes'
run $Target+'\WIN32\NVCSRV.EXE' '-install'
register $Folder $Target+'\WIN32\NCFGW.EXE' $Icon_NtService common
#NtService_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 common
#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 of Norman Virus Control.'
#End
NXD END