Problem solved!
It was the windows security that was making problems,
went to –> Windows Security Setting>Virus and Threat Protection>Manage Settings>Scroll down to controlled folder access and click on Manage Controlled folder access>Turn it OFF.. that’s how I solved my problem.
It warked for the Ritmix installer too.