Lock a Registry key
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
-
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. - dandirk 11 years ago
-
Ill see how that works, thanks. - Brockk7 11 years ago
Answers (1)
Please log in to answer
Posted by:
rileyz
11 years ago
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.