From be6c29629b697077cdbeb979e9a8e8b149726267 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 24 Feb 2004 20:23:42 +0000 Subject: [PATCH] remove-nbt-reg-entry-on-XP-20040224 In discussions with Andrei Keis at Morgan Stanley it has become clear that the NBT registry parameter which disables the use of port 445 should only be used on Windows 2000. --- src/WINNT/install/NSIS/OpenAFS.nsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/WINNT/install/NSIS/OpenAFS.nsi b/src/WINNT/install/NSIS/OpenAFS.nsi index c429f4199..e2b3f7d15 100644 --- a/src/WINNT/install/NSIS/OpenAFS.nsi +++ b/src/WINNT/install/NSIS/OpenAFS.nsi @@ -593,8 +593,12 @@ Section "AFS Client" secClient DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "Debug" DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "Debug" !endif - ; Set network settings - WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\NetBT\Parameters" "SmbDeviceEnabled" 0 + + ; On Windows 2000 work around KB301673. This is fixed in Windows XP and 2003 + Call GetWindowsVersion + Pop $R1 + StrCmp $R1 "2000" +1 +2 + WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\NetBT\Parameters" "SmbDeviceEnabled" 0 ;Write start menu entries CreateDirectory "$SMPROGRAMS\OpenAFS\Client" -- 2.39.5