Client and Server in a USB Stick

Asked by Gabriel Martinez

I was experimenting with Xibo, and installed it in a laptop with Windows 7 and XAMPP in "portable" setting (not running the setup and in a directory from the startup drive), ran with no errors that can I tell. That itself means that in a USB stick with XAMPP at least the Xibo Server is capable of running (albeit in a unsafe manner, not for production). My question is, I do know that there is a Xibo Client with a setup for Windows, but is there a way to install to the USB stick in a portable way (say like copying some files at a ...\XiboClient directory and running/executing a file) so then a batch file could load xampp, load the server, load the client? This as a proof of concept or a "show and tell" to a possible client or friend.

Question information

English Edit question
Xibo Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :

You can try copying the install folder from a machine where you have run the setup on to the memory stick.

The machine would have to have the correct .net frameworks installed (which kind of defeats the point of it being portable).

The other issue you'll have is that the Microsoft .net configuration management class we use stores the client configuration in a different folder on each PC based on the MSI file that installed the files (and presumably the registry).

You might get away with having it create those directories and files by running the options dialogue and saving, but I don't think you will be able to pre-populate it without writing a replacement configuration manager for the .net framework.


Revision history for this message
Bartek (czajka) said :

user.conf problem could be workarounded by some simple script that would launch client for one second, kill it, grep for created script, and put there a expected content, there is my example in bash (windows version of course) that i've used to autoupdate binary

cd "User's dir \ Local Settings \ Application Data" //could be extracted by some vbscript for example
cd "Xibo Player"

FILES=`grep -R YOURSERVERKEY XiboClient.exe* |cut -d':' -f1`

if [ "$((`echo $FILES | wc --words`))" != "1" ]; then
 echo "More than one config, exiting"
 exit 0

rm -r Xibo*
sleep 3
pskill XiboClient.exe
NEWFILE=`find . -name 'user.config'`

cat correctconfig > $NEWFILE

Revision history for this message
Bartek (czajka) said :

Hmm, there is some nonsense in that scipt, in effect of stripping it for instal instead of update

FILES=`grep -R YOURSERVERKEY XiboClient.exe* |cut -d':' -f1`

if [ "$((`echo $FILES | wc --words`))" != "1" ]; then
 echo "More than one config, exiting"
 exit 0

piece is not nessessary :)

Can you help with this problem?

Provide an answer of your own, or ask Gabriel Martinez for more information if necessary.

To post a message you must log in.