views:

609

answers:

4

Hi everyone,

I would like to know if there is any way to launch a local application with silverlight. I'm having some security problems doing this with a user control embedded in IE 8, so I would like to convert this into silverlight app. This little issue is stopping me to go forward with silverlight, so if any suggestion, I would appreciate to hear it.

Thanks in advance..

Carlos.

+2  A: 

this would totally invalidate Silverlight security model. So, good luck with that. Pretty sure you can not do it. This is what officially is known as a "Bad Thing."

Things I learned from Jurassic Park: Just because you CAN do something doesn't mean you SHOULD do something.

Muad'Dib
+1 Beat me to it.
ChrisF
Fairly true if a little draconian. Its only bad when abused by malicious people. Its sad though that now we consider even the thought of doing something which a malicious person might abuse as being a "bad thing" in its own right.
AnthonyWJones
+1  A: 

This will be, theoretically possible, using COM interop with Silverlight OOB in SL4, but you will still have the same security issues, and in addition, add some deployment issues.

In order to do this directly from within IE, you'll need to make an add-in that gets installed with proper security permissions. Any "automatic" model for this would violate the standard IE security policies, so there is no direct means of getting from browser->local system.

Reed Copsey
There's not a way to sign the silverlight app to execute a local application. Applets in java can do it by signing the applet, so it can execute the local notepad, calculator, etc...In silverlight is this possible or not?Thanks...
Carlos
No - Silverlight doesn't allow this. SL 4, though, if you give it trust, and run it out of browser, can use COM components, which are full trusted native code, and can do anything...
Reed Copsey
A: 

Thank you for your answer, Muad'Dib et Reed.

I understand your point of view Muad'Dib, but I need a solution which can work with javascript (back and forth) and WCF locally. Javascript to handle an applet java, and WCF to communicate with the local application I want to launch from my "usercontrol"/"app silverlight" in Internet Explorer. But I need a way to make this work without having the security issues in the client's machine (changing .Net framework configuration nor IE config.).

What could it be the best approach to do this? if possible, security settings automatically configured.

Thanks a lot for your time.

** I'm not an expert with silverlight, i just trying to find a workaround to achive my goal.

Carlos
@Carlos: Welcome to Stackoverflow, please take few minutes to review the FAQ. This not a forum or newsgroup. For example your comments above should have been attached to the @Maud'Dib's answer using the `add comment` link on that answer. Note you can still do that and delete this answer.
AnthonyWJones
A: 

It seems to me that you ought to post a question about the developement of the user control you already have. Ultimately no matter what technology you use you will need to get the user to opt-in manually. Silverlight when hosted by a browser is designed to live in nice and secure sandbox that it can't get out of. It isn't the answer to your problem in this case.

AnthonyWJones