Interesting question, because LMS is effectively portable by design.
Never installed it on Windows myself though so I'm not sure how they
organized things to start LMS using an exe rather than a shell (cmd/bat)
command.

My guess is that it is the exe that makes it a static install, so that
will need to go and you should start LMS same as is done on e.g. Linux.
>From the current installation copy the folder that contains the file
`slimserver.pl` and it's entire content. The next thing you require is
Perl and the OS specific code LMS indicates that this is installed in
C:\perl and I don't think this is portable. A portable version of Perl
does exist however and can be downloaded 'HERE'
(https://strawberryperl.com/releases.html). Make sure to get the version
for which Windows arch specific are included in LMS which I believe is
5.14 - verify by running `C:\Perl\bin\perl.exe -v`

Create a batch file with the following content on the USB stick.

Code:
--------------------
    
  @echo off
  rem Edit the following two lines to match the folders on your USB stick - do 
not enter a drive letter or starting/trailing backslash
  set perlpath=myperl
  set lmspath=logitechmediaserver
  
  set params=
  :readvars
  if "%1" == "" goto start
  set params=%params% %1
  shift
  goto readvars
  
  :start
  set drive=%~d0
  set 
PATH=%drive%\%perlpath%\perl\site\bin;%drive%\%perlpath%\perl\bin;%drive%\%perlpath%\c\bin;%PATH%
  set TERM=dumb
  set PERL_JSON_BACKEND=
  set PERL_YAML_BACKEND=
  set PERL5LIB=
  set PERL5OPT=
  set PERL_MM_OPT=
  set PERL_MB_OPT=
  
  perl.exe %drive%\%lmspath%\slimserver.pl %params%
  
--------------------


------------------------------------------------------------------------
gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050
View this thread: http://forums.slimdevices.com/showthread.php?t=115600

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to