Altering the SIF Script / JSON files to include the Update param for Hotfix installation
Note: This article is an addendum to Install a Sitecore XP pre-release using SIF documentation
This article is applicable for Sitecore versions below 10.2.0 since 10.2.0 and above already have the Update param. I'm using 10.1.0 as example here:
First of all, SIF files need no introduction - just a simple diagram to recollect:
New Flow (breakdown view):
Steps to modify files:
The rule of thumb is: Define the Update boolean param in each json file and ensure all tasks use the Update param to skip tasks except tasks relating to InstallWdp, stop or start app pool, website or services.
JSON File changes:
a. JSON File param declaration:
"Update": {
"Type": "bool",
"Description": "The parameter for the installing delta WDP packages.",
"DefaultValue": false
}
b. JSON File skip task:
Add the skip argument with the dynamic param value as follows for tasks to skip or run:
c. In case of an existing condition in the task, add the update param as part of skip condition as follows:
PS File Changes:
Declare the Update param, set the value and pass it to the XP0-SingleDeveloper.json that in turn calls the actual task JSON files.
List of files and occurrences:
1. sitecore-xp0.json:
2. Follow the same process in xConnect-xp0.json:
3. CreateCert.json
4. IdentityServer.json
5. sitecore-solr.json
Most importantly, ensure DoNotDeleteRule is enabled in case of InstallWdp, without this rule, enabled, all the dlls will be deleted when the hotfix runs.
6. Modify XP0-SingleDeveloper.json to pass the param to different files above:
8. Ensure to pass the correct delta package files when the Update param is set to true in the ps1 file
That's it, run the ps1 file and only the delta installation should occur skipping tasks except start/stop service/app pool/website. Stop before and start after installation of respective wdp.
Final checklist:
After multiple skips and few installation updates, here is the desired end-result:
Comments
Post a Comment