Skip to content

Instantly share code, notes, and snippets.

@hishaamn
Created May 26, 2024 16:51
Show Gist options
  • Save hishaamn/aed282a05e4d30782edbcf58c3700338 to your computer and use it in GitHub Desktop.
Save hishaamn/aed282a05e4d30782edbcf58c3700338 to your computer and use it in GitHub Desktop.
public class Program
{
public static void Main(string[] args)
{
var filePath = $@"Update filepath of the Package.zip";
ISource<PackageEntry> source = new Sitecore.Install.Zip.PackageReader(filePath);
var packageSinkHelper = new PackageSinkManager();
if (!packageSinkHelper.IsInitialized)
{
packageSinkHelper.Initialize(Installer.CreatePreviewContext());
}
new EntrySorter(source).Populate(packageSinkHelper);
Console.ReadKey();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment