Run License Server as Service?

Hi,

I’m new on this forum and to V-Ray/Rhino stuff so please be gentel :slight_smile:

I want to know if is possible to run the V-Ray license server for Rhino as a service on Windows Server 2003 R2? And how?

Thanks.

___
Rui Paz

Re: Run License Server as Service?

I could not find an option to install the service so I used Instsrv.exe and Srvany.exe from Windows Server 2003 Resource Kit Tools and a tip from another member http://forum.asgvis.com/index.php?topic=8849.0

copy instsrv.exe and srvany.exe to the licensing folder (the one with vrlserver2.exe C:\Documents and Settings\All Users\Application Data\ASGvis\Licensing in my case) and create the following files;

vrlserver2Service.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VRAY4Rhino\Parameters]
"Application"="C:\\Documents and Settings\\All Users\\Application Data\\ASGvis\\Licensing\\vrlserver2.bat"

vrlserver2.bat

@ECHO OFF
rem source: [url]http://forum.asgvis.com/index.php?topic=8849.0[/url]
SET VRAY_ASGVIS_FOLDER=%ALLUSERSPROFILE%\Application Data\ASGVIS\Licensing
CD %VRAY_ASGVIS_FOLDER%
SET VRAY_AUTH_CLIENT_FILE_PATH=%VRAY_ASGVIS_FOLDER%
SET VRAY_AUTH_SERVER_FILE_PATH=%VRAY_ASGVIS_FOLDER%
@ECHO ON
"%VRAY_ASGVIS_FOLDER%\vrlserver2.exe"

InstallService.bat

@echo off

SET CWD=%~dp0
"%CWD%Instsrv.exe" VRAY4Rhino "%CWD%Srvany.exe"
REGEDIT.EXE /S "%CWD%vrlserver2Service.reg"

pause

After you have all your files in the vrlserver2.exe folder run InstallService.bat and check services. You should see VRAY4Rhino service start it and check if vrlserver2.exe process is running and test.

If your install folder is not C:\Documents and Settings\All Users\Application Data\ASGvis\Licensing then you need to edit vrlserver2Service.reg

One drawback is that stopping the service does not terminate vrlserver2.exe You must terminate vrlserver2.exe using task manager.