remove addon project and use instancer

This commit is contained in:
2023-11-21 09:11:56 +01:00
parent 5d031f8ead
commit 9598aa147e
6 changed files with 4 additions and 39 deletions

View File

@@ -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);
}
}
}

View File

@@ -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();

View File

@@ -49,7 +49,6 @@
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
<PackageReference Include="Pilz.IO" Version="2.0.0" />
<PackageReference Include="Pilz.Plugins" Version="2.0.0" />
<PackageReference Include="Pilz.Plugins.Advanced" Version="2.0.0" />
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
@@ -148,7 +147,6 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Pilz.Updating.Administration\Pilz.Updating.Administration.csproj" />
<ProjectReference Include="..\Pilz.Updating.UpdateInstaller.AddOns\Pilz.Updating.UpdateInstaller.AddOns.csproj" />
<ProjectReference Include="..\Pilz.Updating.UpdateInstaller.Lib\Pilz.Updating.UpdateInstaller.Lib.csproj" />
<ProjectReference Include="..\Pilz.Updating\Pilz.Updating.csproj" />
</ItemGroup>