From 2b0462c68d9a319d56743a67d850bd5218d34840 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 20 Mar 2004 01:03:08 +0000 Subject: [PATCH] use-dns-install-fix-20040319 allow use of dns to be configurable --- src/WINNT/install/NSIS/OpenAFS.nsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/WINNT/install/NSIS/OpenAFS.nsi b/src/WINNT/install/NSIS/OpenAFS.nsi index f91cfa1f30..9497359a3e 100644 --- a/src/WINNT/install/NSIS/OpenAFS.nsi +++ b/src/WINNT/install/NSIS/OpenAFS.nsi @@ -649,7 +649,8 @@ skipremove: WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "SecurityLevel" $R0 ReadINIStr $R0 $1 "Field 5" "State" WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "FreelanceClient" $R0 - WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "UseDNS" 1 + ReadINIStr $R0 $1 "Field 11" "State" + WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "UseDNS" $R0 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "NetbiosName" "AFS" WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "MountRoot" "/afs" WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "RxMaxMTU" 1260 @@ -2008,8 +2009,11 @@ StrCmp $R0 "1" done ReadINIStr $R0 $0 "Field 3" "State" StrCmp $R0 "1" UsePackaged +ReadINIStr $R0 $0 "Field 6" "State" +StrCmp $R0 "1" CheckOther + ; If none of these, grab file from other location -goto CheckOther +goto UsePackaged DoDownload: ReadINIStr $R0 $0 "Field 5" "State" @@ -2026,7 +2030,7 @@ UsePackaged: CheckOther: ReadINIStr $R0 $0 "Field 7" "State" - StrCmp $R0 "1" +1 done + StrCmp $R0 "" done CopyFiles $R0 "$WINDIR\afsdcell.ini" done: