@echo off chcp 65001 >nul title Installation ZOLIV-EXPRESS echo. echo ============================================ echo Installation de ZOLIV-EXPRESS echo ============================================ echo. set "CHROME=" if exist "%ProgramFiles%\Google\Chrome\Application\chrome.exe" set "CHROME=%ProgramFiles%\Google\Chrome\Application\chrome.exe" if exist "%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" set "CHROME=%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe" if exist "%LocalAppData%\Google\Chrome\Application\chrome.exe" set "CHROME=%LocalAppData%\Google\Chrome\Application\chrome.exe" set "EDGE=" if exist "%ProgramFiles%\Microsoft\Edge\Application\msedge.exe" set "EDGE=%ProgramFiles%\Microsoft\Edge\Application\msedge.exe" if exist "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" set "EDGE=%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" set "BROWSER=" if defined CHROME set "BROWSER=%CHROME%" if not defined BROWSER if defined EDGE set "BROWSER=%EDGE%" if not defined BROWSER ( echo Chrome ou Edge introuvable. Ouverture dans le navigateur par defaut... start "" "https://zoliv-express.com" pause exit /b ) powershell -NoProfile -ExecutionPolicy Bypass -Command "$d=Join-Path $env:LOCALAPPDATA 'ZOLIV-EXPRESS'; New-Item -ItemType Directory -Force -Path $d|Out-Null; Invoke-WebRequest -UseBasicParsing 'https://zoliv-express.com/images/pwa/favicon.ico?v=20260811-logo' -OutFile (Join-Path $d 'ZOLIV-EXPRESS.ico'); $s=New-Object -ComObject WScript.Shell; $sc=$s.CreateShortcut([Environment]::GetFolderPath('Desktop')+'\ZOLIV-EXPRESS.lnk'); $sc.TargetPath='%BROWSER%'; $sc.Arguments='--app=https://zoliv-express.com/'; $sc.IconLocation=(Join-Path $d 'ZOLIV-EXPRESS.ico')+',0'; $sc.Description='ZOLIV-EXPRESS - Plateforme de livraison'; $sc.Save()" echo. echo L'icone ZOLIV-EXPRESS a ete creee sur votre bureau. echo Double-cliquez dessus pour ouvrir l'application. echo. pause