You can also let Win32::TieRegistry handle REG_EXPAND_SZ for you:
$reg_key->SetValue('FOO', '%PATH%', 'REG_EXPAND_SZ');
Useless if you want to use a .reg file, but you could give your script a -install option to set the registry values itself
In reply to Re: Create MSWindows Registry REG_EXPAND_SZ entry
by Anonymous Monk
in thread Create MSWindows Registry REG_EXPAND_SZ entry
by Intrepid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |