summaryrefslogtreecommitdiff
path: root/src/mongo/installer
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2019-02-13 16:35:49 -0500
committerHenrik Edin <henrik.edin@mongodb.com>2019-02-25 10:09:44 -0500
commit17ba3d195909022f8de420b09aeb7b18018b4d72 (patch)
tree8ac1f8fa8537e51b4b70007c39c357ac71d0ae28 /src/mongo/installer
parent9140b9710eff2c8d1506373efc10ae53279625fa (diff)
downloadmongo-17ba3d195909022f8de420b09aeb7b18018b4d72.tar.gz
SERVER-39014 Handle running the MSI installer when already installed.
Diffstat (limited to 'src/mongo/installer')
-rw-r--r--src/mongo/installer/msi/ca/CustomAction.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/installer/msi/ca/CustomAction.cpp b/src/mongo/installer/msi/ca/CustomAction.cpp
index 18dbe28b0f1..df66047da1b 100644
--- a/src/mongo/installer/msi/ca/CustomAction.cpp
+++ b/src/mongo/installer/msi/ca/CustomAction.cpp
@@ -102,10 +102,11 @@ std::string do_replace(MSIHANDLE hInstall,
if (pos == std::string::npos) {
LogMessage(hInstall,
- INSTALLMESSAGE_WARNING,
+ INSTALLMESSAGE_INFO,
"Failed to find '%s' in '%s'",
original.c_str(),
source.c_str());
+ return source;
}
return source.replace(pos, original.length(), replacement);