/usr/share/YaST2/modules/Mode.rb

    # we're doing a fresh installation
    def installation
      mode == "installation" || mode == "autoinstallation" ||
        mode == "live_installation"
    end