public static void preinstall(File userSettingsDir) throws InstallFailedException {
  if (!preinstalled.compareAndSet(false,true))   return;
  try {
    CommonUtils.setUserSettingsDir(userSettingsDir);
    LibrarySettings.resetLibraryFoldersIfPortable();
  }
 catch (  Exception e) {
    throw new InstallFailedException("Settings Directory Failure",e);
  }
}

public static void preinstall ( File userSettingsDir ) throws InstallFailedException { if ( ! preinstalled . compareAndSet ( false , true ) ) return ; try { CommonUtils . setUserSettingsDir ( userSettingsDir ) ; LibrarySettings . resetLibraryFoldersIfPortable ( ) ; } catch ( Exception e ) { throw new InstallFailedException ( "Settings Directory Failure" , e ) ; } }
wires initial pieces together that are required for nearly everything .
