Hi Brian, try to use the (language independent) SID for the network service account (SID: S-1-5-20, see http://support.microsoft.com/kb/243330/en-us for a list of well-known SIDs). Usually those are used inside curly brackets {S-1-5-20}, but I am not sure if that works directly with WiX.
Worst case you would have to write a custom action that retrieves the actual account name for the SID. This could be done through ADSI Provider binding by SID and then get the distinguished name, see http://msdn.microsoft.com/en-us/library/ms675562(VS.85).aspx -----Original Message----- Date: Tue, 14 Apr 2009 11:47:32 -0700 From: Brian Gillespie <br...@mcneel.com> Subject: [WiX-users] Installing .NET service as "NT Authority\Network Service" fails on some locales of Windows XP To: wix-users@lists.sourceforge.net Message-ID: <49e4da44.8090...@mcneel.com> Content-Type: text/plain; charset="iso-8859-1" >Hi all, > >Our installer installs a service that should run on XP/Vista as "NT >Authority\Network Service". > >We're using custom actions to set a McNeelUpdateServiceName property >appropriately, and then use that property in the <ServiceInstall> action. > >Depending on how I spell "Network Service" the user account name, >installation of the service either succeeds or fails with error 1923 - >but it's not consistent on all platforms. > >Attached is the wxs file that defines the installation of the service. > >Here are the various configurations I've tried: > > > *NT Authority\Network Service >* *NT Authority\NetworkService >* *Network Service >* *NetworkService >* >Windows XP English > Works > Fails > Fails > Fails >Windows XP Spanish > Fails > Works > ? ? >Vista 64 English > Works > Works > ? > ? >Vista 32 Spanish > Fails > Works > ? > ? > > >Is it really true that installing services on Windows is this hard? > >This leaves me with three options: > > 1. Have a bunch of special cases and detect the "correct" verison of > NetworkService based on the local system settings. This will be > lots of fun, given that we have customers all over the world. > 2. Determine a one-size-fits-all version of "NT Authority\Network > Service" that work on all platforms. > 3. Install as LocalSystem. That seems irresponsible from a principle > of least-privilege perspective. > >Any other ideas? Help! > > - Brian > >Brian Gillespie >Rhinoceros Development | Robert McNeel & Associates | >http://www.rhino3d.com > >/"In theory, there is no difference between theory and practice. But, in >practice, there is."/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users