Yes, I have been messing around with <Permission>, and so far I have this:
<DirectoryId Id="INSTALLDIR"> <Component Id="FolderPermissions" Guid="174E96BB-87D6-40B0-84A4-8FF6C58BA702"> <CreateFolder Directory="INSTALLDIR"> <Permission User="NT AUTHORITY\NetworkService" GenericRead="yes" GenericWrite="yes" /> </CreateFolder> </Component> </DirectoryId> My problem is, that I seem to REPLACE the existing permissions, where I need to ADD to them. When I do this, I complete remove all other permissions on the folder (Except for System). Shouldn't it be possible to append a new permission set, instead of replacing the existing? It doesn't seem right that I have to add ALL permissions to a folder, when it can just as well Inherit those from its parent. Thomas Due -----Original Message----- From: Wilson, Phil [mailto:phil.wil...@wonderware.com] Sent: 23. januar 2009 19:56 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problems installing a windows service I think there are some WiX built-in custom actions that set permissions - I forget if it's Permissions or something else. Phil Wilson -----Original Message----- From: Thomas Due [mailto:thomas....@scanvaegt.dk] Sent: Friday, January 23, 2009 1:17 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problems installing a windows service It was the account name. I changed it to "NT AUTHORITY\NetworkService" and presto: It installed without a hitch. Now I only have a single question (at the moment): How do I set specific permissions to a specific account on the installdir? I need to set write permissions for "NT AUTHORITY\NetworkService" on the installation directory. Thanks, Thomas Due -----Original Message----- From: Wilson, Phil [mailto:phil.wil...@wonderware.com] Sent: 23. januar 2009 01:54 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problems installing a windows service To add to this: 1) A dependent assembly that you're installing in the GAC will be an issue because they're not available until the end of the install after StartServices. 2) What would you do in other circumstances if your service crashed or would not start? This is no different really. If it doesn't start at all it's usually a dependency issue, an account issue, or a catastrophic crash as soon as it starts. Trace or debug entries are something I can't live without these days. It's not that I'm a poor developer, honest, but with TraceListeners it's so easy to put trace information that it's bad practice NOT to add Trace.WriteLine that goes to a text file somewhere. 3) Regardless of what tool you use, the underlying engine is still Windows Installer and an MSI file. Getting to know something about that is always useful. In this case, the content of the ServiceInstall table and allowed values for StartName are relevant. Anyway, I don't believe that "Network Service" is the correct name for that account. Those actual account names (as opposed to the friendly names) need to be something like NT AUTHORITY\LocalService. Perhaps NT AUTHORITY\NetworkService is the actual name. Phil Wilson -----Original Message----- From: Chad Miles [mailto:chad.mi...@gmail.com] Sent: Thursday, January 22, 2009 7:51 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problems installing a windows service Have you run depends/reflector on your file to see if your missing any dependencies by chance? On Thu, Jan 22, 2009 at 9:48 AM, Thomas Due <thomas....@scanvaegt.dk> wrote: > I am currently experimenting with WiX to see if it is something we can > use for our next generation software. > > > > My immediate thought was to simply build the complete installation from > ground-up in small steps. > > > > This have worked fine so far, now I have run into a problem though, when > I try to install a Windows Service I get this error: > > > > Service "My Name Server" (NSEngine) could not be installed. Verify that > you have sufficient privileges to install system services. > > > > The problem is, I DO have sufficient privileges to install services, at > least I haven't had any problems using the InstallUtil. > > The services have been created with VS2008 and .NET 3.5 (C#). > > > > If I use InstallUtil, they install fine, but I thought I would try doing > it the "right" way. > > > > Here is the code I am currently using: > > > > <DirectoryRef Id="INSTALLDIR"> > > <Component Id="NameServiceComponent" > Guid="53398A87-395B-4DA8-A475-04684FE5DE20"> > > <File Id="NSEngine" > > Name="$(var.NSEngine.TargetFileName)" > > Source="$(var.NSEngine.TargetPath)" DiskId="1" > KeyPath="yes" /> > > > > <ServiceInstall Id="NSEngineInstall" > > DisplayName="My Name Server" > > Name="NSEngine" > > ErrorControl="normal" > > Start="auto" > > Type="ownProcess" > > Account="Network Service" > > Vital="yes" > > Interactive="no"/> > > > > <ServiceControl Id="NSEngineControl" > > Name="NSEngine" > > Start="install" > > Stop="both" > > Remove="uninstall" /> > > </Component> > > </DirectoryRef> > > > > <Feature Id="MainFeature" Title="Main Feature" Level="1"> > > <ComponentRef Id="NameServiceComponent"/> > > </Feature> > > > > What I am doing wrong? > > > > TYI > > Thomas Due > > > > > ------------------------------------------------------------------------ ------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Chad E. Miles Software Engineer, Development Interactive Intelligence, Inc. chad.mi...@inin.com 317.715.8280 Office/Fax ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users