Shell execute an EXE in Isolated Storage

为君一笑 提交于 2019-12-11 05:35:20

问题


Is it possible to shell execute an exe which is stored in the isolated storage space. In silverlight


回答1:


Apperently you can't.

From the first answer on the linked article:

You can not execute anything outside of the Silverlight sandbox.




回答2:


Looks like you can do it in SL 4.0. Check this post http://www.youpvp.com/blog/post/Silverlight-meet-ShellApplication.aspx




回答3:


In an OOB app with elevated privs, it should be possible to copy a stream to a file in the users private folders and then use Shell COM objects to run the file.

You can't do this from the browser or a standard OOB silverlight app.




回答4:


Honesty I don't see how it should be possible since that would break the whole idea of running things in a sandbox. Even raised privileges shouldn't allow it, and if it is I would rate it as a critical security flaw in Silverlight.




回答5:


This is very useful for me: http://forums.silverlight.net/forums/p/183587/417015.aspx

Look the last "Ken Tuker" post:

private void AppLoaded(object sender, RoutedEventArgs e)
        {
            if(App.Current.HasElevatedPermissions)
                {
                string strPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\test.txt";
                StreamReader sr = new StreamReader(strPath);
                textBlock1.Text = sr.ReadToEnd();
                }
        }


来源:https://stackoverflow.com/questions/2154202/shell-execute-an-exe-in-isolated-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!