Portable

Ideas for enhancements to the software
wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Thu Aug 02, 2007 12:52 pm

Rochey wrote:wraithdu, Thanks for the latest version of Portable Sandboxie.
I'd like to make a request that you have the option to delete the "%AppData%\Sandbox" folder when you exit Portable sandboxie.
You can do this from Sandboxie's own settings actually.

Configuration -> Sandbox Settings -> Set Automatic Clean-Up Options -> Checkbox at the top of the page

This will delete the contents of the sandbox each time there are no running processes (but leave the 'Sandbox' root folder I believe).


---------------------
I thought about putting this into the launcher, but there are a few hangups.

1. The sandbox will not always be located in '%AppData%\Sandbox'. The user is free to change this in the INI file. So the value for BoxRootFolder would have to be read from the INI file, assuming it exists. There is the possibility to use FileRootPath for individual sandboxes.

2. NSIS does not understand/expand Shell Folder tokens like Sandboxie does. So I'd have to test if a token is used, separate it from the rest of the path, then find it and read it from the registry, place the expansion back into the path, then execute the command. This gets more complicated if the value is only in 'User Shell Folders' becuase all those values start with %USERPROFILE%, which is an environment variable. NSIS CAN expand env variables, however.

3. If you're worried about security then simply deleting the sandbox directory is not the way to go. You'll want to use some secure file wiper, like eraser to do that.


All that said, I'll take it into consideration again.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

SandboxiePortable_2.2.0.8.zip

Post by wraithdu » Fri Aug 03, 2007 1:27 am

Updated SandboxiePortable -

I added the option to delete the sandbox on exit.

To enable, add 'DeleteSandbox=1' anywhere in the '[GlobalSettings]' section. If this value is 0 or missing, the launcher will not try to delete the sandbox. Keep in mind that if you modify the INI through the Sandboxie interface it will probably remove this setting since it is unrecognized. You'll have to re-add it manually.

Caveats -
1. If the path uses tokens, they must exist in the 'Shell Folders' key or 'User Shell Folders' key, just like Sandboxie requires. It is not compatible with Sandboxie specific tokens such as %SID%.

2. There can only be one token in the path, and it must be at the beginning of the path. For example - %AppData%\Sandboxes

3. It is incompatible with 'FileRootPath' settings for individual sandboxes. It will only read the 'BoxRootFolder' setting, and if it is missing or empty, will not run the delete routine.

Please check the sandbox directory presented in the dialog and make sure it is correct before proceeding. The launcher will check for the existence of the expanded directory before presenting the delete dialog, but JUST DOUBLE CHECK.

Keep in mind this is a simple delete function. If you want to securely wipe the directory, you'll have to do it separately from the launcher.


<< Download from new thread - http://sandboxie.com/phpbb/viewtopic.php?t=2299 >>


** NOTE: If you have a custom INI file, please retain it.

** DO NOT USE on a system with a locally installed version of Sandboxie!!


Changelog:

v2.2.0.8

- added option to delete sandox on exit
Last edited by wraithdu on Tue Oct 23, 2007 3:52 pm, edited 2 times in total.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Fri Aug 03, 2007 10:46 am

Sorry to pull this one so quick. I just got to thinking, if I went this far, why not go all the way?

New version coming soon with support for Eraser to securely wipe the sandbox.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

SandboxiePortable_2.2.0.9.zip

Post by wraithdu » Fri Aug 03, 2007 12:09 pm

Updated SandboxiePortable (again) -

** rev1 - quick fix to add handling for the Eraser registry key created by eraserl.exe

Now you can use Eraser to wipe your Sandbox!!

First download Eraser 5.82 from http://www.heidi.ie/eraser/ Extract 'eraserl.exe' and 'Eraser.dll' to the 'App\Sandboxie' directory.

To enable, add these to your Sandboxie.ini under the [GlobalSettings] section -

DeleteSandbox=1
EraserMethod=<choose a method>

The launcher will detect if 'eraserl.exe' exists and present you the appropriate dialog to use it. If the method is blank or missing, Eraser will use the 3-pass DoD_E method by default. If you specify something unsupported as a method, Eraser will fail. Valid methods are (also found by double clicking eraserl.exe) -

Gutmann
DoD
DoD_E
Random <# of passes>, ie - Random 2
Library

PLEASE READ THE README.TXT


<< Download from new thread - http://sandboxie.com/phpbb/viewtopic.php?t=2299 >>


** NOTE: If you have a custom INI file, please retain it.

** DO NOT USE on a system with a locally installed version of Sandboxie!!


Changelog:

v2.2.0.9

- added ability to wipe the sandbox using Eraser
Last edited by wraithdu on Tue Oct 23, 2007 3:52 pm, edited 2 times in total.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

SandboxiePortable_2.2.1.0.zip

Post by wraithdu » Thu Aug 09, 2007 1:30 am

Updated SandboxiePortable -

Mostly a few bug fixes for rare minor problems with the new delete routine. See changelog for new stuff. Comments welcome!!

PLEASE READ THE README.TXT


<< Download from new thread - http://sandboxie.com/phpbb/viewtopic.php?t=2299 >>


** NOTE: If you have a custom INI file, please retain it.

** DO NOT USE on a system with a locally installed version of Sandboxie!!


Changelog:

v2.2.1.0

- Few bug fixes in cleanup and delete routines (rare)

- Removed superfluous 'SystemDrive' token. Sandboxie reads Environment Variables.

**NOTE - User defined Environment Variables must be defined in the SYSTEM space to work with Sandboxie.

- Moved 'PortableDrive' and 'LaunchDir' tokens to 'Shell Folders' key for compatibility with delete routine

- Added reading of Environment Variables to delete routine since there are some tokens, like %SystemDrive%, that do not exist in the 'Shell Folders' or 'User Shell Folders' keys

- Included INI file is now the default Sandboxie INI, with the addition of the ByteOrderMark=yes setting (for compatibility with Notepad++ and other editors)

**NOTE - I recommend changing the BoxRootFolder to %SystemDrive% to avoid very long path errors (ie Comodo Firewall Pro). It is left as %AppData% in the INI only because it is still Sandboxie's default setting.

- Included a CrashCleanup utility. This will remove any traces of SandboxiePortable in the event of a system crash, and delete the sandbox according to your INI settings (see README.txt).
Last edited by wraithdu on Tue Oct 23, 2007 3:53 pm, edited 3 times in total.

Rochey
Posts: 27
Joined: Fri May 04, 2007 7:40 pm
Location: UK
Contact:

Post by Rochey » Fri Aug 10, 2007 5:18 am

Wraithdu,

Can you move crashcleanup.exe into a lower folder please? (eg. into App or data) The reason being I have this on my usb drive and it appears in my PortableApps menu (which is very cool!!!) but unfortunately crashcleanup appears in my menu too.

Cheers Rochey

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Fri Aug 10, 2007 5:49 am

Rochey wrote:Can you move crashcleanup.exe into a lower folder please? (eg. into App or data) The reason being I have this on my usb drive and it appears in my PortableApps menu (which is very cool!!!) but unfortunately crashcleanup appears in my menu too.
I thought about the best place to put this. I didn't want to bury it, and I also wanted to give PApps users the ability to have it in the PApps menu. Unfortunately this version of the PApps menu is a bit inflexible in this respect for users who don't want to see it. I've heard that the beta versions (and some mods) allow you to hide apps and add custom ones. Personally I use PStart anyway, so it's not an issue.

I'd like to get a few more opinions before I move it to another directory.

eternalbeta
Posts: 89
Joined: Thu Jan 18, 2007 9:48 am

Post by eternalbeta » Sun Aug 12, 2007 10:11 am

Thanks wraithdu, terrific package this latest portable version. I'll try to install Eraser also with my standalone sandbox! :D

warwagon
Posts: 34
Joined: Sun Jun 03, 2007 4:32 pm

Post by warwagon » Sun Aug 12, 2007 5:10 pm

How do I have sandboxie portable keep the application data on the thumbstick and not the hard drive

I've tried changing the default location for application data but then it throws up a registry error.

Guest

Re: SandboxiePortable_2.2.1.0.zip

Post by Guest » Mon Aug 13, 2007 9:27 am

wraithdu wrote:Updated SandboxiePortable
v2.2.1.0
Nice job, wraithdu, thanks!

But I can't start it anymore. I'm getting an error twice from KmdUtil:
ControlService Start: The system cannot find the path specified.

With process explorer I can see that SandboxiePortable runs this command:
"v:\bin\SandboxiePortable\App\Sandboxie\kmdutil.exe" start SbieDrv
from folder v:\bin\SandboxiePortable\

I went back to start an earlier, working version and it does the same now.
What could have happened?

When I ran the new version for the first time I was getting this error:
Sandboxie Portable - 2.2.1.0
SbieSvc exists on local system.
SandboxiePortable will not be executed.

So, without giving it much thought, I ran CrashCleanup.exe. Since then I'm getting the ControService Start errors. Another thing I did was changing BoxRootFolder=%RootDrv% (RootDrv is defined at boot time). I tried changing it back to %AppData% but I still get the same error.

same Guest

Post by same Guest » Mon Aug 13, 2007 2:34 pm

OK I figured it out, SandboxiePortable is OK.
I was getting those error messages because the service can't be started from a substituted drive (SUBST.EXE). I changed the path to a real drive and Sandboxie started OK.
I was then also getting error SBIE1406 "Missing or invalid expansion for RootDrv", the environment variable that I had substituted for %AppData% in BoxRootFolder=%RootDrv%. Apparently Sandboxie doesn't take environment variables - only ShellFolders keys as explained here. I was misled from a sentence in the SandboxiePortable README file into thinking that BoxRootFolder could be set with an environment variable. That's true - I guess - only of settings handled by SandboxiePortable directly.
README.txt wrote:Caveats -
1. If the path uses tokens, they must exist in the 'Shell Folders'
key, 'User Shell Folders' key, or in the Environment Variables, just
like Sandboxie requires

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Mon Aug 13, 2007 7:16 pm

That's strange, I tested Sandboxie with the %SystemDrive% and %ALLUSERSPROFILE% tokens which are evironment variables only (not Shell Folders) and it worked fine.

If you open a cmd.exe prompt and just type 'set' do you see your %RootDrv% variable and expansion? If so, then you might want to post this in the Sandboxie problems forum and wait for an answer from tzuk.

wraithdu
Posts: 1410
Joined: Fri Jun 29, 2007 2:54 pm

Post by wraithdu » Mon Aug 13, 2007 7:18 pm

warwagon wrote:How do I have sandboxie portable keep the application data on the thumbstick and not the hard drive

I've tried changing the default location for application data but then it throws up a registry error.
I need a little more info please. Where did you try to change the sandbox location, and what is the error?

To change the sandbox location you should edit BoxRootFolder= under the [GlobalSettings] section. You would then use the %PortableDrive% token provided by the SandboxiePortable launcher to reference your removeable media.

eternalbeta
Posts: 89
Joined: Thu Jan 18, 2007 9:48 am

Post by eternalbeta » Tue Aug 14, 2007 6:44 am

wraithdu, the original thread you had on Roboform2go has been closed but I wondered if you succeeded to get it to work in the portable sandbox in the mean time.

Unfortunately, I've tried "everything" but I can't get it up and running. The combination with firefox works fine from my U3 stick with Roboform2go popping up as the PRO version but when set as forced programs in your portable sandboxie it always pops up as a Free version as at that point it doesn't recognize its license anymore.

As a roboform addict (I always forget my login info's) I'm getting desperate. So I wondered if you succeeded to get it to work in the portable sandbox in the mean time. I'll keep my fingers crossed :lol:

Guest

Re: SandboxiePortable_2.2.1.0.zip

Post by Guest » Tue Aug 14, 2007 12:38 pm

[quote="wraithdu"]Updated SandboxiePortable - PLEASE READ THE README.TXT

I've Just come across Sandboxie and am going to set it up for my USB key to try.
But your README.TXT says:
....download the latest version of Sandboxie from the author's website - http://www.sandboxie.com/
Open it with 7-zip. Extract the contents of the root of the
archive (the Sandboxie program files) to the


The current Sanboxie d/load is an EXE installer and won't allow opening with 7zip even if renamed. Perhaps you might want to change the read me file or point to a different download.

JRN

Locked

Who is online

Users browsing this forum: No registered users and 1 guest