Is there any way to lock a registry value from being changed. In my script Im updating the value but when i launch the application it changes the value back to its original form.

2 Comments   [ + ] Show Comments

Comments

  • Change permissions on the parent key, though you can't for the reg entry itself. Remove rights for users/administrators groups based on your needs.
  • Ill see how that works, thanks.
Please log in to comment

Answers

0

This might blow your mind a bit, took me a bit to get my head around it. Thats if you want to do it natively in MSI.

http://msdn.microsoft.com/en-us/library/windows/desktop/dd408009(v=vs.85).aspx

Read this, it has a helper thingee as well.
http://csi-windows.com/blog/all/27-csi-news-general/230-tutorial-how-to-use-the-msilockpermissionsex-table-and-csigetsddlfromobject-helper-script

Cheers and good luck.

 

 

Answered 06/03/2013 by: rileyz
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share