remove-nbt-reg-entry-on-XP-20040224
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 24 Feb 2004 20:23:42 +0000 (20:23 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 24 Feb 2004 20:23:42 +0000 (20:23 +0000)
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

index c429f41..e2b3f7d 100644 (file)
@@ -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"