Tips

Installing Second Life on a USB/Flash Drive

with permission of Brett Bixler, Penn State

Create a batch script. A batch script is just a text file. Copy this script into any editor, such as Notepad, and save it as RunSL.bat:

:BEGINNING OF SCRIPT:

: This script will launch Second Life.

: When SL is closed, it will delete temp directories that cause PSU Lab problems.

: For this script to work, the folder containing the Second Life application

: (SecondLife) must be in the same directory as this script.

@ECHO OFF

ECHO Please leave this window open.

ECHO IGNORE ANY “Profile Storage Space” MESSAGES YOU SEE!

ECHO Now launching Second Life…

ECHO.

PAUSE

CD /d %~dp0

CD SecondLife

START /wait SecondLife.exe

RMDIR /q /s “%APPDATA%SecondLife”

ECHO.

ECHO Second Life is closing. Now cleaning up your temp files…

ECHO.

PAUSE

CLS

EXIT**

:END OF SCRIPT:

 

 

How to use it:

If you are running Second Life from a USB/Flash drive, install Second Life (download the software from http://secondlife.com) directly onto the Flash drive (~70MB). Upload the above script onto the Flash drive in the same directory as Second Life. For this script to work, the folder containing the Second Life application (SecondLife) must be in the same directory as this script. You cannot change the name of the Second Life folder, or the names of anything inside the Second Life folder.

When you want to run SL, run this script to launch it.The batch script named RunSL.bat will launch Second Life when you launch it. When SL is closed, it will delete the Second Life temp directory that is stored on the C: drive in the Documents and Settings folder. This will keep the labs from forcing you to manually delete these files, as the user’s file storage space quota is exceeded when Second Life runs. Second Life runs fine without these temp files.

The Second Life application is frequently updated, and most of these updates are mandatory. If you launch Second Life and must update it, please follow the directions Second Life provides. Make sure you have enough free space on your Flash drive (~100MB) to perform a successful update.