Yea. I have some ideas.
Registry is the main problem.
Idea #1
Use batch files and substitute for drives
1. Move all files (program and mail) to memory stick
(for example to E:\TheBat)
2. run command:
subst x: E:\TheBat
3. Change registry values to new disk X:
First of all - Mail Directory:
==========================
[HKEY_CURRENT_USER\Software\RIT\The Bat!]
"Working Directory"="X:\\Mail\\"
==========================
3. Make image of registry for TheBat
regedit /e x:\TheBat.reg "HKEY_CURRENT_USER\Software\RIT\The Bat!"
4. create start up batch file, something like that:
==========================
rem "dot" means current directory (root of memory stick)
subst x: .\TheBat\
rem Import registry file to system
regedit x:\TheBat.reg
rem Starting...
x:\TheBat.exe
==========================
5.
After closing TheBat you can refresh registry to file:
regedit /e x:\TheBat.reg "HKEY_CURRENT_USER\Software\RIT\The Bat!"
and you can clear system registry values using reg-file:
================================================
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\RIT\The Bat!]
================================================
WARNING, it is only idea and not tested, but i think it will be work.
Any comments?
Any questions?
If this idea is not enough good for you,
i'll try provide you with another one
(using Window Scripting Host and without SUBST).
Hmm...
May be I'll place TheBat on my memory stick too....
