Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Posts
    187

    Grin Changing Registry Permissions

    Hey everyone,

    I didn't find anything through the search, but is it possible or does anyone have any ideas for changing the permissions on registry keys? Of course the user would have permission to change reg perms. But i'd like to be able to change read/write for different groups/users, toggle permission inherency, etc.

    Also, now that I'm mentioning registry permissions, what about file permissions too?

    Any thoughts?

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    I'm not sure about registry permissions as I have never tried that, but to get or set file or folder permissions, check out the File.GetAttributes and File.SetAttributes actions.

  3. #3
    Join Date
    Jun 2002
    Posts
    42
    See: http://setacl.sourceforge.net/

    I used the SetACL ActiveX control in conjunction with LuaCOM in my AMS project to set both file and registry permissions and it worked well.

    Been a while since I used it, but a quick example for you:

    PHP Code:
    System.RegisterActiveX(_SourceFolder.."\\Tools\\Resources\\DLL\\SetACL.ocx");

    objSetACL luacom.CreateObject("SETACL.SetACLCtrl.1");
    if (
    objSetACLthen
        objSetACL
    :SetObject(My_Folder1);
        
    objSetACL:SetAction(1);
        
    objSetACL:AddACE("S-1-5-32-545"true"full"0false11);
        
    objSetACL:Run();
    end
    objSetACL 
    nil;

    objSetACL luacom.CreateObject("SETACL.SetACLCtrl.1");
    if (
    objSetACLthen
        objSetACL
    :SetObject("HKLM\\SOFTWARE\\My_Key"4);
        
    objSetACL:SetAction(1);
        
    objSetACL:AddACE("S-1-5-32-545"true"full"0false11);
            
    objSetACL:Run();
    end
    objSetACL 
    nil;

    System.UnregisterActiveX(_SourceFolder.."\\Tools\\Resources\\DLL\\SetACL.ocx"); 

Similar Threads

  1. HOWTO: Merge Registry Keys
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2003, 09:31 AM
  2. Registry Features
    By Dwayne in forum Setup Factory 6.0
    Replies: 1
    Last Post: 02-21-2003, 03:30 AM
  3. INFO: Finding Shell Folders in the Registry
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 03:52 PM
  4. Updating the environment after changing registry
    By dwybo in forum Setup Factory 6.0
    Replies: 2
    Last Post: 09-30-2002, 12:45 PM
  5. Registry permissions question
    By ChuckBae in forum Setup Factory 6.0
    Replies: 1
    Last Post: 09-06-2002, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts