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 |jocoo...@jackhenry.com -----Original Message----- From: Phill Hogland [mailto:phogl...@rimage.com] Sent: Wednesday, November 12, 2014 10:59 AM To: wix-users@lists.sourceforge.net 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 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