I'm trying to use the Set Access Control command on a registry key for the current installing user.
During the install I added messagebox and noticed that the access control for the registry key was not changed even though using the same user that installer is running with I can change permissions.
I then tried to change it for everyone, which also failed
It seems that I can't get Set Access Control to change access.
Anything special that I need to perform?
Code sample
Code: Select all
~InstallAware Clipboard Data~
~End~
~{F3547C5C-8B6E-4557-A028-1BF69027428B}~
~MessageBox~
~{BD088721-8814-4971-8A3F-C9BB40FB6660}~
~3~
~~
~0~
~1~
~~
~Set Access Control~
~{6A05D92A-CC01-41E5-8F79-553A41BF48A7}~
~HKLM\SOFTWARE\Microsoft\Microsoft Antimalware\~
~FALSE~
~TRUE~
~FALSE~
~FALSE~
~~
~TRUE~
~FALSE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~TRUE~
~FALSE~
~FALSE~
~MessageBox~
~{3CB49F26-E39F-4AE2-BA71-7FAD4F68F5AB}~
~2~
~~
~0~
~1~
~~
~Set Variable~
~{F36A50F7-F99B-45DC-80A2-393118FE59F5}~
~NATIVE_ENGINE$MYAH$MYAH$FALSE~
~FALSE~
~Write Registry~
~{BC214C71-06A9-4D8F-8878-0826D64DAB37}~
~0~
~2|~
~SOFTWARE\Microsoft\Microsoft Antimalware\Exclusions\Paths\~
~$TARGETDIR$~
~0~
~FALSE~
~TRUE~
~Set Variable~
~{4061A2BB-B0BF-4ACA-B13A-6AF6B15817DE}~
~NATIVE_ENGINE$MYAH$MYAH$FALSE~
~TRUE~
~MessageBox~
~{2FD6299E-9FBF-48DB-83CB-372C24F7485E}~
~1~
~~
~0~
~1~
~~
~Set Access Control~
~{7DE73FCC-B026-4D9C-A608-E183ACC6589A}~
~HKLM\SOFTWARE\Microsoft\Microsoft Antimalware\~
~FALSE~
~TRUE~
~FALSE~
~FALSE~
~~
~TRUE~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~TRUE~
~FALSE~
~FALSE~
~If~
~{FD1FC717-0063-4279-A634-E6572518AC0F}~
~MSESSENTIALSINSTALLED~
~0~
~NO$KEY~
~TRUE~
~Check Registry~
~{2EBA81A6-F827-4D41-B53A-FC39A24FF700}~
~MSESSENTIALSINSTALLED|~
~2~
~SOFTWARE\Microsoft\Microsoft Antimalware\Exclusions\Paths~
~~
~End~
~{4D0C542D-2118-4D34-AA8F-55B8C75D16F5}~
~Terminate Install~
~{3EB270C6-2578-41F7-B17B-F1215A6DF248}~
~MessageBox~
~{BA53BCC7-9995-4501-B777-D553A23CE4B2}~
~$TITLE$ Setup Error~
~This product requires at least Administrator Privileges.$NEWLINE$$NEWLINE$Setup cannot continue.~
~3~
~1~
~~
~If~
~{82312EC7-CCD0-4678-A44D-18575A1CCCEA}~
~CHECKSYSTEM~
~0~
~TRUE~
~TRUE~
~Get System Settings~
~{18CA5826-E995-44A8-8F3A-97624AD39D7C}~
~CHECKSYSTEM~
~0~
Regards,
T.