Ok I found the answer - "use the source Luke".
 
In secureobj.cpp which is the code that run PermissionEx account names like 
"NetworkService" are coded to lookup the account using the well known SID 
values not as I had assume by looking up the name "NetworkService" like 
non-known accounts.
 
There are 10 special account names you can use, I think this should be added to 
the documentation - I will try and do this and raise a bug with the patch. 
 
Neil
 
Neil Sleightholm
X2 Systems Limited
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
 

________________________________

From: [EMAIL PROTECTED] on behalf of Rob Mensching
Sent: Thu 28/08/2008 00:07
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] PermissionEx and WixQueryOsWellKnownSID properties



Did you try "NetworkService"?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neil Sleightholm
Sent: Wednesday, August 27, 2008 15:26
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] PermissionEx and WixQueryOsWellKnownSID properties

I am trying to change the permissions on a registry key like so:



        <RegistryKey Id="RegCommon" Root="HKLM"
Key="SOFTWARE\ACME\Common" Action="create">

          <util:PermissionEx GenericAll="yes"
User="[WIX_ACCOUNT_NETWORKSERVICE]" />

        </RegistryKey>



But when I run it I get this error in the log:

ExecSecureObjects:  Error 0x800706fd: failed to get sid for account: NT
AUTHORITY\NETWORK SERVICE

Action ended 23:15:46: InstallFinalize. Return value 3.



Is it possible to use the WixQueryOsWellKnownSID properties with
PermissionEx? Alternatively can I specify a SID (e.g. S-1-5-20) for the
value of PermissionEx/@User?



(I can't hardcode the network service account name as it changes on
international versions of Windows.)



Neil



Neil Sleightholm
X2 Systems Limited
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to