Re: Portable HP Prime Emulator Message #4 Posted by fhub on 3 Oct 2013, 8:29 a.m., in response to message #1 by bluesun08
Quote:
Is it possible to install the HP Prime Emulator on portable USB stick
Yes, that's quite simple! :-)
You only need to change one string in HPPrime.exe with an hexeditor, and that's the Unicode-string APPDATA which should be changed to HPPRIME (for example). After this patch the data files are no longer put into %APPDATA%\HP_Prime but instead into \HP_Prime in the current main-directory (on the USB stick).
Do you know how to make this patch with an hexeditor, or should I provide a ready-to-use solution (i.e. an automatic patch-file)?
PS: Or an other idea which needs no patching at all:
1) copy your installed HP-Prime folder to an USB-stick
2) in this folder on the USB-stick create a batch-file 'PortablePrime.bat' (or 'PortablePrime.cmd' if you prefer) with the following content:
@echo off
set APPDATA=.
start HPPrime.exe
3) now always start the Prime-emulator with 'PortablePrime.bat' (instead of directly with 'HPPrime.exe') - this will create (and use) the data-directory 'HP_Prime' within your emulator folder on the USB-stick.
There may be only one problem: it could be that you need admin rights to (temporarily) change the %APPDATA% variable - I don't know because I'm always working as admin on my PC. If this method works only as admin, then the above way with patching the HPPrime.exe must be used.
Franz
Edited: 3 Oct 2013, 9:01 a.m.
|