I ran the MongoDB Community Version Download Setup with the GUI for Mongo - Compass checked. No problems with the installation and the setup was successfully completed.
I also had the same issue. And I have found that, it occurred when try to install the mongo db more than one time.