[installer] [target] fix cast on Windows build for message before imaging