@echo off
chcp 936 >nul
title 门店采集软件 一键更新
echo.
echo  正在准备更新，请稍候...
powershell -NoProfile -ExecutionPolicy Bypass -Command "try { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 } catch {}; $p = Join-Path $env:TEMP 'gl-update.ps1'; try { (New-Object Net.WebClient).DownloadFile('https://jiuzhoujingwei.com/download/update-collector.ps1', $p); & $p } catch { Write-Host ('下载更新脚本失败：' + $_.Exception.Message); Write-Host '请检查网络后重新双击本工具。'; Read-Host '按回车键退出' }"
