View Full Version : Long term suggestion: Executing bundled EXEs on medium with no write access
Petr Schreiber
06-11-2008, 16:24
Hi Roberto,
I can see you prepair some really nice features now, so to not flood you with work take this as long term suggestion, no press.
The only situation when bundled EXE cannot be used is when I burn it on CD / DVD. It is quite easy to write some menu or presentation in ThinBasic now, but once it is on CD, it cannot extract its files so it is problem to run it.
Solution could be extracting/loading the DLLs to memory or some kind of injection to EXE?
Petr
RobertoBianchi
06-11-2008, 18:10
Quite complex, we can arrange the bundle to use DLLs from memory but I'm perplexed about others script resource.
May be better prepare a CD or DVD with full ThinBASIC installation and source script obfuscated.
You can also explore the new Bundle features and try with %TEMP% or other know environment variables.
Ciao,
Roberto
ErosOlmi
06-11-2008, 18:18
Petr,
with the new features Roberto is adding about exploding into parametrized directory, I think it will be possible to store bundled EXE on a read only support and execute from a temp folder.
Also the script must be written in such a way needed output files (like .ini config files or other) been written in user profile directory and not current or script folder.
User profile directory can be determined using os_getspecialfolder(%CSIDL_PROFILE).
Anyhow, let's see next thinBasic preview and test.
Ciao
Eros
Petr Schreiber
06-11-2008, 20:33
Thanks,
there is lot of time to solve this task, no hurry.
Petr
ErosOlmi
07-11-2008, 09:26
Petr,
new thinBundle isolation flag and the possibility to indicate environ variables can already do the job you requested (present in thinBasic preview 1.7.0.0 refresh 20081106).
We are working on isolation flag in order to check little problems tested this night but if you indicate %TEMP% as Extraction Folder, you should be able to execute thinBasic bundled exe also from readonly media.
Let me know.
Ciao
Eros