Jump to content

Mortscript to change owner name


Recommended Posts

Guest 3shirts
Posted (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 by 3shirts
  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.