How to install Cuda installer for 12.1 in windows 10

I am trying to install cuda binary in my Windows 10 computer (Dell computer).
In the past month I was able to install cuda11.7 and torch was compiled with that and it was working.

Now, I would like to use cuda12.1 with newer version of torch. But, when I try to install cuda 12.1, the installer file does not work.

Binary file: CUDA Toolkit 12.1 Update 1 Downloads | NVIDIA Developer

attempt 01: right click and install as admin ==> gives can not create folder error
attempt 02: double click and run ==> gives can not create folder error
attempt 03: rename cudaxx.exe to cudaxxx.7zip, unzip that, run ./setup.exe opens and runs some time, but it will fail installing many components and installation can not success.

How to install cuda 12.1 binary file in windows computer?

Your issue seems to be unrelated to PyTorch so you might want to post it into an NVIDIA-specific discussion board.
With that being said, the PyTorch binaries ship with their own CUDA dependencies and your locally installed CUDA toolkit will be used if you build PyTorch from source or a custom CUDA extension. You would need to properly install an NVIDIA driver to be able to use your GPU.