The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Portable HP Prime Emulator
Message #1 Posted by bluesun08 on 3 Oct 2013, 6:55 a.m.

Is it possible to install the HP Prime Emulator on portable USB stick so that i could switch between several PC's without install the Emulator locally (because of restricted user rights on pc's on universities or high schools)? That would be a smasher - also compared to TI !

      
Re: Portable HP Prime Emulator
Message #2 Posted by Adrien Bertrand on 3 Oct 2013, 7:56 a.m.,
in response to message #1 by bluesun08

You should try copying all the files from the install folder on your USB stick and see if it works when launched directly from there, on another PC.

Also, just so you know, the TI-Nspire community emulator is just an .exe to run, nothing to install ;)

            
Re: Portable HP Prime Emulator
Message #3 Posted by Tim Wessman on 3 Oct 2013, 10:14 a.m.,
in response to message #2 by Adrien Bertrand

Yes, the emulator will run just fine from anywhere. It does not yet have a "use local directory" setting for file storage though. I will put that in the list of possible future enhancements. Thank for the suggestion.

TW

Edited: 3 Oct 2013, 10:15 a.m.

      
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.

            
Re: Portable HP Prime Emulator
Message #5 Posted by Miguel Toro on 3 Oct 2013, 12:00 p.m.,
in response to message #4 by fhub

Wow! That works like a charm. I used HxD and chose replace all with UNICODE check box, well, checked.

Thank you Franz for the tip.

                  
Re: Portable HP Prime Emulator
Message #6 Posted by fhub on 3 Oct 2013, 1:04 p.m.,
in response to message #5 by Miguel Toro

Quote:
Wow! That works like a charm. I used HxD and chose replace all with UNICODE check box, well, checked.

Thank you Franz for the tip.


You're welcome, Miguel.

And if you don't want this data directory 'HP_Prime' to be in the root folder of the USB-stick, then you can just use the same trick I've described in my PS:
Run the emulator with a batchfile (as in my previous posting), and simply make the 2nd line 'set HPPRIME=.' (if you have replaced APPDATA by HPPRIME). Instead of '.' you can also use any other folder on your USB-stick.

Franz

            
Re: Portable HP Prime Emulator
Message #7 Posted by bluesun08 on 3 Oct 2013, 1:18 p.m.,
in response to message #4 by fhub

Thank you Franz. But i'm not an expert in Hex-editing. Can you provide a ready-to-use solution for me?

                  
Re: Portable HP Prime Emulator
Message #8 Posted by fhub on 3 Oct 2013, 1:37 p.m.,
in response to message #7 by bluesun08

Quote:
Thank you Franz. But i'm not an expert in Hex-editing. Can you provide a ready-to-use solution for me?
Ok, here are both methods:
http://www.hpmuseum.org/guest/fhub/method1.zip
http://www.hpmuseum.org/guest/fhub/method2.zip

Method1 is a patch for HPPrime.exe (just unzip it to the emulator folder and run Patch.bat): this method creates the data folder in the root of the USB-stick.
(BTW, running Patch.bat once more restores the original HPPrime.exe again, it works like a toggle)
Remark: works only for the last (i.e. current) emulator version from 13.8.2013!

Method2 is just a batchfile: unzip it to the emulator folder and run PortablePrime.bat whenever you want to use the emulator. This method creates the data folder within the emulator folder (and doesn't need to modify HPPrime.exe, thus will also work for any future versions).

Choose whatever method you like more ... ;-)

Edited: 3 Oct 2013, 5:23 p.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall