1. Use the /norestart switch on the command line for XPsp2.exe along with /quiet or other options you may have chosen.
2. Now open notepad, and copy/paste what you need below. Save as sp2_fixes.reg :
****** start copy/paste below this line
Windows Registry Editor Version 5.00
;Disable Anti-virus Notifications
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"AntiVirusDisableNotify"=dword:00000001
;Disable Firewall Notifications
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"FirewallDisableNotify"=dword:00000001
;Disable Automatic Updates Notifications
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"UpdatesDisableNotify"=dword:00000001
;Override Antivirus - turns of sp2 firewall
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"AntiVirusOverride"=dword:00000001
;Override Windows Firewall - turns off sp2 firewall
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"FirewallOverride"=dword:00000001
;Disable Security Center - completely disables it
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc]
"Start"=dword:00000004
********* end copy/paste above this line
3. Then start the upgrade with a .cmd file
rem Do the sp2 upgrade
path:xpsp2.exe /norestart /quiet && anything else
rem Do the fixes
regedit /s path: sp2_fixes.reg
4. Or, you can add to your netw.inf file, as it does not really care what registry entries are added. For a non-domain use:
Any of the entries above can be added to this section:
[ICF.AddReg.StandardProfile]
You just have to translate the regedit form. For example, above I have:
;Disable Anti-virus Notifications
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center]
"AntiVirusDisableNotify"=dword:00000001
In the netw.inf format this same registry entry would become:
;Disable Anti-virus Notifications
HKLM,"SOFTWARE\Microsoft\Security Center","AntiVirusDisableNotify",0x00000001,0
I will leave it to you to translate what you may wish to have as settings.