Installer: clear cache before custom installer (#1595)