Quantcast
Viewing all articles
Browse latest Browse all 14319

write to hkey_local_machine

Has anyone been able to write to hkey_local_machine?

I am trying to create a simple security that will allow anyone who logins into the computer and uses any version of AutoCAD to use my new apps.

I am trying to do this with AutoLISP since this is the only language I know.

I just found the dos_regaddkey in dos_lib, but would prefer not to have future users have to load 2 sets of software.

 

Here is what I have tried so far -

(vl-registry-read "HKEY_LOCAL_MACHINE\\SOFTWARE\\MyCompany\\Data" "" "test")

and

(setq WSobj (vlax-create-object "WScript.Shell"))

(vlax-invoke-method WSobj 'RegWrite "HKEY_LOCAL_MACHINE\\SOFTWARE\\MyCompany\\Data" "test" "REG_SZ")

(if (not (vlax-object-released-p WSobj)) (vlax-release-object WSobj))

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 14319

Trending Articles