Revert "Remove automatical installation code in DEPLOY"

This reverts commit 872f6dcd92abba378e5c1c042497f758c775904e.