Skip to content

Commit 7523ac5

Browse files
authored
Merge pull request #32 from cazac9/master
avoid of rewriting web.config
2 parents 19ceb9b + 9643d50 commit 7523ac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eFormAPI/Installation/CustomActions/CustomAction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ public static ActionResult UpdateCA(Session session)
201201
RunProcess(@"C:\Program Files\nodejs\node.exe", "svc.js uninstall", uiIisDir);
202202
IncrementProgressBar(session);
203203

204-
DeleteDirectory(webApiLocation);
205-
DeleteDirectory(uiIisDir);
206-
207204
session.Log("Set proper names to folders");
208205

209206
DirectoryCopy(Path.Combine(session.CustomActionData["INSTALLFOLDER"], "eform-api"), webApiLocation);
@@ -546,6 +543,9 @@ private static void DirectoryCopy(string sourceDirName, string destDirName)
546543
foreach (FileInfo file in files)
547544
{
548545
string temppath = Path.Combine(destDirName, file.Name);
546+
if (file.Name.Equals("Web.config", StringComparison.InvariantCultureIgnoreCase) && File.Exists(temppath))
547+
continue;
548+
549549
file.CopyTo(temppath, true);
550550
}
551551

0 commit comments

Comments
 (0)