@echo off setlocal set PRJ_PATH=%~dp0 set PRJ_PATH=%PRJ_PATH:~0,-1% if not exist "%PRJ_PATH%\buildwin\CloudView" mkdir "%PRJ_PATH%\buildwin\CloudView" cd /d "%PRJ_PATH%\buildwin\CloudView" powershell -Command "Remove-Item * -Recurse -Force" copy "..\..\build\Utils\CloudView\release\CloudView.exe" .\ "C:\tools\Qt\5.15.2\msvc2019_64\bin\windeployqt.exe" "CloudView.exe" cd ..\.. set ISCC_PATH=C:\Program Files (x86)\Inno Setup 6\ISCC.exe "%ISCC_PATH%" "CloudView.iss" echo "finish" endlocal