Thank you , Thank you , Thank you  !!!
 
It's works.
 
I've create 2 functions in my fact
 







*def key_exists?(path_reg)  begin    
Win32::Registry::HKEY_LOCAL_MACHINE.open(path_reg, 
::Win32::Registry::KEY_READ | 0x100 )    return true  rescue    return 
false  endend*
 







*def readkey(path_reg,value)  begin    mykey = 
Win32::Registry.open(Win32::Registry::HKEY_LOCAL_MACHINE,path_reg,Win32::Registry::Constants::KEY_READ
 
| 0x100)    return mykey[value]  rescue    return false  endend*
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b6fdccad-55d1-4f79-ba5c-f2aab0056b9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to