Search code examples
silverlightsilverlight-oob

Access registry from Silverlight OOB


Can I access Registry from Silverlight Out Of Browser, I just want to search/read the key and get key value pairs. Is this possible?

Or, is there any other way like running a powershell script, or launching some other exe to know the values, how can I get the return values from these script/exe to my silverlight application.


Solution

  • we can do it using RegRead

        using (dynamic shell = AutomationFactory.CreateObject("WScript.Shell"))
        {
              var key = shell.RegRead(@"HKLM\SOFTWARE\Wow6432Node\......");
        }