This project has moved. For the latest updates, please go here.
PTRunner is a program designed to run an application in partial trust in an easy and simple way. Under the covers it starts an AppDomain with a permission set and a full trust list and uses this AppDomain to run your application in.

PTRunner is a v4.0 binary, which requires the .NET Framework v4.0 beta 1 to operate. The source project requires Visual Studio 2010 Beta 1 to build.

Download PTRunner 1.0

If you are creating AppDomains or your application uses a host, you might not be able to use this program. This program is designed to offer an easy solution to those that want to run something in partial trust and don't care about the intricacies of this endeavor.

Example usage:
PTRunner -af FullTrustAssembly.dll -ps Internet Program.exe

This wil run Program.exe in a sandbox granted the Internet permission set and with FullTrustAssembly.dll as full-trust

Command Line Parameters:
PTRunner [-nro] [-ps namedPermissionSet]|[-xml ptrunner.xml] [-af fullTrustAssembly] [-url sourceUrl] programName {program arguments}

-nro No runner output. Stops the runner from printing start and stop messages.
-ps namedPermissionSet The standard permission set in which should be used to sandbox the application. This can be any one of: Nothing, Execution, Internet, LocalIntranet, Everything, FullTrust
-xml XmlFile File containing the permission set which should be used to sandbox the application. This permission set takes precedence over the -ps parameter.
-af AddToFullTrust One assembly that you want in the full trust list. Your full trust assembly must have a strong name signature. See "Strong-Named Assemblies" in MSDN for more information.
-url source URL to provide same-site access to in the sandbox
program arguments arguments for the sandboxed program. The first parameter which does not begin with a "-" is considered to be the path to the program to sandbox. All subsequent parameters are considered to be parameters for the sandboxed program itself.

Building PTRunner
Note that if you wish to build the PTRunner sources yourself, you must make two updates to the project:
  1. PTRunner.exe must be signed with a strong name signature in order to correctly operate. This means you must supply a strong name key pair in the PTRunner project when you build it.
  2. PTRunner.exe depends upon Security.dll (Security 1.1), so you will need to update the project to point at your local copy of that assembly.

Last edited Jun 8, 2009 at 6:31 PM by ceigel, version 2


No comments yet.