fixed isInstallerWindow code