I want to write a tool to opetator win32 registty by luainterface.
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()
--
Regards,
Linker Lin
linker.m.lin@gmail.com