Cant install Epic Games Launcher

Hello, when I try to install the Epic games launcher it stops when installing Directx, the error says: “There is a problem with this windows installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.” And it is on C drive.