Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Validates the application’s native tree and atomically replaces it when its exact contents differ.

API: engine
Project: Inno.Build.Toolchains

public static System.Threading.Tasks.ValueTask Inno.Build.Toolchains.ProductNativeDeployment.InstallAsync(System.Collections.Generic.IReadOnlyList<Inno.Build.Toolchains.NativeBuildProduct> products, Inno.Build.Toolchains.ProductNativeBuildPlan plan, string applicationDirectory, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

Parameter products: Validated runtime and optional authoring products returned by the declared product plan. All products must use the same target; each component can appear once.

Parameter cancellationToken: Cancels ownership acquisition or staging before the atomic installation starts.

Parameter plan: The explicit component closure and deployment mapping used to produce these products.

Parameter applicationDirectory: The managed output directory receiving the complete native tree.

Completion after the complete native tree has been validated under exclusive publication ownership. Identical deployments retain their files, including libraries loaded by a running application.

Exception T:System.ArgumentException: The product closure is empty, contains duplicate components or mixes targets.

Exception T:System.IO.IOException: A product cannot be validated, copied or installed; the prior native tree remains available.

Exception T:System.OperationCanceledException: The operation was canceled before installation; the previous native tree is unchanged.