some minor changes:
rm MainWindow, behaviour: quit if install success