Skip to content

Commit 3c18cae

Browse files
committed
Adding changes to copy the content of plugin_modules folder and ignore the shared and example-pn folders.
1 parent 7390255 commit 3c18cae

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

eFormAPI/Installation/CustomActions/CustomAction.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public static ActionResult InstallCA(Session session)
190190
if (session.CustomActionData["INSTMODE"] != "Install")
191191
return ActionResult.Success;
192192

193-
ResetProgressBar(session, 10);
193+
ResetProgressBar(session, 11);
194194

195195
var configurationExists = session.CustomActionData["CONFIGURATIONEXISTS"] == "1";
196196
var useExistingConfiguration = session.CustomActionData["USEEXISTINGCONFIGURATION"] == "1";
@@ -281,7 +281,10 @@ private static void BackupPluginSettings(Session session, string installFolder)
281281
foreach (string dir in dirs)
282282
{
283283
string folder = dir.Split(Path.DirectorySeparatorChar).Last();
284-
DirectoryCopy(dir, Path.Combine(tmpConfigs, "plugin_modules", folder), true);
284+
if (folder != "example-pn" && folder != "shared")
285+
{
286+
DirectoryCopy(dir, Path.Combine(tmpConfigs, "plugin_modules", folder), true);
287+
}
285288
}
286289

287290
// navigation.component.ts
@@ -301,7 +304,7 @@ private static void RestorePluginSettings(Session session, string installFolder)
301304
File.Copy(Path.Combine(tmpConfigs, "plugins.routing.ts"), dst, true);
302305

303306

304-
string[] dirs = Directory.GetDirectories(tmpConfigs);
307+
string[] dirs = Directory.GetDirectories(Path.Combine(tmpConfigs, "plugin_modules"));
305308

306309
foreach (string dir in dirs)
307310
{

0 commit comments

Comments
 (0)