So I sort of followed the instructions posted at the very top of this thread:
I opened a command prompt running as administrator and then ran the following commands:
npm install -g prismcast
prismcast service install
Now, after running the prismcast service install command, I got a bunch of error messages. So I put all of that in Chat GPT and it gave me the following commands to run which successfully installed the service and created a task to boot up at startup of Windows 11:
1. Create a Service script
Create a file, for example:
C:\prismcast\prismcast-service.cmd
Put this inside:
@echo off
cd /d "C:\Users\stive\AppData\Roaming\npm\node_modules\prismcast"
set PRISMCAST_SERVICE=1
"C:\Program Files\nodejs\node.exe" dist\index.js
In this code above, obviously I have my own paths to the prismcast node modules and node.exe so you'll need to figure out what the paths are on your machine and put them in there.
2. Create the scheduled task manually (run CMD as administrator)
schtasks /Create ^
/TN "PrismCast" ^
/TR "C:\prismcast\prismcast-service.cmd" ^
/SC ONLOGON ^
/RL HIGHEST ^
/F
Now I go a step further to have all of this run entirely hidden, like literally nothing pops up at startup. But if you go to your task manager and look at everything running, you'll see node running which indicates the prismcast service is successfully running. Here's how I accomplished that:
1. Go to your task in task scheduler and make sure the following are checked under the general tab:
"Run whether the user is logged on or not"
"Run with highest privelages"
DO NOT check "run only when user is logged on"
2. Select the Actions Tab and do the following:
For Program/script:
C:\Windows\System32\cmd.exe
For Arguments (this is the location of the .cmd file that you created earlier):
/c "C:\prismcast\prismcast-service.cmd"
And finally for Start in (the location of the folder that the .cmd file is located in):
C:\prismcast
And that should do it! Let me know if you have any other questions!