Batch Script for Efficient AEM Upgrade: A Developer's Time-Saving Tool

 AEM developers need frequent upgrades as a necessity to ensure that your environment remains up-to-date with the latest features and fixes. 

Prerequisites

Make sure to download the latest version of the AEM local sdk package

Ensure you already have a local instance of older version of AEM local sdk version.

Script Overview

This Windows batch script performs the following actions:

  1. Extracts the JAR File: Prompts you to enter the path to a ZIP file containing the new JAR file. It then extracts the ZIP file to a temporary folder and identifies the JAR file.

  2. Replace JAR: Checks if a older version JAR file already exists in the AEM installation directory. If it does, the script deletes the old JAR file and copies the new version JAR file to the installation directory.

  3. Execute New JAR: Opens a new Command Prompt window, navigates to the AEM installation path, and executes the new JAR file. The script will wait for 5 minutes to allow the JAR file to complete installation. During this time, press enter to continue with the remaining steps.

  4. Update Configuration Files: After the JAR execution, the script updates the sling.properties file located in the crx-quickstart folder. It copies the value of granite.product.version and updates the PRODUCTINFO_VERSION property with this value.

  5. Clean Up: Deletes temporary files and folders used during the upgrade process.

Hemant_arora_1-1725606117189.png

 

 

 

Hemant_arora_2-1725604711670.png

 

 

 

 

Hemant_arora_4-1725605136202.png

 

Download and execute the attached script

 

____________________________________________________________________________________________________________________________

Hope this helps. Thanks for reading.

 Download script here


https://experienceleaguecommunities.adobe.com/skucn57933/attachments/skucn57933/adobe-experience-manager-discussions/47311/1/upgrade.zip


Comments

Popular posts from this blog

AEM sites master architect certification preparation questions - AD0-E117 - Free - Don't buy dumps

AEM 6.1 Touch UI Component Inplace editing

CQ interview questions