From: Benjamin Kaduk Date: Mon, 30 Jul 2012 20:50:55 +0000 (-0400) Subject: Rename old krb5.ini files away X-Git-Tag: kfw-4.0-final~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=774056f31fd195f799ddfab7920eeee5660d5e9b;p=thirdparty%2Fkrb5.git 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 --- 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