Thanks for your reply. I may not have explained the problem well enough. when installing OBS, or unpacking it, this message box appears: 'Your system is missing DirectX components that OBS Studio requires. Would you like to download them?.' there are two buttons, YES and NO. Clicking Yes ->
https://www.microsoft.com/en-us/download/404-page. This page shows this message:
We're sorry, this download is no longer available.
note: i have looked carefully at Github and tried several versions. I copied all the OBS files from my old Windows 7 PC, where it is working fine. One of the files found was named: OBS-Studio-22.0.2-Full-Installer-x64.exe. This is the file that issued the message listed above about DirectX components. This version (22.0.2) works fine on one Windows 7 PC, but won't even install on the other PC. The PC that this version works on is the machine that is not usable so I'd like to get OBS working on the other Windows 7 PC.
On the old PC, where OB S is working, I do not see anything that looks like an archive. There is a file named OBS64.exe. starting this file results in this message: Error. 'Could not find any D3DCompiler libraries. Make sure you've installed the DirectX components that OBS studio requires.'
Extensive search on the Internet yields this information: DXDiag shows that DirectX version 11 is on the PC in question. Microsoft pages state that DIRECTX is available as part of KB2670838. I installed this on the PC and it did not help - still got the same error message.
Both of these PCs show Windows 7 Professional, Service Pack 1. The only difference that I see is that the one on which OBS works has a lot more KBxxx installed (50) than the one on which it does not work (6). there must be a better way to fix this than going through every one of these KB updates and installing them on a good PC, without knowing what they do and which one is the correct one.