I was working on the same thing this morning for
Norton Internet Security. The procedure should be similar for NAV
2005. Here's what worked for me:
First, I deleted my current installation of NIS
2005. After the deletion process is done, the following folders are left in C:\Program Files\Common Files\Symantec Shared\ (or wherever you've installed the program files):
CCPD-LC (contains symlcrst.dll)
VirusDefs (contains the latest virus defs downloaded and installed)
I then made a WinRar SFX archive (called NIS.exe) to extract these files back to their original positions. The advantage of including the VirusDefs is that when you run LiveUpdate, the virus definitions are current. Total size of the archive is about 4 mb, as long as you've cleaned out all but the most current virus defs - but don't delete the BinHub, Incoming, and TextHub folders or the two .dat files as they are important for later updating. Here's the comment from my archive:
;The comment below contains SFX script commands
Path=%programfiles%\Common Files\Symantec Shared
SavePath
Silent=2
Overwrite=1
Next, I created a registry file called NIS.reg, with the following text:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec]
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\CCPD-LC]
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\CCPD-LC\KStore]
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\CCPD-LC\KStore\00000083]
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\CCPD-LC\KStore\00000083\00000028]
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\CCPD-LC\KStore\00000083\00000028\000000d8]
"Key"="INSE-RTYO-URKE-YHER-E123-4567"
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\InstalledApps]
"AVENGEDEFS"="C:\\PROGRA~1\\COMMON~1\\SYMANT~1\\VIRUSD~1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs]
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedDefs\MicroDefs]
"LastBinUpdate"=hex:01,00,00,00
"LastTextUpdate"=hex:01,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\SharedUsage]
You probably don't need all this, but it's what is left after the original installation is deleted and the cleanup is complete. After all, by bypassing the activation, we're trying to fool the installer to think it's performing a reinstallation to the same machine which originally had the program, which, technically, you are doing if you reformat your drive and reinstall Windows and the programs.
I had previously created a WinRAR SFX archive of NIS
2005 (called simply enough NIS
2005.exe), which extrated the files to %systemdrive%\SFXTemp\NIS
2005\. Here's the text of the comment for that archive:
Path=%systemdrive%\SFXTemp\NIS2005\
SavePath
Silent=2
Overwrite=1
Title=Norton Internet Security 2005 Unattended Setup
I put NIS.reg, NIS.exe, and NIS
2005.exe all into a file called "NIS" in my install folder.
Now, here's my code for RunOnceEx.cmd:
REG ADD %KEY%\270 /VE /D "Norton Internet Security 2005" /f
REG ADD %KEY%\270 /V 1 /D "REGEDIT /S D:\Install\NIS\NIS.reg" /f
REG ADD %KEY%\270 /V 2 /D "D:\Install\NIS\NIS.exe" /f
REG ADD %KEY%\270 /V 3 /D "D:\Install\NIS\NIS2005.exe" /f
REG ADD %KEY%\270 /V 4 /D "%systemdrive%\SFXTemp\NIS2005\SYMSETUP.EXE /O REBOOT=ReallySuppress /QB" /f
(I install all my programs from a second partition on my hard drive which is not reformatted during Windows installation. If you use a CD, substitute "%cdrom%" for "D:\". )
First, the registry entry is run. Then, the NIS.exe file runs, which extracts the files to Symantec Shared, including the symlcrst.dll file to CCPD-LC. Next, NIS
2005 installation begins.
By putting the symlcrst.dll file in its expected location BEFORE running the installation program, the installation program automatically activates the program during the installation. I'd run into problems before trying to copy symlcrst.dll to CCPD-LC after installation was run, also. This setup works flawlessly for me.