[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LuaIterface]How to impoort Microsoft.Win32.Registry?
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Thu, 8 Jan 2009 12:04:13 +0100
2009/1/7 Linker <linker.m.lin@gmail.com>:
> Hi,
> I want to write a tool to opetator win32 registty by luainterface.
> But , I cannot import ms classlib.Could anyone know how to?
>
> Thank you.
> P.S
> require'CLRPackage'
> module('registry',package.seeall)
>
>
> import'mscorlib.dll'
> import'Microsoft.Win32'
> local o=import'Microsoft.Win32.Registry.LocalMachine.OpenSubKey'
>
>
> function is_mssqle_installed()
> local key = Registry( "Software\\Microsoft\\Microsoft SQL Server\\", false
> )--??It doesn't work. :(
> print(key)
> return true
> end
> is_mssqle_installed()
Maybe we can help you find the problem if you give us a more
meaningful error report. "It doesn't work." is not very informative.