Well, they'd still be portable; I'm going by the definition that
portable simply means ''able to be run without installation'' however they're not
stealth when they write to the Application Data folder instead of your portable drive.
However, I'm mostly wanting ThinLoader for when programs are dumb and want to write to parts of the registry or Windows/System folder on a computer with limited user privileges. Without Admin privileges you still have write access to the Application Data folder don't you?
Either way, it's sucky that it creates an additional subfolder in its original form, but the flexibility of allowing you to choose where the sandbox ends up is, in my opinion, worth the annoyance.
Oh, and don't get wrong, I've already used ThinLoader in a writable environment where the sandbox is on the portable storage; I just also have a read-only-capable flash drive that I use for diagnostics and malware fighting that would benefit from being able to write to the local machine.
---
Let's see, possible ways to improve the ThinLoader application...
- Add *.cmd and *.scr to list of executable types (cmd is the WinNT preferred extension for batch files and *.scr are screensavers which are simply normal executables).
- Consider changing ''choosemain'' to ''set''. It's simpler and coinciders with the ''run'' command-line's 3 letter size.
Code: Select all
AutoItSetOption("TrayIconHide", 1)
If $CmdLine[0] = 0 Then
$var = IniRead("T:\\ThinLoader.ini", "ThinLoader", "Launch", "Unset")
If $var = "Unset" Then
$var = FileOpenDialog("Choose program to launch into ThinLoader sandbox", ".", "Executables (*.exe;*.scr;*.com;*.bat;*.cmd;*.pif)|All Files (*.*)")
If @error Then
MsgBox(4096,"","No File(s) Chosen")
Else
Run($var)
EndIf
Else
Run($var)
If @error Then MsgBox(4096,"ThinLoader","Error Executing "+$cmd+":\n"+@error)
EndIf
ElseIf $CmdLine[1] = "set" Then
If $CmdLine[0] = 2 Then
IniWrite("T:\\ThinLoader.ini", "ThinLoader", "Launch", $CmdLine[2])
Else
MsgBox(0, "ChooseMain", "Choose default program to launch with ThinLoader")
$var = FileOpenDialog("Choose default program to launch with ThinLoader", "T:\", "Executables (*.exe;*.scr;*.com;*.bat;*.cmd;*.pif)|All Files (*.*)")
If @error Then
MsgBox(4096,"T:\","No File(s) Chosen")
Else
IniWrite("T:\\ThinLoader.ini", "ThinLoader", "Launch", $var)
EndIf
EndIf
ElseIf $CmdLine[1] = "run" Then
If $CmdLine[0] = 2 Then
Run($CmdLine[2])
Else
$var = FileOpenDialog("Choose program to launch into ThinLoader sandbox", ".", "Executables (*.exe;*.scr;*.com;*.bat;*.cmd;*.pif)|All Files (*.*)")
If @error Then
MsgBox(4096,"","No File(s) Chosen")
Else
Run($var)
EndIf
EndIf
EndIf
I mainly changed capitalization a little and adjusted the open file windows.
---
May we get more details about what settings are used by Thinstall?
Namely, what folders are/aren't sandboxed? I seem to be able to write to My Documents, while C drive's root and the system folders are sandboxed (this is good). Are other drive's sandboxed? Is My Documents the only non-sandboxed part of the file system?
Is the registry entirely sandboxed (again, good if so)?
Queue