Revert "Revert "Remove automatical installation code in DEPLOY""

This reverts commit e5f77cea7f2443188f5be847a4b977a23089c783.