Guest User

Untitled

a guest
Jul 8th, 2014
242
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo -e "## INSTALLATION DE FLASH PLAYER ##\n"
  2. echo "Téléchargement de l'image disque..."
  3. curl -o http://download.macromedia.com/pub/flashplayer/current/support/install_flash_player_osx.dmg
  4. echo "Montage de l'image disque..."
  5. diskutil mount install_flash_player_osx.dmg
  6. echo "Extraction du paquet d'installation..."
  7. pkgutil --expand /Volumes/Flash\ Player/Install\ Adobe\ Flash\ Player.app/Contents/Resources/Adobe\ Flash\ Player.pkg Flash_tmp
  8. echo "Extraction des fichiers du programme..."
  9. mkdir Flash_tmp/Flash_files/
  10. cd Flash_tmp/Flash_files/
  11. cat Flash_tmp/AdobeFlashPlayerComponent.pkg/Payload | gunzip -dc | cpio -i
  12. echo "Extraction du fichier Flash Player.plugin..."
  13. Flash_tmp/AdobeFlashPlayerComponent.pkg/Scripts/finalize Flash_tmp/Flash_files/
  14. echo "Veuillez saisir le mot de passe administrateur pour installer le plugin :"
  15. sudo cp Library/Internet\ Plug-Ins/Flash\ Player.plugin /Library/Internet\ Plug-Ins/
  16. cd ../..
  17. echo "Nettoyage des fichiers temporaires..."
  18. rm -rf Flash_tmp
  19. echo "Démontage et suppression de l'image disque..."
  20. diskutil umount /Volumes/Flash\ Player/
  21. rm -f install_flash_player_osx.dmg
  22. echo -e "\n## INSTALLATION TERMINEE ##"
RAW Paste Data