-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_install_dev.cmd
More file actions
40 lines (33 loc) · 1.11 KB
/
Copy pathrun_install_dev.cmd
File metadata and controls
40 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
setlocal
fltmc >nul 2>&1
if errorlevel 1 (
echo [DictatingMe] Administrator privileges are required for a silent per-machine installation.
echo [DictatingMe] Requesting elevation...
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -FilePath '%~f0' -Verb RunAs -WorkingDirectory '%~dp0'"
exit /b
)
cd /d "%~dp0"
if errorlevel 1 (
echo [DictatingMe] Failed to enter the project directory.
pause
exit /b 1
)
if not exist "%~dp0assets\run-package.ps1" (
echo [DictatingMe] Package script is missing: assets\run-package.ps1
pause
exit /b 1
)
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0assets\run-package.ps1" -DebugBuild
set "EXIT_CODE=%ERRORLEVEL%"
if not "%EXIT_CODE%"=="0" (
echo.
echo [DictatingMe] Debug package build or silent installation failed with code %EXIT_CODE%.
) else (
echo.
echo [DictatingMe] Debug package build and silent installation completed successfully.
echo [DictatingMe] Logs: %%LOCALAPPDATA%%\DictatingMe\logs\debug
)
echo [DictatingMe] Press any key to close this window.
pause >nul
exit /b %EXIT_CODE%