I have to run aspnet_setreg.exe with username/password and a
reg key for website permissions. I want to set full control rights to “NETWORK SERVICE”
account on this reg key. Aspnet_setreg.exe executable gets copied during install. Permissions
are getting overridden By the custom action I have, and I want to set “Container
Inherit” flags on Permission, how to do that. This is what I am doing currently … I have the executable and permissions under my feature like
this, which works fine. It sets permissions correctly, thanks to easy to use wix. <Component Id="ASPNET_SETREGComponent" DiskId="1"
Guid=" 89207826-a643-4d8a-8a3d-650e0db10460"> <File Id="aspnet_setreg.exe"
Name="ASPNET_1.EXE" LongName="aspnet_setreg.exe" /> <Registry Id="ASPNET_SETREGPermissions"
Root="HKLM" Key="SOFTWARE\$(var.FullCompanyName)\aspnet\ASPNET_SETREG"
> <Permission
User="NetworkService" ChangePermission="yes" GenericAll="yes"
/> <Permission
User="Administrators" ChangePermission="yes" GenericAll="yes"
/> <Permission
User="CREATOR OWNER" ChangePermission="yes" GenericAll="yes"
/> </Registry> </Component> I have this CustomAction to run aspnet_setreg exe
with user name/password. This also works fine. <!-- ASPNET_SETREG.exe adding
username/password to registry --> <CustomAction Id="ASPNetSetRegTask" Return="ignore"
FileKey="aspnet_setreg.exe" ExeCommand='-k:"[ASPNET_IDENTITY_KEY]" -u:[SERVICEDOMAIN]\[SERVICEUSERNAME]
-p:[SERVICEPASSWORD]' Execute="commit" /> In the InstallExecuteSequence I have
these two actions. <Custom Action="" Sequence="5350">NOT
Installed</Custom> <WriteRegistryValues Sequence="5200" /> If I run this installer on Windows Server 2003, aspnet_setreg
CA run is overriding the permissions set by registry key on the ASPNET_SETREG
part of the reg key, above that the NETWORK SERVICE permission
is still there. This CA run is creating permissions
for SYSTEM/CREATOR OWNER/Administrators, than appending to the
permissions. I tried using Extend=”yes” in WIXCA.wixlib, but it didn’t help either.
Seems like a bug in aspnet_setreg, but I want to fix this in our installer
side or give workaround. I tried changing the sequence, but with not much
luck. I found in the internet that
I need to set “Container Inherit” flags on the permissions to have
the permission inherited, which I am considering as workaround.
If I set this manually on the permissions->Advanced
menu, it works fine. Is there a way to do this in
WIX or thru some coding outside?. I am running our installer
on .net 1.1/win2003 environment. Thanks in advance, - chandra |
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users