Guest 3shirts Posted December 24, 2008 Report Posted December 24, 2008 (edited) I want a script that will change the owner name, run an app, then change it back. I assumed this would work: RegWriteString ("HKCU","ControlPanel\Owner","Name","Different Name") Runwait( "\My Storage\Program Files\APP.exe" ) RegWriteString ("HKCU","ControlPanel\Owner","Name","My Name") [/codebox] But while it does change that string in the registry ok, it doesn't seem to be enough. I looked in the reg and found a binary key which I assume is the name in hex so I tried this: [codebox]RegWriteString("HKCU","ControlPanel\Owner","Name","Different Name") RegWriteBinary("HKCU","ControlPanel\Owner","Owner","#####################################") RunWait("\My Storage\Program Files\APP.exe") RegWriteString("HKCU","ControlPanel\Owner","Name","My Name") RegWriteBinary("HKCU","ControlPanel\Owner","Owner","#####################################") Obviously with the #'s being the correct notation (which I found by manually changing the name and noting this value in the reg). This seems to work for changing it but not changing it back! How can that be? Edited December 24, 2008 by 3shirts
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now