SquirrelWindowsModule 1.0.7

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package SquirrelWindowsModule --version 1.0.7
NuGet\Install-Package SquirrelWindowsModule -Version 1.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SquirrelWindowsModule" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SquirrelWindowsModule --version 1.0.7
#r "nuget: SquirrelWindowsModule, 1.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SquirrelWindowsModule as a Cake Addin
#addin nuget:?package=SquirrelWindowsModule&version=1.0.7

// Install SquirrelWindowsModule as a Cake Tool
#tool nuget:?package=SquirrelWindowsModule&version=1.0.7

Squirrel Windows Module

An Autofac module that updates the application using the Squirrel.Windows package.

Usage

Register the module in the Container.

var builder = new ContainerBuilder();
builder.RegisterModule(new SquirrelWindowsModule.SquirrelWindowsModule() {
	Assembly = Assembly.GetEntryAssembly() ?? Assembly.GetExecutingAssembly(),
	AssemblyLocation = this.Assembly.Location,
	CreateAppRootShortcut = false,
	CreateDesktopShortcut = true,
	CreateStartMenuShortcut = true,
});

Set the update path or url via this static variable:

SquirrelWindowsModule.SquirrelWindowsModuleConfiguration.UpdateUrl = @"Path\To\Update\Folder";

If implementing the SquirrelWindowsModule.IServices.IRegisterUpdateAppEventsService, add the following line in the AssemblyInfo.cs file:

[assembly: AssemblyMetadata("SquirrelAwareVersion", "1")]

Implement the services SquirrelWindowsModule.IServices.IRegisterUpdateAppEventsService and SquirrelWindowsModule.IServices.IUpdateAppService.

using SquirrelWindowsModule.IServices;
// other imports
		
namespace SampleNamespace
{
	public class SampleClass
	{
		private readonly IRegisterUpdateAppEventsService _RegisterUpdateAppEventsService;
		private readonly IUpdateAppService _UpdateAppService;
				
		public SampleClass(IRegisterUpdateAppEventsService registerUpdateAppEventsService, IUpdateAppService updateAppService) {
			this._RegisterUpdateAppEventsService= registerUpdateAppEventsService;
			this._UpdateAppService = updateAppService;
			// other implementations
		}
				
		public void SampleMethod() {
			this._RegisterUpdateAppEventsService.Register(null, null, m => Debug.WriteLine(m));
			this._UpdateAppService.UpdateAsync(true, m => Debug.WriteLine(m));
		}
	}
}
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated