Dedicated servers/Automatic updates
|It has been suggested that this article or section be merged with Dedicated servers.
- Reason: Could be incorporated into § How do I update the Dedicated Server?
- Please discuss this on the Discussion page.
This page describes how to automate dedicated server updates.
You can use the Non-Sucking Service Manager to automate the update process
First, you need to make a batch file to update FactoryServer.exe. Open a text editor of your choice, and paste the below code:
For Early Access:
"C:\Program Files (x86)\Steam\steamcmd.exe" +force_install_dir "C:\GameServers\SatisfactoryServer" +login anonymous +app_update 1690800 -beta public validate +quit "C:\GameServers\nssm.exe" start SatisfactoryServerService
"C:\Program Files (x86)\Steam\steamcmd.exe" +force_install_dir "C:\GameServers\SatisfactoryServer" +login anonymous +app_update 1690800 -beta experimental validate +quit "C:\GameServers\nssm.exe" start SatisfactoryServerService
Where the first path is to SteamCMD, the second path is to the folder with FactoryServer.exe, and the third path is to the folder with nssm.exe.
Now press Ctrl+S, and save the file to the directory with FactoryServer.exe (in our case, C:\GameServers\SatisfactoryServer) as "update.bat"
Once you've downloaded and installed NSSM, navigate to the directory containing nssm.exe and run the below command:
nssm.exe install SatisfactoryServerUpdate
This will pull up a GUI for configuration. Set the "Path" to the location of update.bat. Then, go to "Details", change "Startup Type" to "Automatic", and then click "install". Next, run this command:
nssm.exe edit SatisfactoryServerService
Now, Go to "Details" and change "Startup Type" to "Manual". When finished, click "Edit Service".
Finally, run this command:
nssm.exe start SatisfactoryServerUpdate
This will start the update process, and then start the server once finished.
nssm.exe status SatisfactoryServerUpdate # Checks the status of the Service