Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
How long has the installation been stuck at 97%? Does it eventually fail with an error message?
Also, do you have any antivirus or security software running on your PC?
I recommend following the troubleshooting steps in this Microsoft support article to help resolve the issue: https://support.microsoft.com/office/office-is-taking-long-to-install-0f09f357-3fef-42a6-b8aa-cef4c6c44bdf