I'm trying to develop a small utility that installs an uploaded Sitecore package.
This tool should only install using the Merge-Append
option.
This article uses Overwrite
.
Could you please help me understand what the first argument is for, in the BehaviourOptions
method.
I want unavailable items to be created & existing items to be merged by adding a new version (Merge-Append
).
For that, will this be the right code.
Sitecore.Install.Items.IItemInstallerEvents events =
new Sitecore.Install.Items.DefaultItemInstallerEvents(
new Sitecore.Install.Utils.BehaviourOptions(Sitecore.Install.Utils.InstallMode.Merge,
Sitecore.Install.Utils.MergeMode.Append));