Perquisites

Provision Windows Server 2019/16 with IIS 10 and SQL Server 2019

Download

Download and install Redis 3.05+: https://github.com/microsoftarchive/redis/releases/tag/win-3.0.504

Download ind install Windows Server hosting .Net Core 3.1.6: https://dotnet.microsoft.com/download/dotnet/3.1

Download MSBuild Microsoft Visual Studio Web targets: https://github.com/pdonald/nuget-webtargets

Download Sitecore PowerShell Extensions and Sitecore Experience Accelerator: https://dev.sitecore.net/Downloads/Sitecore_Experience_Accelerator/10x/Sitecore_Experience_Accelerator_1010.aspx

Sitecore XP 10.1 Graphical setup package for XP Single: https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform/101/Sitecore_Experience_Platform_101.aspx

Sitecore XC 10.1: https://dev.sitecore.net/Downloads/Sitecore_Commerce/101/Sitecore_Experience_Commerce_101.aspx

Sitecore XP installation

I’ve used “Graphical setup package for XP Single” to speed up the deployment of XP. The installer guides through the installation of Sitecore XP Single, Solr, and all required prerequisites, such as URL Rewrite and Web Deploy and SIF.

Per Sitecore Guide:

“You must make sure that Solr is running properly before you install the Sitecore XC solution. Rebuild the search indexes and the link databases in the Sitecore client (Control Panel > Indexing Manager). “

Optional: Disable performance counters or follow instructions here: https://www.sitecoregabe.com/2018/01/keep-performance-counters-enabled-after.html

Reboot server

Sitecore XC Installation

  1. Unzip Sitecore.Commerce.WDP.XXXX to the custom install folder.
  2. Place SXA and PowerShell Extension packages in the same folder
  3. Place “Microsoft.Web.XmlTransform.dll” and note its path. Ensure the DLL is ‘unblocked’
  4. Generate client certificate

$bytes = New-Object Byte[] 32
$rand = [System.Security.Cryptography.RandomNumberGenerator]::Create()
$rand.GetBytes($bytes)
$rand.Dispose()
$newClientSecret = [System.Convert]::ToBase64String($bytes)
Write-Host $newClientSecret

5. Unzip SIF.Sitecore.Commerce.6.0.18 and update installer PowerShell(Deploy-Sitecore-Commerce.ps1). Diff between original and modified PowerShell scripts. Use it as a reference of changes only(right side represents original script):

Done!