dexter23 Posted October 10, 2007 Share Posted October 10, 2007 (edited) Is possible to read some registry value, then delete that value and then write back? I use this script, but does not work RegRead("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", "") $REG1 = RegRead("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", "") RegDelete("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", $REG1) RegWrite("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", $REG1) That value is C:\Program Files\Adobe\Reader 8.0\Reader Edited October 10, 2007 by dexter23 Link to comment Share on other sites More sharing options...
weaponx Posted October 10, 2007 Share Posted October 10, 2007 $REG1 = RegRead("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", "") RegDelete("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", "") RegWrite("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath","", $REG1) Link to comment Share on other sites More sharing options...
dexter23 Posted October 10, 2007 Author Share Posted October 10, 2007 It works, but with REG_SZ: $REG1 = RegRead("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", "") RegDelete("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath", "") RegWrite("HKCU\Software\Adobe\Acrobat Reader\8.0\InstallPath","","REG_SZ", $REG1) Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now