OzDeaDMeaT Posted May 2, 2019 Posted May 2, 2019 Hi, As dedicated Servers are becoming easier to use the updater seems to be in need of some love. I am trying to find out if the dcs_updater.exe has a silent unattended execution method, I have a powershell script executing the "dcs_update.exe update @openbeta" command but when it finds a new version it prompts me to install it. Here is my current work around. update_DCS.ps1 ////////////////////////////// $DCS_BIN = "G:\Games\DCS World\bin" #Modification of any of the below lines cound produce undesirable effects #Script by OzDeaDMeaT, work around script until dcs_updater.exe has silent mode $DCS_Updater = "$DCS_BIN\dcs_updater.exe" $currentLOC = get-location $Pwrshell = New-Object -ComObject wscript.shell; set-location $DCS_BIN .\DCS_updater.exe update @openbeta write-host "Waiting 15 Seconds for Check Update Window to complete check" sleep 15; write-host "Looking for DCS Updater Window: " -nonewline $Pwrshell.AppActivate('DCS Updater') sleep 1; write-host "Key Press ~" $Pwrshell.SendKeys('~') $contLoop = $true $working = 0 while ($contLoop) { #This grabs the current tick count for the busy process sleep 30; $ticks = (get-process | where-Object {$_.Path -eq $DCS_Updater} | select TotalProcessorTime | Sort-Object TotalProcessorTime -Descending)[0].TotalProcessorTime.ticks if ($ticks -gt $working) { #Process is still working, update $working tick count $working = $ticks write-host "DCS Updater Ticks = $working" } else { write-host "Job Done, total completed ticks: $ticks" $contLoop = $false } } sleep 5; write-host "Key Press ~" $Pwrshell.SendKeys('~') set-location $currentLOC ////////////////////////////// This script is required to be run in GUI mode as there is no silent way to execute the updater. Can you please address this? Regards, OzDM 1 CPU: i9-12900K @ 4.9Ghz M/B: MSI MEG z690 Ace RAM: 128GB Video Card: MSI RTX 4090 Suprim Liquid X VR: Varjo Aero
NoDiff Posted April 18, 2023 Posted April 18, 2023 (edited) There was a new release of the Open Beta Modular installer yesterday. I haven't seen an update to the DCS_Updater.exe to enable it to be run silently. Has there been any progress on this? DCS World 2.8 Open Beta Dedicated Server (modular installer) (digitalcombatsimulator.com) Edited April 18, 2023 by NoDiff
HC_Official Posted April 18, 2023 Posted April 18, 2023 (edited) the silent option has been in for a couple of years now DCS_updater.exe --quiet update Edited April 18, 2023 by HC_Official No more pre-orders Click here for tutorials for using Virpil Hardware and Software Click here for Virpil Flight equipment dimensions and pictures. .
ColinM9991 Posted April 18, 2023 Posted April 18, 2023 28 minutes ago, HC_Official said: the silent option has been in for a couple of years now DCS_updater.exe --quiet update In fairness, it wasn't in the DCS Updater thread until I mentioned it back in 2021. https://forum.dcs.world/topic/94816-guide-info-dcs-updater-usage-version-numbers-module-ids/?do=findComment&comment=4683068 Even then, it's mostly you & me that have mentioned the switch on these forums, and there's no --help command that would pop-up a UI to show the available commands.
NoDiff Posted April 18, 2023 Posted April 18, 2023 (edited) I am trying to get this to run within a docker container. The problem is that, even with the --quiet switch, a progress bar window is presented. It would be preferable if there was also a --verbose option to output to the command-line (or pipe to a text file) instead of requiring the progress bar window. Edited April 18, 2023 by NoDiff
ED Team c0ff Posted April 19, 2023 ED Team Posted April 19, 2023 17 hours ago, NoDiff said: I am trying to get this to run within a docker container. The problem is that, even with the --quiet switch, a progress bar window is presented. It would be preferable if there was also a --verbose option to output to the command-line (or pipe to a text file) instead of requiring the progress bar window. That's possible to implement. Noted. Dmitry S. Baikov @ Eagle Dynamics LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.
NoDiff Posted April 19, 2023 Posted April 19, 2023 Just a follow-up to this, if DCS_Server.exe could be run without having to display the splash-screen window, too (headless), I believe that it would be 100% possible to run it from a docker container image. 1
Recommended Posts