⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flashplayer-installer

📁 flash编辑软件的安装方法
💻
📖 第 1 页 / 共 2 页
字号:
      MOZILLADIR="$HOMEDIR/.mozilla"      COUNT=`expr $COUNT + 1`      if [ ! -w "$HOMEDIR/.mozilla" ]; then        MOZILLA_NOT_W=1        MOZILLASTATUS="invalid"        ERRORCOUNT=`expr $ERRORCOUNT + 1`      elif [ \( -d "$HOMEDIR/.mozilla/plugins" \) -a \( ! -w "$HOMEDIR/.mozilla/plugins" \) ]; then        MOZILLAPLUGIN_NOT_W=1        MOZILLASTATUS="invalid"        ERRORCOUNT=`expr $ERRORCOUNT + 1`      else        STATUSCOUNT=`expr $STATUSCOUNT + 1`      fi    fi    # Netscape user directory    if [ -d "$HOMEDIR/.netscape" ]; then      NETSCAPE=1      NETSCAPEDIR="$HOMEDIR/.netscape"      COUNT=`expr $COUNT + 1`      if [ ! -w "$HOMEDIR/.netscape" ]; then        NETSCAPE_NOT_W=1        NETSCAPESTATUS="invalid"        ERRORCOUNT=`expr $ERRORCOUNT + 1`      elif [ \( -d "$HOMEDIR/.netscape/plugins" \) -a \( ! -w "$HOMEDIR/.netscape/plugins" \) ]; then        NETSCAPEPLUGIN_NOT_W=1        NETSCAPESTATUS="invalid"        ERRORCOUNT=`expr $ERRORCOUNT + 1`      else        STATUSCOUNT=`expr $STATUSCOUNT + 1`      fi    fi    # Opera user directory    if [ -d "$HOMEDIR/.opera" ]; then      OPERA=1      OPERADIR="$HOMEDIR/.opera"      COUNT=`expr $COUNT + 1`      if [ ! -w "$HOMEDIR/.opera" ]; then        OPERA_NOT_W=1        OPERASTATUS="invalid"        ERRORCOUNT=`expr $ERRORCOUNT + 1`      elif [ \( -d "$HOMEDIR/.opera/plugins" \) -a \( ! -w "$HOMEDIR/.opera/plugins" \) ]; then        OPERAPLUGIN_NOT_W=1        OPERASTATUS="invalid"        ERRORCOUNT=`expr $ERRORCOUNT + 1`      else        STATUSCOUNT=`expr $STATUSCOUNT + 1`      fi    fi    if [ \( $MOZILLA -eq 0 \) -a \( $NETSCAPE -eq 0 \) -a \( $OPERA -eq 0 \) ]; then      echo ""      echo "ERROR: Your home directory does not have a Mozilla, Netscape, or Opera"      echo "       browser user directory. Run one of these browsers at least once."      echo ""      exit 1    fi  fi  # if local install, ask which dirs to install to if more than one  if [ $ROOTINSTALL -ne 1 ]; then    if [ \( $COUNT -gt 1 \) -a \( $STATUSCOUNT -gt 1 \) ]; then      echo ""      echo "Please choose which directory to install $PRODUCT $VERSION:"      echo ""      if [ $MOZILLA -eq 1 ]; then        if [ "$MOZILLASTATUS" = "valid" ]; then        echo "  [m] Install $PRODUCT $VERSION into Mozilla user"        echo "      directory: $MOZILLADIR"        else        echo "   *  The installer has detected a Mozilla user directory but cannot install"        echo "      into the following path: $MOZILLADIR"        echo "      because of the following:"        fi        if [ $MOZILLA_NOT_W -eq 1 ]; then        echo ""        echo "      WARNING: $MOZILLADIR is not writable."        fi        if [ \( $MOZILLA_NOT_W -eq 0 \) -a \( $MOZILLAPLUGIN_NOT_W -eq 1 \) ]; then        echo ""        echo "      WARNING: $MOZILLADIR/plugins is not writable."        fi        echo ""      fi      if [ $NETSCAPE -eq 1 ]; then        if [ "$NETSCAPESTATUS" = "valid" ]; then        echo "  [n] Install $PRODUCT $VERSION into Netscape user"        echo "      directory: $NETSCAPEDIR"        else        echo "   *  The installer has detected a Netscape user directory but cannot install"        echo "      into the following path: $NETSCAPEDIR"        echo "      because of the following:"        fi        if [ $NETSCAPE_NOT_W -eq 1 ]; then        echo ""        echo "      WARNING: $NETSCAPEDIR is not writable."        fi        if [ \( $NETSCAPE_NOT_W -eq 0 \) -a \( $NETSCAPEPLUGIN_NOT_W -eq 1 \) ]; then        echo ""        echo "      WARNING: $NETSCAPEDIR/plugins is not writable."        fi        echo ""      fi      if [ $OPERA -eq 1 ]; then        if [ "$OPERASTATUS" = "valid" ]; then        echo "  [o] Install $PRODUCT $VERSION into Opera user"        echo "      directory: $OPERADIR"        else        echo "   *  The installer has detected a Opera user directory but cannot install"        echo "      into the following path: $OPERADIR"        echo "      because of the following:"        fi        if [ $OPERA_NOT_W -eq 1 ]; then        echo ""        echo "      WARNING: $OPERADIR is not writable."        fi        if [ \( $OPERA_NOT_W -eq 0 \) -a \( $OPERAPLUGIN_NOT_W -eq 1 \) ]; then        echo ""        echo "      WARNING: $OPERADIR/plugins is not writable."        fi        echo ""      fi      echo "  [a] All"      echo ""    else      # only one browser user directory      if [ $MOZILLA -eq 1 ]; then        if [ "$MOZILLASTATUS" = "invalid" ]; then          echo "The installer has detected a Mozilla user directory but cannot install"          echo "into the following path: $MOZILLADIR"          echo "because of the following:"          if [ $MOZILLA_NOT_W -eq 1 ]; then            echo ""            echo "WARNING: $MOZILLADIR is not writable."            echo ""          fi          if [ \( $MOZILLA_NOT_W -eq 0 \) -a \( $MOZILLAPLUGIN_NOT_W -eq 1 \) ]; then            echo ""            echo "WARNING: $MOZILLADIR/plugins is not writable."            echo ""          fi        fi      fi      if [ $NETSCAPE -eq 1 ]; then        if [ "$NETSCAPESTATUS" = "invalid" ]; then          echo "The installer has detected a Netscape user directory but cannot install"          echo "into the following path: $NETSCAPEDIR"          echo "because of the following:"          if [ $NETSCAPE_NOT_W -eq 1 ]; then            echo ""            echo "WARNING: $NETSCAPEDIR is not writable."            echo ""          fi          if [ \( $NETSCAPE_NOT_W -eq 0 \) -a \( $NETSCAPEPLUGIN_NOT_W -eq 1 \) ]; then            echo ""            echo "WARNING: $NETSCAPEDIR/plugins is not writable."            echo ""          fi        fi      fi       if [ $OPERA -eq 1 ]; then        if [ "$OPERASTATUS" = "invalid" ]; then          echo "The installer has detected a Opera user directory but cannot install"          echo "into the following path: $OPERADIR"          echo "because of the following:"          if [ $OPERA_NOT_W -eq 1 ]; then            echo ""            echo "WARNING: $OPERADIR is not writable."            echo ""          fi          if [ \( $OPERA_NOT_W -eq 0 \) -a \( $OPERAPLUGIN_NOT_W -eq 1 \) ]; then            echo ""            echo "WARNING: $OPERADIR/plugins is not writable."            echo ""          fi        fi      fi    fi  fi  select_local_install () {    printf "Please choose a directory: "    read inum    if [ \( \( "$inum" = "m" \) -o \( "$inum" = "M" \) \) -a \( \( $MOZILLA -eq 1 \) -a \( "$MOZILLASTATUS" = "valid" \) \) ]; then      NETSCAPE=0      OPERA=0      check_plugins_dir "$MOZILLADIR/plugins"    elif [ \( \( $NETSCAPE -eq 1 \) -a \( "$NETSCAPESTATUS" = "valid" \) \) -a \( \( "$inum" = "n" \) -o \( "$inum" = "N" \) \) ]; then      MOZILLA=0      OPERA=0      check_plugins_dir "$NETSCAPEDIR/plugins"    elif [ \( \( $OPERA -eq 1 \) -a \( "$OPERASTATUS" = "valid" \) \) -a \( \( "$inum" = "o" \) -o \( "$inum" = "O" \) \) ]; then      MOZILLA=0      NETSCAPE=0      check_plugins_dir "$OPERADIR/plugins"    elif [ \( "$inum" = "a" \) -o \( "$inum" = "A" \) ]; then      # do nothing      NOTHING=1      if [ \( $MOZILLA -eq 1 \) -a \( "$MOZILLASTATUS" = "valid" \) ]; then        check_plugins_dir "$MOZILLADIR/plugins"      fi      if [ \( $NETSCAPE -eq 1 \) -a \( "$NETSCAPESTATUS" = "valid" \) ]; then        check_plugins_dir "$NETSCAPEDIR/plugins"      fi      if [ \( $OPERA -eq 1 \) -a \( "$OPERASTATUS" = "valid" \) ]; then        check_plugins_dir "$OPERADIR/plugins"      fi    else      echo ""      echo "ERROR: Please choose a directory from the list."      echo ""      select_local_install    fi  }  if [ $ROOTINSTALL -ne 1 ]; then    if [ \( $COUNT -gt 1 \) -a \( $STATUSCOUNT -gt 1 \) ]; then      select_local_install    fi    if [ $COUNT -eq $ERRORCOUNT ]; then      exit_error    fi  fi  ##########  # Summary  ##########  echo ""  echo ""  echo "----------- Install Action Summary -----------"  echo ""  echo "$PRODUCT $VERSION will be installed in the following directory:"  echo ""  if [ $ROOTINSTALL -eq 1 ]; then    echo "Browser installation directory = $BROWSERDIR"  else    if [ \( $MOZILLA -eq 1 \) -a \( "$MOZILLASTATUS" = "valid" \) ]; then      echo "Mozilla installation directory  = $MOZILLADIR"    fi    if [ \( $NETSCAPE -eq 1 \) -a \( "$NETSCAPESTATUS" = "valid" \) ]; then      echo "Netscape installation directory = $NETSCAPEDIR"    fi    if [ \( $OPERA -eq 1 \) -a \( "$OPERASTATUS" = "valid" \) ]; then      echo "Opera installation directory    = $OPERADIR"    fi  fi  echo ""  # okay to continue?  get_installagreement () {    printf 'Proceed with the installation? (y/n/q): '    read yn    case $yn in      y | Y)        okToProceed=1        ;;      n | N)        continue        ;;      q | Q)        exit 1        ;;      *)        echo ""        echo "Please enter 'y', 'n', or 'q'."        get_installagreement        ;;    esac  }  get_installagreementdone######################## Perform installation########################--------------# copy plug-in#--------------# system-wideif [ $ROOTINSTALL -eq 1 ]; then  # copy plug-in  # remove symbolic link before copying  if [ $SYMBOLIC_LINK -eq 1 ]; then    rm -f "$BROWSERDIR/plugins/libflashplayer.so"  fi  cp -f "$cwd/libflashplayer.so" "$BROWSERDIR/plugins"  # copy xpt file  cp -f "$cwd/flashplayer.xpt" "$BROWSERDIR/plugins"else# local  if [ $MOZILLA -eq 1 ]; then    if [ \( ! -d "$MOZILLADIR/plugins" \) -a \( $MOZILLA_NOT_W -eq 0 \) ]; then      mkdir -p "$MOZILLADIR/plugins"    fi    if [ \( $MOZILLA_NOT_W -eq 0 \) -a \( $MOZILLAPLUGIN_NOT_W -eq 0 \) ]; then      cp -f "$cwd/libflashplayer.so" "$MOZILLADIR/plugins"      cp -f "$cwd/flashplayer.xpt" "$MOZILLADIR/plugins"    fi  fi  if [ $NETSCAPE -eq 1 ]; then    if [ \( ! -d "$NETSCAPEDIR/plugins" \) -a \( $NETSCAPE_NOT_W -eq 0 \) ]; then      mkdir -p "$NETSCAPEDIR/plugins"    fi    if [ \( $NETSCAPE_NOT_W -eq 0 \) -a \( $NETSCAPEPLUGIN_NOT_W -eq 0 \) ]; then      cp -f "$cwd/libflashplayer.so" "$NETSCAPEDIR/plugins"      cp -f "$cwd/flashplayer.xpt" "$NETSCAPEDIR/plugins"    fi  fi  if [ $OPERA -eq 1 ]; then    if [ \( ! -d "$OPERADIR/plugins" \) -a \( $OPERA_NOT_W -eq 0 \) ]; then      mkdir -p "$OPERADIR/plugins"    fi    if [ \( $OPERA_NOT_W -eq 0 \) -a \( $OPERAPLUGIN_NOT_W -eq 0 \) ]; then      cp -f "$cwd/libflashplayer.so" "$OPERADIR/plugins"    fi  fifi#----------------------# remove xpti.dat file#----------------------if [ $ROOTINSTALL -eq 1 ]; then  if [ -f "$BROWSERDIR/components/xpti.dat" ]; then    rm -f "$BROWSERDIR/components/xpti.dat"  fielse  if [ \( $MOZILLA -eq 1 \) -o \( $NETSCAPE -eq 1 \) ]; then    # don't know where xpti.dat file is located    echo ""    echo "NOTE: Please ask your administrator to remove the xpti.dat from the"    echo "      components directory of the Mozilla or Netscape browser."    echo ""  fifi#-----------------# set permissions#-----------------if [ $ROOTINSTALL -eq 1 ]; then  chmod 755 "$BROWSERDIR/plugins/libflashplayer.so"  chmod 755 "$BROWSERDIR/plugins/flashplayer.xpt"else  if [ $MOZILLA -eq 1 ]; then    if [ \( $MOZILLA_NOT_W -eq 0 \) -a \( $MOZILLAPLUGIN_NOT_W -eq 0 \) ]; then      chmod 755 "$MOZILLADIR/plugins/libflashplayer.so"      chmod 755 "$MOZILLADIR/plugins/flashplayer.xpt"    fi  fi  if [ $NETSCAPE -eq 1 ]; then    if [ \( $NETSCAPE_NOT_W -eq 0 \) -a \( $NETSCAPEPLUGIN_NOT_W -eq 0 \) ]; then      chmod 755 "$NETSCAPEDIR/plugins/libflashplayer.so"      chmod 755 "$NETSCAPEDIR/plugins/flashplayer.xpt"    fi  fi  if [ $OPERA -eq 1 ]; then    if [ \( $OPERA_NOT_W -eq 0 \) -a \( $OPERAPLUGIN_NOT_W -eq 0 \) ]; then      chmod 755 "$OPERADIR/plugins/libflashplayer.so"    fi  fifiecho ""echo "Installation complete."echo ""# Ask to repeat installation?ask_to_repeat () {  echo ""  printf 'Perform another installation? (y/n): '  read yn  case $yn in    y | Y)      continue      ;;    n | N)      okToRepeat=1      break      ;;    *)      echo ""      echo "Please enter 'y' or 'n'."      ask_to_repeat      ;;  esac}ask_to_repeatdone# Final messages.# check MOZ_PLUGIN_PATHif [ ! -z "$MOZ_PLUGIN_PATH" ]; then  echo ""  echo "WARNING: You have the MOZ_PLUGIN_PATH environment variable set."  echo "         Either unset this environment variable or set the path in this"  echo "         environment variable to the path you are installing the plug-in."  echo ""fi# check OPERA_PLUGIN_PATHif [ ! -z "$OPERA_PLUGIN_PATH" ]; then  echo ""  echo "WARNING: You have the OPERA_PLUGIN_PATH environment variable set."  echo "         Either unset this environment variable or append the path"  echo "         you are installing the plug-in to this variable."  echo ""fiecho ""echo ""echo "Please log out of this session and log in for the changes to take effect."echo ""echo ""echo "The $PRODUCT installation is complete."echo ""

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -