-
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(general conf): location scripts (issue #1127)
- Loading branch information
Showing
4 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...Executables/AtlasDesktop/3. General Configuration/Location/Disable Location (default).cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
|
||
if "%~1"=="/silent" goto :main | ||
|
||
set "___args="%~f0" %*" | ||
fltmc > nul 2>&1 || ( | ||
echo Administrator privileges are required. | ||
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || ( | ||
echo You must run this script as admin. | ||
if "%*"=="" pause | ||
exit /b 1 | ||
) | ||
exit /b | ||
) | ||
|
||
:main | ||
( | ||
sc config lfsvc start=disabled | ||
sc config MapsBroker start=disabled | ||
) > nul | ||
|
||
( | ||
sc stop lfsvc | ||
sc stop MapsBroker | ||
taskkill /f /im SystemSettings.exe | ||
) > nul 2>&1 | ||
|
||
"%windir%\AtlasModules\Scripts\settingsPages.cmd" /hide privacy-location | ||
|
||
if "%~1"=="/silent" exit /b | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |
34 changes: 34 additions & 0 deletions
34
src/playbook/Executables/AtlasDesktop/3. General Configuration/Location/Enable Location.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
|
||
if "%~1"=="/silent" goto :main | ||
|
||
set "___args="%~f0" %*" | ||
fltmc > nul 2>&1 || ( | ||
echo Administrator privileges are required. | ||
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || ( | ||
echo You must run this script as admin. | ||
if "%*"=="" pause | ||
exit /b 1 | ||
) | ||
exit /b | ||
) | ||
|
||
:main | ||
( | ||
sc config lfsvc start=demand | ||
sc config MapsBroker start=auto | ||
) > nul | ||
|
||
( | ||
sc start lfsvc | ||
sc start MapsBroker | ||
taskkill /f /im SystemSettings.exe | ||
) > nul 2>&1 | ||
|
||
"%windir%\AtlasModules\Scripts\settingsPages.cmd" /unhide privacy-location | ||
|
||
if "%~1"=="/silent" exit /b | ||
|
||
echo Finished, please reboot your device for changes to apply. | ||
pause | ||
exit /b |