Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Run installed application

Run installed application

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adam Turner
    wrote on last edited by
    #1

    If i know that there is an application installed on a PC, that is viewing my web page, is there a way in which i can run that application (outside of the browser)? If not, then if a user selects a link (or button or something) to download a winform application (and cache it) and run it on the client outside of IE? thanks for any help

    H 1 Reply Last reply
    0
    • A Adam Turner

      If i know that there is an application installed on a PC, that is viewing my web page, is there a way in which i can run that application (outside of the browser)? If not, then if a user selects a link (or button or something) to download a winform application (and cache it) and run it on the client outside of IE? thanks for any help

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      Adam Turner wrote: If i know that there is an application installed on a PC, that is viewing my web page, is there a way in which i can run that application (outside of the browser)? So, if a web page thought that cmd.exe was on a system, the browsing application should let the page run it too, huh? This is not nor should it ever be allowed. Microsoft has gotten corn-holed for this many times. If buffer overruns are a security hole, you're speaking of a black hole! So, no...no it's not possible. Adam Turner wrote: If not, then if a user selects a link (or button or something) to download a winform application (and cache it) and run it on the client outside of IE? Yes. You could also use embedded Windows Forms controls. See my article at http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=388[^] for more information. You can have a Windows Form application launch (without prompting to download so long as the .NET Framework is already installed) by using touchless deployment. Just make sure your application can run with minimal permissions and use .config files instead of the registry (which you're supposed to use anyway). With .NET 1.1, applications deployed via the Internet get a few permissions. If these are not enough, you'll have to instruct the user to install a code group in the Machine policy of their .NET Framework Configuration snap-in in the Administrative Tools. You can also deploy these via MSI package (Windows Installer) or a simple batch script that uses the caspol.exe utility that comes with the .NET Framework. See documentation for "code access security" in the .NET Framework SDK for much more information.

      -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

      A 1 Reply Last reply
      0
      • H Heath Stewart

        Adam Turner wrote: If i know that there is an application installed on a PC, that is viewing my web page, is there a way in which i can run that application (outside of the browser)? So, if a web page thought that cmd.exe was on a system, the browsing application should let the page run it too, huh? This is not nor should it ever be allowed. Microsoft has gotten corn-holed for this many times. If buffer overruns are a security hole, you're speaking of a black hole! So, no...no it's not possible. Adam Turner wrote: If not, then if a user selects a link (or button or something) to download a winform application (and cache it) and run it on the client outside of IE? Yes. You could also use embedded Windows Forms controls. See my article at http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=388[^] for more information. You can have a Windows Form application launch (without prompting to download so long as the .NET Framework is already installed) by using touchless deployment. Just make sure your application can run with minimal permissions and use .config files instead of the registry (which you're supposed to use anyway). With .NET 1.1, applications deployed via the Internet get a few permissions. If these are not enough, you'll have to instruct the user to install a code group in the Machine policy of their .NET Framework Configuration snap-in in the Administrative Tools. You can also deploy these via MSI package (Windows Installer) or a simple batch script that uses the caspol.exe utility that comes with the .NET Framework. See documentation for "code access security" in the .NET Framework SDK for much more information.

        -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

        A Offline
        A Offline
        Adam Turner
        wrote on last edited by
        #3

        thanks.... Do you know of any examples for "Windows Form application launch using touchless deployment"? I did read something about Click Once deployment from MS but that is coming in Whidbey.

        H 1 Reply Last reply
        0
        • A Adam Turner

          thanks.... Do you know of any examples for "Windows Form application launch using touchless deployment"? I did read something about Click Once deployment from MS but that is coming in Whidbey.

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          Well, the application I architected for work...but you can't have that! :) The legendary Chris Sells has an example online, but his MSI package sets up a code group with FullTrust. Normally, you don't want to do it but his little project was mostly to prove several points (but I did it first Chris...take that! :)) http://www.sellsbrothers.com/wahoo/[^] As I said in my previous reply, you pretty much code everything the same but for a good application, you want to take code access security into account. Security should be designed into the application from the beginning. If it's too late, add it ASAP. Determine which permissions (again, see the System.Security.Permissions namespace) are required (you can use these in an assembly attribute with the SecurityAction.RequestMinimum enum) and which are optional (SecurityAction.RequestOptional enum). In your code, before performing an action create the permission object (or use declarative security in the form of attributes) and assert it. Or, you can simply handle any SecurityExceptions thrown to give the user a more friendly response or, perhaps, back off certain pieces of code. This last bit isn't necessary but in a commercial application situation, you should definitely do it this way.

          -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups