We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
George Karnos
Ansys Employee

One suggestion is to rename the directory:  %APPDATA%\Ansys\v242 to v242.old
Try to run after that.
If this doesn't help...
Is there a reason that installation is to: D:\Ansys\Ansys Inc?
I would try uninstalling and renaming the d:\Ansys\Ansys Inc directory to Ansys.old
Then reinstall making sure to right-click on setup.exe and choosing: "run as administrator"
Also, try default installation to c:\program files\Ansys Inc.