Skip to content

Commit 2f2d1bc

Browse files
committed
updated batch file
1 parent f96d71b commit 2f2d1bc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

scripts/install.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@echo off
22
echo TimeKeep Installer
33
echo ==================
4-
echo This will install TimeKeep as a Windows service.
5-
echo You may need to approve Administrator privileges.
4+
echo.
5+
echo This will open PowerShell as Administrator.
6+
echo Please approve the UAC prompt.
67
echo.
78
pause
89

9-
PowerShell -ExecutionPolicy Bypass -File "%~dp0install.ps1"
10-
pause
10+
PowerShell -Command "Start-Process PowerShell -ArgumentList '-NoExit -ExecutionPolicy Bypass -File \"%~dp0install.ps1\"' -Verb RunAs"

scripts/install.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if ($CurrentPath -notlike "*$InstallPath*") {
2424
[Environment]::SetEnvironmentVariable("Path", $NewPath, "Machine")
2525
}
2626

27+
$env:Path = $env:Path + ";" + $InstallPath
28+
2729
sc.exe create TimeKeep binPath= "$InstallPath\timekeep-service.exe" start= auto
2830
sc.exe start TimeKeep
2931

0 commit comments

Comments
 (0)