From 774056f31fd195f799ddfab7920eeee5660d5e9b Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Mon, 30 Jul 2012 16:50:55 -0400 Subject: [PATCH] Rename old krb5.ini files away We want to always use a new krb5.ini (and our search order guarantees that we will), but users might be confused if there is still a file named krb5.ini in the old location which is now non-functional. However, it is rude to unconditionally delete the old file which may potentially be the only copy a user has of their local changes. Instead, rename the old file to a non-functioning name that indicates it is no longer being used, so that it may be consulted if needed. Only attempt the rename if we found an existing krb5.ini, and ignore errors since this is not a critical part of the installation. (cherry picked from commit 02499b9c31124d66cdc5fd5d650e38f8c408a984) ticket: 7328 status: resolved --- src/windows/installer/wix/Makefile | 2 +- src/windows/installer/wix/kfw.wxs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/windows/installer/wix/kfw.wxs diff --git a/src/windows/installer/wix/Makefile b/src/windows/installer/wix/Makefile index 7b66b1211c..3c2bfd691f 100644 --- a/src/windows/installer/wix/Makefile +++ b/src/windows/installer/wix/Makefile @@ -45,7 +45,7 @@ $(OBJFILE): kfw.wxs $(WIXINCLUDES) $(MSIFILE): $(OBJFILE) $(CUSTOMDLL) $(LIGHT) -out $@ $(OBJFILE) \ - -loc lang\strings_$(LANG).wxl + -loc lang\strings_$(LANG).wxl -ext WixUtilExtension.dll $(CUSTOMDLL): custom\custom.cpp $(CD) custom diff --git a/src/windows/installer/wix/kfw.wxs b/src/windows/installer/wix/kfw.wxs old mode 100644 new mode 100755 index c0394ee0ce..74ef8ac0cf --- a/src/windows/installer/wix/kfw.wxs +++ b/src/windows/installer/wix/kfw.wxs @@ -146,6 +146,18 @@ Return="ignore" Execute="deferred" /> + + + (Not Installed) And (UPGRADEPISMERE Or UPGRADEKFW) + + SYSTEMKRB5INI <> "" UILevel = 0 And (Not Installed) And (CCP_Success <> 1) UPGRADENSIS <> "" And UILevel >= 4 -- 2.47.2