Please see the section Controlling Download and Execution in http://msdn.microsoft.com/library/default.asp url=/workshop/browser/hosting/wbcustomization.asp