Install dependencies before an interactive install

Closes #29121.