[Mono-list] Where to start to carry my application on Mac OS ?

Robert Jordan robertj at gmx.net
Tue Dec 8 04:39:08 EST 2009


Stifu wrote:
> Read the part on "Path Separators" here:
> http://www.mono-project.com/Guidelines:Application_Portability

This does not apply to registry keys.

Mono's registry does not contain the "Software" key by default.
If you want to access this key you have to create it first:

...
RegistryKey software = Registry.LocalMachine.OpenSubKey ("Software");
if (software == null)
	software = Registry.LocalMachine.CreateSubKey("Software");
...

Robert

> 
> 
> Amyco wrote:
>>
>> Ok, I followed the process stated:
>> Load + Install Tools for Visual Studio
>> Load + Install Mono 2.4.2.3 for Windows
>>
>>
>> My first application is running a little. The first Prolems is RegistryKey
>> OpenSubKey.
>>      
>> Dim KeyApp As RegistryKey = Registry.LocalMachine.OpenSubKey (PathKey)
>>
>> PathKey = "SOFTWARE \ \ My Software \ \"        and it did not work.
>>
>> What is the format to use here?
>>
>> Many thank.
>>
> 



More information about the Mono-list mailing list