Skip to content

Instantly share code, notes, and snippets.

@andywhitt
Created February 20, 2012 14:21
Show Gist options
  • Save andywhitt/1869434 to your computer and use it in GitHub Desktop.
Save andywhitt/1869434 to your computer and use it in GitHub Desktop.
MonoMac Registry Writing - when GetValue
441 RegTestApp stat /Users/andy/.mono/registry
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/LocalMachine
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/volatile-keys/LocalMachine
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/LocalMachine
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/4.0/../registry/LocalMachine
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/registry
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono/registry
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle/mono
441 RegTestApp stat /Applications/RegTestApp.app/Contents/MonoBundle
441 RegTestApp mkdir /Applications/RegTestApp.app/Contents/MonoBundle/mono
Caused by:
using MonoMac.AppKit;
namespace RegTestApp
{
class MainClass
{
static void Main (string [] args)
{
NSApplication.Init ();
Microsoft.Win32.Registry.GetValue (@"HKEY_LOCAL_MACHINE\Software\MyCompany", "Logging", 0);
NSApplication.Main (args);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment