service-dependencies-20040315
authorJeffrey Altman <jaltman@mit.edu>
Tue, 16 Mar 2004 04:40:10 +0000 (04:40 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 16 Mar 2004 04:40:10 +0000 (04:40 +0000)
Fix the location of the registy values to be used for specifying
the service dependencies of the AFS Network Provider.  AFS is
dependent on PNP_TDI (tcpip, netbt, etc); RpcSs; and NetBios.

Upgrades were failing to read the Cell name from the proper location
so that it could be restored.

src/WINNT/install/NSIS/OpenAFS.nsi

index 95c5139..a1de9c8 100644 (file)
@@ -615,7 +615,7 @@ Section "AFS Client" secClient
   ;IMPORTANT!  If we are not refreshing the config files, do NOT remove the service
   ;Don't re-install because it must be present or we wouldn't have passed the Reg check
  
-  ReadRegStr $R2 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon" "Cell"
+  ReadRegStr $R2 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "Cell"
   StrCmp $R2 "" +1 skipremove
   nsExec::Exec '$INSTDIR\Common\Service.exe u TransarcAFSDaemon'
   nsExec::Exec '$INSTDIR\Common\Service.exe TransarcAFSDaemon "$INSTDIR\Client\Program\afsd_service.exe" "OpenAFS Client Service"'
@@ -657,7 +657,7 @@ skipremove:
   WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "NoFindLanaByName" 1
 !ENDIF
 
-  strcpy $REG_SUB_KEY "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" 
+  strcpy $REG_SUB_KEY "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon" 
   strcpy $REG_VALUE   "DependOnGroup" 
   strcpy $REG_DATA_1  "PNP_TDI"
   strcpy $REG_DATA_2  ""
@@ -667,7 +667,7 @@ skipremove:
   strcpy $REG_VALUE   "DependOnService" 
   strcpy $REG_DATA_1  "Tcpip"
   strcpy $REG_DATA_2  "NETBIOS"
-  strcpy $REG_DATA_3  "NetBT"
+  strcpy $REG_DATA_3  "RpcSs"
   Call RegWriteMultiStr
 
   SetRebootFlag true