[installer] [target] fix bad adjustment of windowflags