Classification: General Business
Right but he says:

" I have resolved this now (see earlier post) but I am on Windows XP (and
Vista) and I am fairly sure that WIX_ACCOUNT_NETWORKSERVICE or the others do 
not work with PermissionsEx, I have looked at the code and I don't see anything 
to handle it. But as I have now found out it is not necessary because 
PermissionsEx does the same thing using its own well-known account names - 
shame this isn't documented :-). "

His earlier post " 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 "

So I am confused, can I use [WIX_ACCOUNT_NETWORKSERVICE]?

Steve

-----Original Message-----
From: John Cooper [mailto:jocoo...@jackhenry.com]
Sent: November-12-14 12:28 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] [SPAM] Re: setting permissions when creating folder... 
[GB]

This thread involving Neal may help:

http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/PermissionEx-and-WixQueryOsWellKnownSID-properties-td788238.html
 

Once upon a time he had the same problem.
--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing 
Development Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com


-----Original Message-----
From: Steve-Ogilvie [mailto:steven.ogil...@titus.com]
Sent: Wednesday, November 12, 2014 11:12 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] [SPAM] Re: setting permissions when creating folder... 
[GB]

Classification: General Business

So I would use: <util:PermissionEx User="[WIX_ACCOUNT_NETWORKSERVICE]" 
GenericWrite="yes" GenericRead="yes" />  ??



Steve





[Latest TITUS News!]<http://www.titus.com/TMCPolicy_footer_link_landingpage.php>



This message has been marked as General Business by Steven Ogilvie on 
November-12-14 12:10:52 PM.

The above classification labels were added to the message by TITUS Message 
Classification.
For more information visit www.titus.com<http://www.titus.com/>.

From: John Cooper-2 [via Windows Installer XML (WiX) toolset] 
[mailto:ml-node+s687559n7597875...@n2.nabble.com]
Sent: November-12-14 12:08 PM
To: Steven Ogilvie
Subject: Re: [SPAM] Re: setting permissions when creating folder...

These properties in the Util extension may also be useful:

<Fragment>
        <Property Id="WIX_ACCOUNT_LOCALSYSTEM" Secure="yes" />
        <CustomActionRef Id="WixQueryOsWellKnownSID" />
    </Fragment>
    <Fragment>
        <Property Id="WIX_ACCOUNT_LOCALSERVICE" Secure="yes" />
        <CustomActionRef Id="WixQueryOsWellKnownSID" />
    </Fragment>
    <Fragment>
        <Property Id="WIX_ACCOUNT_NETWORKSERVICE" Secure="yes" />
        <CustomActionRef Id="WixQueryOsWellKnownSID" />
    </Fragment>
    <Fragment>
        <Property Id="WIX_ACCOUNT_ADMINISTRATORS" Secure="yes" />
        <CustomActionRef Id="WixQueryOsWellKnownSID" />
    </Fragment>
    <Fragment>
        <Property Id="WIX_ACCOUNT_USERS" Secure="yes" />
        <CustomActionRef Id="WixQueryOsWellKnownSID" />
    </Fragment>
    <Fragment>
        <Property Id="WIX_ACCOUNT_GUESTS" Secure="yes" />
        <CustomActionRef Id="WixQueryOsWellKnownSID" />
    </Fragment>

--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing 
Development Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|[hidden email]</user/SendEmail.jtp?type=node&node=7597875&i=0>



-----Original Message-----
From: Phill Hogland [mailto:[hidden 
email]</user/SendEmail.jtp?type=node&node=7597875&i=1>]
Sent: Wednesday, November 12, 2014 10:59 AM
To: [hidden email]</user/SendEmail.jtp?type=node&node=7597875&i=2>
Subject: [WiX-users] [SPAM] Re: setting permissions when creating folder...

Use the Well-Known SID to look up the localized name for built-in accounts.

I think the C# code would look like this:
                    string aSID = new
SecurityIdentifier(WellKnownSidType.LocalServiceSid, null).ToString();
                    string domain_localService = new 
System.Security.Principal.SecurityIdentifier(aSID).Translate(typeof(System.Security.Principal.NTAccount)).ToString();
                    this._localServiceName = 
domain_localService.Split('\\').Last();


Your post made me realize that I probably have the same issue in one of my 
setups.  Thanks.  I adapted the above code from similar code used to look up 
another localized built-in account, and have yet to test this particular change.




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/setting-permissions-when-creating-folder-tp7597867p7597871.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=7597875&i=3>
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended exclusively for the individual or entity to which it is addressed. The 
message, together with any attachment, may contain confidential and/or 
privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please immediately advise the sender by reply email and delete all 
copies.


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=7597875&i=4>
https://lists.sourceforge.net/lists/listinfo/wix-users

________________________________
If you reply to this email, your message will be added to the discussion below:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/setting-permissions-when-creating-folder-tp7597867p7597875.html
To unsubscribe from setting permissions when creating folder..., click 
here<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7597867&code=U3RldmVuLk9naWx2aWVAdGl0dXMuY29tfDc1OTc4Njd8ODU3MjA0NTIw>.
NAML<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


image001.png (6K) 
<http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/attachment/7597876/0/image001.png>




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RE-SPAM-Re-setting-permissions-when-creating-folder-GB-tp7597876.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended exclusively for the individual or entity to which it is addressed. The 
message, together with any attachment, may contain confidential and/or 
privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution is strictly prohibited. If you have received this message in 
error, please immediately advise the sender by reply email and delete all 
copies.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 
This message has been marked as General Business by Steven Ogilvie on 
November-12-14 1:37:47 PM.

The above classification labels were added to the message by TITUS Message 
Classification. 
For more information visit www.titus.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to