$cs.Reg\_SetString
Syntax
Section titled “Syntax”$cs.Reg_SetString(string registryroot, string regkey, string regvalue, string regdata)
Parameters
Section titled “Parameters”registryroot
Root key (HKLM or HKEY_LOCAL_MACHINE, HKCU, HKU)
regkey
Registry keypath
regvalue
Registry value (will be created if not existing)
regdata
Registry string value to write
Example
Section titled “Example”$cs.reg_setstring("HKLM","SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ImgBurn","DisplayIcon","${env:ProgramFiles(x86)}\Imgburn\ImgBurn.exe")returns nothing