code: public void setInstallState(@Nonnull InstallState newState) {
          String prior = installStateName;
          installStateName = newState.name();
          LOGGER.log(Main.isDevelopmentMode ? Level.INFO : Level.FINE, "Install state transitioning from: {0} to : {1}", new Object[] { prior, installStateName });
          if (!installStateName.equals(prior)) {
              getSetupWizard().onInstallStateUpdate(newState);
              newState.initializeState();
          }
          saveQuietly();
      }
docs: Update the current install state. This will invoke state.initializeState()
  when the state has been transitioned.