diff --git a/Pilz.Updating.UpdateInstaller.AddOns/Pilz.Updating.UpdateInstaller.AddOns.csproj b/Pilz.Updating.UpdateInstaller.AddOns/Pilz.Updating.UpdateInstaller.AddOns.csproj deleted file mode 100644 index d85da20..0000000 --- a/Pilz.Updating.UpdateInstaller.AddOns/Pilz.Updating.UpdateInstaller.AddOns.csproj +++ /dev/null @@ -1,11 +0,0 @@ - - - - net6.0;net8.0 - enable - enable - 1.0.0 - True - - - diff --git a/Pilz.Updating.UpdateInstaller.AddOns/UpdateInstallerFunctionTypes.cs b/Pilz.Updating.UpdateInstaller.AddOns/UpdateInstallerFunctionTypes.cs deleted file mode 100644 index 44604ee..0000000 --- a/Pilz.Updating.UpdateInstaller.AddOns/UpdateInstallerFunctionTypes.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace Pilz.Updating.UpdateInstaller.AddOns -{ - public static class UpdateInstallerFunctionTypes - { - /// - /// The function will be executed when a instance of UpdateInstaller has been created. - /// Parameter:
- /// - /// Result type:
- /// - ///
- public const string OnInstancingUpdateInstaller = "pilz.updating.updateinstaller.oninstancingupdateinstaller"; - } -} diff --git a/Pilz.Updating.UpdateInstaller/General.cs b/Pilz.Updating.UpdateInstaller/General.cs index bf29956..5aa9b7f 100644 --- a/Pilz.Updating.UpdateInstaller/General.cs +++ b/Pilz.Updating.UpdateInstaller/General.cs @@ -20,7 +20,7 @@ namespace Pilz.Updating.UpdateInstaller } } - public static void LoadAddons(bool isAfterCopyFiles, string folderPath) + public static void LoadAddons(Lib.UpdateInstaller installer) { var pluginsPath = Path.Combine(MyAppPath, "AddOns"); if (Directory.Exists(pluginsPath)) @@ -29,7 +29,7 @@ namespace Pilz.Updating.UpdateInstaller { var pluginPath = Path.Combine(subdir, Path.GetFileName(subdir) + ".dll"); if (File.Exists(pluginPath)) - PluginManager.Instance.LoadPlugin(pluginPath); + PluginManager.Instance.LoadPlugin(pluginPath, installer); } } } diff --git a/Pilz.Updating.UpdateInstaller/Main.cs b/Pilz.Updating.UpdateInstaller/Main.cs index fb27f92..e1e475e 100644 --- a/Pilz.Updating.UpdateInstaller/Main.cs +++ b/Pilz.Updating.UpdateInstaller/Main.cs @@ -7,8 +7,6 @@ using System.Windows.Forms; using Telerik.WinControls; using Telerik.WinControls.Themes; using Pilz.Updating.UpdateInstaller.Lib; -using Pilz.Plugins.Advanced; -using Pilz.Updating.UpdateInstaller.AddOns; namespace Pilz.Updating.UpdateInstaller { @@ -29,7 +27,7 @@ namespace Pilz.Updating.UpdateInstaller { // Load config installer = new Lib.UpdateInstaller(UpdateInstallerConfig.Parse(args[0])); - PluginFunctionController.Instance.ExecuteAll(UpdateInstallerFunctionTypes.OnInstancingUpdateInstaller); + General.LoadAddons(installer); // Init Form InitializeComponent(); diff --git a/Pilz.Updating.UpdateInstaller/Pilz.Updating.UpdateInstaller.csproj b/Pilz.Updating.UpdateInstaller/Pilz.Updating.UpdateInstaller.csproj index 9d2c3b2..76e524c 100644 --- a/Pilz.Updating.UpdateInstaller/Pilz.Updating.UpdateInstaller.csproj +++ b/Pilz.Updating.UpdateInstaller/Pilz.Updating.UpdateInstaller.csproj @@ -49,7 +49,6 @@ - @@ -148,7 +147,6 @@ - diff --git a/Pilz.Updating.sln b/Pilz.Updating.sln index 853998f..8e99edf 100644 --- a/Pilz.Updating.sln +++ b/Pilz.Updating.sln @@ -17,9 +17,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pilz.Updating.Client.GUI", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pilz.Updating", "Pilz.Updating\Pilz.Updating.csproj", "{CFC81C75-299C-4DE4-9F19-8E061972E271}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pilz.Updating.UpdateInstaller.Lib", "Pilz.Updating.UpdateInstaller.Lib\Pilz.Updating.UpdateInstaller.Lib.csproj", "{F05AAEA2-386F-4307-AE5E-6831F4EA2B66}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pilz.Updating.UpdateInstaller.AddOns", "Pilz.Updating.UpdateInstaller.AddOns\Pilz.Updating.UpdateInstaller.AddOns.csproj", "{B44AB62C-B179-45B8-B7E6-C822F432CC20}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Pilz.Updating.UpdateInstaller.Lib", "Pilz.Updating.UpdateInstaller.Lib\Pilz.Updating.UpdateInstaller.Lib.csproj", "{F05AAEA2-386F-4307-AE5E-6831F4EA2B66}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -59,10 +57,6 @@ Global {F05AAEA2-386F-4307-AE5E-6831F4EA2B66}.Debug|Any CPU.Build.0 = Debug|Any CPU {F05AAEA2-386F-4307-AE5E-6831F4EA2B66}.Release|Any CPU.ActiveCfg = Release|Any CPU {F05AAEA2-386F-4307-AE5E-6831F4EA2B66}.Release|Any CPU.Build.0 = Release|Any CPU - {B44AB62C-B179-45B8-B7E6-C822F432CC20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B44AB62C-B179-45B8-B7E6-C822F432CC20}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B44AB62C-B179-45B8-B7E6-C822F432CC20}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B44AB62C-B179-45B8-B7E6-C822F432CC20}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE