I had the same problem and it was resolved by deleting these folders created during the previous setup and running the setup again:
% USERPROFILE% \ AppData \ Roaming \ MongoDB Compass Community% USERPROFILE% \ AppData \ Roaming \ Microsoft \ Windows \ Start \ Programs \ MongoDB Inc% USERPROFILE% \ AppData \ Local \ MongoDBCompassCommunity and some files like this in the Prefetch folder:
C: \ Windows \ Prefetch \ MONGODBCOMPASSCOMMUNITY.EXE-0044164A.pf
source share