remove addon project and use instancer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user