File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11@ echo off
22echo TimeKeep Installer
33echo ==================
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.
67echo .
78pause
89
9- PowerShell -ExecutionPolicy Bypass -File " %~dp0 install.ps1"
10- pause
10+ PowerShell -Command " Start-Process PowerShell -ArgumentList '-NoExit -ExecutionPolicy Bypass -File \" %~dp0 install.ps1\" ' -Verb RunAs"
Original file line number Diff line number Diff 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+
2729sc.exe create TimeKeep binPath= " $InstallPath \timekeep-service.exe" start= auto
2830sc.exe start TimeKeep
2931
You can’t perform that action at this time.
0 commit comments