SH4 as KaleunMarco mentioned does not need to be registered. You can tell it "Never" and it will run. SH5 is a different story, and you will need to be running Win10/11 and download Ubisofts UConnect app, available on their site
Ubisoft Connect, and even still SH5 is a pain to deal with.