@echo off rem ========================================== rem Winit Helper launcher rem ========================================== rem Always run from the project directory. cd /d "%~dp0" rem Relaunch as administrator when needed. if not "%1" == "am_admin" ( rem you'd better keep the following line as it is. powershell.exe -NoProfile -Command "Start-Process -FilePath '%~f0' -ArgumentList 'am_admin' -Verb RunAs" exit /b ) rem ========================================== rem Run main script rem ========================================== echo Calling main.ps1... rem Remove Zone.Identifier from copied or downloaded project files. powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Get-ChildItem -LiteralPath '%~dp0' -Recurse -File -Include *.ps1,*.psm1,*.bat,*.cmd,*.json,*.yaml,*.yml,*.reg | Unblock-File -ErrorAction SilentlyContinue" powershell.exe -NoExit -NoProfile -ExecutionPolicy Bypass -File ".\bin\main.ps1"