Classification: Public So below is to "translate" localservice built in account, cool
Thanks, Steve Sigh Why would Microsoft localize specific accounts, guest/administrator/network service/localsystem etc... sigh... [Latest TITUS News!]<http://www.titus.com/TMCPolicy_footer_link_landingpage.php> This message has been marked as Public by Steven Ogilvie on November-12-14 12:03:51 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: Phill Hogland [via Windows Installer XML (WiX) toolset] [mailto:ml-node+s687559n7597871...@n2.nabble.com] Sent: November-12-14 11:59 AM To: Steven Ogilvie Subject: 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. ________________________________ 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-tp7597867p7597871.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/7597873/0/image001.png> -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RE-setting-permissions-when-creating-folder-P-tp7597873.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