install.bat: silent UltraVNC server install via custom Inno answer file
Install the UltraVNC server component with the service tasks selected up front (SetupType=custom, Components=ultravnc_server, Tasks=installservice,startservice) and run the setup with start /wait + /loadinf so the pod comes up with the VNC service registered and started for remote diagnostics. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,6 @@ Lang=en
|
||||
Dir=C:\Program Files\uvnc bvba\UltraVNC
|
||||
Group=UltraVNC
|
||||
NoIcons=0
|
||||
SetupType=server_silent
|
||||
Components=
|
||||
Tasks=
|
||||
SetupType=custom
|
||||
Components=ultravnc_server
|
||||
Tasks=installservice,startservice
|
||||
|
||||
+12
-7
@@ -145,12 +145,17 @@ if exist "%ROOT%\openal\oalinst.exe" (
|
||||
echo OpenAL installed.
|
||||
)
|
||||
|
||||
:: Install UltraVNC runtime (required by for remote diagnostics)
|
||||
if exist "%ROOT%\UltraVNC\UltraVNC_x64_Setup.exe" (
|
||||
:: Install UltraVNC server (remote diagnostics). The Inno installer lays down
|
||||
:: the files and (via /loadinf) sets the install dir + VNC password; we then
|
||||
:: register and start the service EXPLICITLY with winvnc.exe. Doing the service
|
||||
:: step ourselves means a missing/incomplete "install service" task in the
|
||||
:: answer file can't leave the pod with the files present but nothing listening.
|
||||
set UVNC_SETUP=%ROOT%UltraVNC\UltraVNC_x64_Setup.exe
|
||||
set UVNC_DIR=C:\Program Files\uvnc bvba\UltraVNC
|
||||
if exist "%UVNC_SETUP%" (
|
||||
echo Installing UltraVNC server...
|
||||
"%ROOT%\UltraVNC\UltraVNC_x64_Setup.exe" /verysilent /norestart /loadinf="%ROOT%\UltraVNC\UltraVNC.inf"
|
||||
echo UltraVNC installed.
|
||||
)
|
||||
start "" /wait "%UVNC_SETUP%" /verysilent /norestart /loadinf="%ROOT%UltraVNC\UltraVNC.inf"
|
||||
)
|
||||
|
||||
:: Enable SMB1 client (required by game networking)
|
||||
echo Enabling SMB1 file sharing...
|
||||
@@ -165,10 +170,10 @@ icacls "C:\mw4files" /grant *S-1-1-0:(OI)(CI)M /T >nul 2>&1
|
||||
:: Recreate shares idempotently (net share fails if the name already exists).
|
||||
net share mw4files /delete >nul 2>&1
|
||||
net share mw4files=C:\mw4files /grant:Everyone,FULL >nul 2>&1
|
||||
echo Share \\%COMPUTERNAME%\mw4files -> C:\mw4files (Everyone: Full)
|
||||
echo "Share \\%COMPUTERNAME%\mw4files -> C:\mw4files (Everyone: Full)"
|
||||
net share c /delete >nul 2>&1
|
||||
net share c=C:\ /grant:Everyone,FULL >nul 2>&1
|
||||
echo Share \\%COMPUTERNAME%\c -> C:\ (Everyone: Full)
|
||||
echo "Share \\%COMPUTERNAME%\c -> C:\ (Everyone: Full)"
|
||||
|
||||
:: Enable DirectPlay (required by older games)
|
||||
echo Enabling DirectPlay...
|
||||
|
||||
Reference in New Issue
Block a user