Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Win32::Registry#[]=

[]=(name, rtype, value = nil)

Write value to a registry value named name.

If wtype is specified, the value type is it. Otherwise, the value type is depend on class of value: :Integer

Example
REG_DWORD

:String

Example
REG_SZ

:Array

Example
REG_MULTI_SZ
See also #[] #close .wtime2time #create also in 3.3 · 3.2 · 3.1 · 3.0