===== Introduction ===== Pour une présentation globale du projet [[:autoit:presentation| ICI]] Package auto est composé de 2 modules differents : - open.bat - package_auto.bat Le premier est contenu dans le dossier **BOOT** du FTP, il suffira donc de copier le dossier **BOOT** sur le bureau de l'ordinateur par exemple, et de lancer **open.bat**, il sert a copier les fichiers importants (wget.exe et 7zip.exe) dans le dossier system de l'ordinateur. Une fois les fichiers copiés le script se connect au serveur FTP et télécharge le fichier **package_auto.bat** puis le lance. **package_auto.bat** affiche alors un menu sommaire permetant de choisir les logiciels a installer a la main ou de prendre le "package" par defaut. Une fois les choix fait, il se connect alors au FTP et telécharge les logiciels préalablement compréssé en **ZIP** ( certain logiciel doivent etre décompréssé pour être installé et transferer plusieurs fichiers via FTP prendre plus de temp qu'un seul gros fichier), les décompresses et lance les installations. ===== open.bat ===== @echo off mkdir c:\package copy wget.exe %windir%\system32 copy 7za.exe %windir%\system32 copy choice.com %windir%\system32 cls set _login=***** set _password=***** set _ip=192.168.***.*** set _url=stock1/package_auto_2 cd c:\package wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/package_auto.bat start c:\package\package_auto.bat ===== package_auto.bat ===== : : : :Installation Script Powered By SurPriseS : : @echo Off :--------------------------------- :choice.com copy choice.com %windir%\system32\ :--------------------------------- :Déclaration des variable set _pcperso=%1 set _pdfcreator=%2 set _acrobatreader7=%3 set _winrar=%4 set _java=%5 set _nero6=%6 set _nero7=%8 set _openoffice2=%9 set _majwin=%10 set _netoyagesys=%11 set _defrag=%12 set _acrobat6=%13 set _avg=%14 set _gimp=%15 set _msn75=%16 set _powerdvd=%17 set _tuxpaint=%18 set _base=%19 set _login=***** set _password=***** set _ip=192.168.***.*** set _url=stock1/package_auto_2/logiciels :démarage du menu cls echo Choix des logiciels a installer : echo Installation Basique ? echo Pcperso echo PdfCreator echo Acrobat Reader 7 echo Winrar echo Java echo Nero 6 echo OpenOffice 2.0 echo Avg echo Gimp echo Msn 7.5 echo PowerDVD echo Tuxpaint choice oui ou non /C:on if errorlevel = 2 goto base_noinstall if errorlevel = 1 goto base_install :base_noinstall goto next_base :base_install set _pcperso=1 set _pdfcreator=1 set _acrobatreader7=1 set _winrar=1 set _java=1 set _nero6=1 set _nero6=1 set _nero7=0 set _openoffice2=1 set _majwin=0 set _netoyagesys=0 set _defrag=0 set _acrobat6=0 set _avg=1 set _gimp=1 set _msn75=1 set _powerdvd=1 set _tuxpaint=1 goto next_base2 :next_base :--------------------------------- :--------------------------------- echo Installation Pcperso ? choice oui ou non /C:on if errorlevel = 2 goto pcperso_noinstall if errorlevel = 1 goto pcperso_install :pcperso_noinstall set _pcperso=0 goto next_pcperso :pcperso_install set _pcperso=1 :next_pcperso :--------------------------------- :--------------------------------- echo Installation Pdfcreator ? choice oui ou non /C:on if errorlevel = 2 goto pdfcreator_noinstall if errorlevel = 1 goto pdfcreator_install :pdfcreator_noinstall set _pdfcreator=0 goto next_pdfcreator :pdfcreator_install set _pdfcreator=1 :next_pdfcreator :--------------------------------- :--------------------------------- echo Installation Acrobat Reader 7.5 ? choice oui ou non /C:on if errorlevel = 2 goto acrobatreader7_noinstall if errorlevel = 1 goto acrobatreader7_install :acrobatreader7_noinstall set _acrobatreader7=0 goto next_acrobatreader7 :acrobatreader7_install set _acrobatreader7=1 :next_acrobatreader7 :--------------------------------- :--------------------------------- echo Installation Winrar ? choice oui ou non /C:on if errorlevel = 2 goto winrar_noinstall if errorlevel = 1 goto winrar_install :winrar_noinstall set _winrar=0 goto next_winrar :winrar_install set _winrar=1 :next_winrar :--------------------------------- :--------------------------------- echo Installation Java ? choice oui ou non /C:on if errorlevel = 2 goto java_noinstall if errorlevel = 1 goto java_install :java_noinstall set _java=0 goto next_java :java_install set _java=1 :next_java :--------------------------------- :--------------------------------- echo Installation Nero 6 ? choice oui ou non /C:on if errorlevel = 2 goto nero6_noinstall if errorlevel = 1 goto nero6_install :nero6_noinstall set _nero6=0 goto next_nero6 :nero6_install set _nero6=1 :next_nero6 :--------------------------------- :--------------------------------- :goto next_nero7 :echo Installation Nero 7 ? :choice oui ou non /C:on :if errorlevel = 2 goto nero7_noinstall :if errorlevel = 1 goto nero7_install :nero7_noinstall :set _nero7=0 :goto next_nero7 :nero7_install :set _nero7=1 :set _nero6=0 :next_nero7 :--------------------------------- :--------------------------------- echo Installation Oppen Office 2.0 ? choice oui ou non /C:on if errorlevel = 2 goto openoffice2_noinstall if errorlevel = 1 goto openoffice2_install :openoffice2_noinstall set _openoffice2=0 goto next_openoffice2 :openoffice2_install set _openoffice2=1 :next_openoffice2 :--------------------------------- :--------------------------------- echo Netoyage du systeme ? (non fonctionnel) choice oui ou non /C:on if errorlevel = 2 goto netoyage_noinstall if errorlevel = 1 goto netoyage_install :netoyage_noinstall set _netoyagesys=0 goto next_netoyage :netoyage_install set _netoyagesys=1 :next_netoyage :--------------------------------- :--------------------------------- echo Mise a Jour Windows ? (non fonctionnel) choice oui ou non /C:on if errorlevel = 2 goto majwin_noinstall if errorlevel = 1 goto majwin_install :majwin_noinstall set _majwin=0 goto next_majwin :majwin_install set _majwin=1 :next_majwin :--------------------------------- :--------------------------------- echo Defragmentation Windows ? (non fonctionnel) choice oui ou non /C:on if errorlevel = 2 goto defrag_noinstall if errorlevel = 1 goto defrag_install :defrag_noinstall set _defrag=0 goto next_defrag :defrag_install set _defrag=1 :next_defrag :--------------------------------- :--------------------------------- echo Downloader Acrobat reader 6 ? (ne l'install pas) choice oui ou non /C:on if errorlevel = 2 goto acrobat6_noinstall if errorlevel = 1 goto acrobat6_install :acrobat6_noinstall set _acrobat6=0 goto next_acrobat6 :acrobat6_install set _acrobat6=1 :next_acrobat6 :--------------------------------- :--------------------------------- echo Downloader Avg ? (ne l'install pas) choice oui ou non /C:on if errorlevel = 2 goto avg_noinstall if errorlevel = 1 goto avg_install :avg_noinstall set _avg=0 goto next_avg :avg_install set _avg=1 :next_avg :--------------------------------- :--------------------------------- echo Downloader Gimp ? if errorlevel = 2 goto gimp_noinstall if errorlevel = 1 goto gimp_install :gimp_noinstall set _gimp=0 goto next_gimp :gimp_install set _gimp=1 :next_gimp :--------------------------------- :--------------------------------- echo Downloader MSN 7.5 ? (ne l'install pas) choice oui ou non /C:on if errorlevel = 2 goto msn75_noinstall if errorlevel = 1 goto msn75_install :msn75_noinstall set _msn75=0 goto next_msn75 :msn75_install set _msn75=1 :next_msn75 :--------------------------------- :--------------------------------- echo Downloader Powerdvd ? (ne l'install pas) choice oui ou non /C:on if errorlevel = 2 goto powerdvd_noinstall if errorlevel = 1 goto powerdvd_install :powerdvd_noinstall set _powerdvd=0 goto next_powerdvd :powerdvd_install set _powerdvd=1 :next_powerdvd :--------------------------------- :--------------------------------- echo Downloader Tuxpaint ? (ne l'install pas) choice oui ou non /C:on if errorlevel = 2 goto tuxpaint_noinstall if errorlevel = 1 goto tuxpaint_install :tuxpaint_noinstall set _tuxpaint=0 goto next_tuxpaint :tuxpaint_install set _tuxpaint=1 :next_tuxpaint :next_base2 :------------------------------------------------------------------ :------------------------------------------------------------------ :------------------------------------------------------------------ :------------------------------------------------------------------ :--------------------------------- :Installation PcPerso if %_pcperso%==0 goto nopcperso cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/pcperso.zip 7za x pcperso.zip cd pcperso copy oeminfo.ini c:\windows\system\oeminfo.ini cd.. echo Installation de PcPerso OK >>c:\installation_package_auto.txt :nopcperso echo Installation de Pcperso annulé >>c:\installation_package_auto.txt :--------------------------------- :Installation PdfCreator if %_pdfcreator%==0 goto nopdfcreator cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/pdfcreator.zip 7za x pdfcreator.zip cd pdfcreator PDFCreator.exe /VERYSILENT /NORESTART PDFCreator_patch.exe /VERYSILENT /NORESTART PDFCreator_patch_francais.exe /VERYSILENT /NORESTART cd .. echo Installation de PdfCreator Ok >>c:\installation_package_auto.txt :nopdfcreator echo Installation de PdfCreator annulé >>c:\installation_package_auto.txt :--------------------------------- :Installation Winrar if %_winrar%==0 goto nowinrar cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/winrar350fr.zip 7za x winrar350fr.zip cd winrar350fr wrar350fr -s rem Installation de Winrar Ok cd .. echo Winrar Ok >>c:\installation_package_auto.txt :nowinrar echo Installation de Winrar annulé >>c:\installation_package_auto.txt :--------------------------------- :Installation Java if %_java%==0 goto nojava cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/java.zip 7za x java.zip cd java jre-1_5_0_05-windows-i586-p /A cd .. echo Installation de RunTime Java Ok >>c:\installation_package_auto.txt :nojava echo Installation de Java annulé >>c:\installation_package_auto.txt :--------------------------------- :Installation OpenOffice 2.0 if %_openoffice2%==0 goto noopenoffice2 cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/OpenOffice2.zip 7za x OpenOffice2.zip cd OpenOffice2 openofficeorg20.msi /passive cd .. echo Installation de OpenOffice 2.0 Ok >>c:\installation_package_auto.txt :noopenoffice2 echo Installation de OpenOffice 2.0 annulé >>c:\installation_package_auto.txt :--------------------------------- :Installation nero 6 if %_nero6%==0 goto nonero6 cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/nero_6.zip 7za x nero_6.zip cd nero_6 cd 6.6.0.16 Nero-6.6.0.16.exe /silent /write_sn /no_ui /noreboot Nero-6.6.0.16_fra /silent /noreboot cd .. cd .. echo Installation de Nero 6 Ok >>c:\installation_package_auto.txt :nonero6 echo Installation de Nero 6 annulé >>c:\installation_package_auto.txt :--------------------------------- :Installation nero 7 :if %_nero7%==0 goto nonero7 :cd c:\package\ :wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/Nero.7.zip :7za x Nero.7.zip :cd Nero.7 :copy NeroStartSmart.lnk "C:\Documents and Settings\All Users\Bureau" :cd nero.7.ultra.full :Nero.msi /passive /norestart :cd .. :cd .. :echo Installation de Nero 7 Ok >>c:\installation_package_auto.txt :nonero7 :echo Installation de Nero 7 annulé >>c:\installation_package_auto.txt :--------------------------------- :Installation Acrobat Reader 7.5 if %_acrobatreader7%==0 goto noacrobatreader7 cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/Acrobat_reader_7-5.zip 7za x Acrobat_reader_7-5.zip cd Acrobat_reader_7-5 "Adobe Reader 7.0.5 - Francais" /passive /norestart cd.. echo Installation de Acrobat Reader 7.0.5 Ok >>c:\installation_package_auto.txt :noacrobatreader7 echo Installation de Acrobat Reader 7 annulé >>c:\installation_package_auto.txt :--------------------------------- :acrobat reader 6 if %_acrobat6%==0 goto noacrobat6 echo Telechargement Acrobat Reader 6 >>c:\installation_package_auto.txt cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/installation_manuel/AdbeRdr60_fra_full.zip 7za x AdbeRdr60_fra_full.zip :noacrobat6 echo Telechargement Acrobat Reader 6 annulé >>c:\installation_package_auto.txt :--------------------------------- :avg if %_avg%==0 goto noavg echo Telechargement Avg >>c:\installation_package_auto.txt cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/installation_manuel/avg.zip 7za x avg.zip cd C:\package\ avg71free_362a652.exe :noavg echo Telechargement Avg annulé >>c:\installation_package_auto.txt :--------------------------------- :gimp if %_gimp%==0 goto nogimp echo Telechargement Gimp >>c:\installation_package_auto.txt cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/installation_manuel/gimp.zip 7za x gimp.zip cd gimp @echo off echo Lancement des installations de GTK+ et du GIMP ... gtk+-2.4.14-setup.exe /silent gimp-2.2.3-i586-setup.exe /silent gimp-help-2-0.7-setup.exe /silent :nogimp echo Telechargement Gimp annulé >>c:\installation_package_auto.txt :--------------------------------- :msn75 if %_msn75%==0 goto nomsn75 echo Telechargement MSN 7.5 >>c:\installation_package_auto.txt cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/installation_manuel/Messenger7.5.zip 7za x Messenger7.5.zip cd C:\package Messenger7.5.exe :nomsn75 echo Telechargement MSN 7.5 annulé >>c:\installation_package_auto.txt :--------------------------------- :powerdvd if %_powerdvd%==0 goto nopowerdvd echo Telechargement PowerDVD >>c:\installation_package_auto.txt cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/installation_manuel/powerdvd5.zip 7za x powerdvd5.zip cd C:\package\powerdvd5\cpdvd5 keygen.exe Setup.exe cd C:\package\powerdvd5 PDVD5_patch.exe PDVD5_LangKit.exe PDVD5_SkinKit.exe :nopowerdvd echo Telechargement PowerDVD annulé >>c:\installation_package_auto.txt :--------------------------------- :tuxpaint if %_tuxpaint%==0 goto noacrobat6 echo Telechargement TuxPaint >>c:\installation_package_auto.txt cd c:\package\ wget -S -g --glob=on --passive-ftp ftp://%_login%:%_password%@%_ip%/%_url%/installation_manuel/tuxpaint.zip 7za x tuxpaint.zip cd C:\package\tuxpaint\ tuxpaint.exe :notuxpaint echo Telechargement TuxPaint annulé >>c:\installation_package_auto.txt :--------------------------------- :Mise a jour Windows if %_majwin%==0 goto nomajwin echo lancement des mises a jours windows >>c:\installation_package_auto.txt wupdmgr.exe :nomajwin echo lancement des mises a jours windows annulé >>c:\installation_package_auto.txt :--------------------------------- :Netoyage systeme if %_netoyagesys%==0 goto nonetoyagesys :nonetoyagesys echo Netoyage systeme annulé >>c:\installation_package_auto.txt :--------------------------------- :Defragmentation if %_defrag%==0 goto nodefrag echo ouverture du defragmenteur de disque >>c:\installation_package_auto.txt dfrg.msc :nodefrag echo lancement de la defragmentation annulée >>c:\installation_package_auto.txt :--------------------------------- cd c:\package\ del *.zip :--------------------------------- echo Installation Fini >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt echo @robase 29 >>c:\installation_package_auto.txt echo 34,route de lorient >>c:\installation_package_auto.txt echo 29300 Quimperlé >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt echo tel : 02 98 09 01 65 >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt echo arobase29@wanadoo.fr >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt echo www.arobase29.net >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt echo >>c:\installation_package_auto.txt