c# - Convert registry entry from REG_SZ to REG_DWORD? -


i've inherited application registry entries "autologoff" (and many similar items) reg_sz type has values of "0" or "1". more logical numerical (ie. dword). there simple way convert existing reg_sz entry reg_dword (change type)?

i suppose detect "upgrade old version", extract reg_sz value , delete existing registry key, re-create registry key same name reg_dword type...but seems there might easier way. using c# here, though principle i'm interested in.

there no "easy way", requires deleting value , adding back.

this not fantastic idea, if user ever restores older version of app whatever reason (it happen lot more might think) old version misbehave, not limited hard crash. not try change type, use value name. "autologoff2". machines old name disappear. effort of creating new value otherwise same. yuck factor high.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -