:: PonxLineInstall.bat :: GlobalPVersion= 2.03 setlocal set LANG="fr-FR" set SILENCE=/s cd /dC:\ md Ponx cd \Ponx md Sapeur md the md temp md bis xcopy pasram.py bis /Y xcopy deftaches.py bis /Y xcopy tps.cfg bis /Y if exist getweb.exe goto :SUIT01 echo. echo Problème : impossible de trouver getweb.exe echo installation abandonnée. Corrigez avant de relancer echo. pause goto :EOF :SUIT01 if EXIST C:\Ponx\sleepm.exe GOTO :SUIT01B start "" /WAIT getweb http://ponx.org/download/CD/DivProg/Mci/sleepm.exe C:\Ponx :SUIT01B :SUIT01E if EXIST C:\Python27\pythonw.exe GOTO :PYTHONINSTALLED if NOT EXIST C:\Python27\Lib\site-packages\win32com call :LOAD pywin32-217.win32-py2.7.exe call :LOADWAIT python-2.7.2.msi call :RUNSEUL python-2.7.2.msi :PYTHONINSTALLED if NOT EXIST C:\Python27\Lib\site-packages\PIL call :LOAD PIL-1.1.7.win32-py2.7.exe if NOT EXIST C:\Python27\Lib\site-packages\win32com call :RUN pywin32-217.win32-py2.7.exe if NOT EXIST C:\Python27\Lib\site-packages\PIL call :RUN PIL-1.1.7.win32-py2.7.exe start "" /WAIT getweb http://ponx.org/download/CD/PONX/ponx.zip C:\Ponx zipmci.py -e ponx.zip *.* if EXIST C:\Windows\System32\AutoItX3.dll GOTO :AUTOITINSTALLED start "" /WAIT getweb http://ponx.org/download/CD/COMdll/AutoItX3.dll C:\Ponx move C:\Ponx\AutoItX3.dll %WINDIR%\system32 :AUTOITINSTALLED regsvr32.exe %WINDIR%\system32\AutoItX3.dll %SILENCE% :: pour Direct-Animation pushd . cd /D%windir%\system32 regsvr32 danim.dll /s %windir%\System32\reg.exe DELETE "HKLM\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{B6FFC24C-7E13-11D0-9B47-00C04FC2F51D}" /v "Compatibility Flags" /f popd xcopy bis\pasram.py /Y xcopy bis\deftaches.py /Y xcopy bis\tps.cfg /Y cd /DC:\Ponx rd temp /s /q ponx.py PonxTest101.exe cd /DC:\Ponx call pluiefinstall.bat sleepm 2000 call autoitLineInstall.bat sleepm 2000 cd /DC:\Ponx ponxmajversions.py endlocal exit goto :EOF :RUN :ATTENDRUN sleepm 500 if not exist C:\Ponx\%* GOTO :ATTENDRUN move C:\Ponx\%* C:\Ponx\temp :RUNSEUL start "" /WAIT C:\Ponx\temp\%* goto :EOF :LOAD start "" getweb http://ponx.org/download/CD/Python/%* C:\Ponx :ATTENDLOAD sleepm 240 goto :EOF :LOADWAIT start "" /WAIT getweb http://ponx.org/download/CD/Python/%* C:\Ponx\temp sleepm 240 goto :EOF