Refine runSilentInstall function