Used only by Unit tests.
Sets the
InstallerRegistry.defaultInstance to the new InstallerRegistry instance which
always returns the given GeneralPlatformInstalls
an instance of InstallerRegistry which has to be hold by strong reference during the test