Correctly update installed flag refs #1274