I have created a batch file that will go through this process (except restarting your PC).
It is untested (I don’t have PiTool or my headset) so I would appreciate if @Sjef and/or some other code monkeys would take a look at it.
EDIT: It is extremely ugly but heavily commented. Who knew that commenting in a batch file would look that bad.
EDIT Here are the contents of the batch file (in case the Dropbox link gets broken at some point). To make your own batch file just copy the contents into a text file and change the extension from “.txt” to “.bat”.
REM Everything after REM is a comment.
REM How to "comment-out" (add comment) in a batch/cmd? - Stack OverflowREM Variables in case of future changes
REM cmd - Defining and using a variable in batch file - Stack Overflow
REM What are PATH and other environment variables, and how can I set or use them? - Super Userset LighthouseConfigLocation=“C:\Users\%USERPROFILE%\AppData\Local\Pimax\runtime\config\lighthouse”
set service1=“Piservicelauncher”
set service2=“PiService”
set Service2Location=“C:\Program Files\Pimax\Runtime”REM This deletes Pimax’s lighthouse configuration files
REM windows - How to delete all files and folders in a folder by cmd call - Stack Overflowdel /q %LighthouseConfigLocation%*
for /d %%x in (%LighthouseConfigLocation%*) do @rd /s /q “%%x”REM This restarts service1
REM NET.EXE: Start/stop/restart any Windows Service from the command line | The Core Technologies Blognet stop %service1%
net start %service1%REM This restarts service2
net stop %service1%
REM net start %service1% &REM This command will restart the service.
%Service2Location%%service2%.exe &REM This command will restart the service from a specified location.