Make an application as GUI and Console mode