If I remember right, I don't think users have the 'start a service' right by default. Even the administrator gets given it the first time they go to the Services panel. Installing the service as the default LocalService user (don't specify a user in the WiX file) works though. I briefly played with having the installer let the user choose the user the service should run as, and had to make a Custom Action to give that user the 'log on as a service right'. I don't have that code anymore as the requirement was dropped.
That might not be the correct way to do things, and I might have gotten the specific permission names a bit wrong, but I think that's correct. Rob MacDiarmid, James D wrote: > Ok.. Here is a snippet of my XML file. Am I missing anything from this? > > <Directory Id="BAService" > FileSource="D:\Projects\NFTS\Src\apps\nfts\NFTS V3 Batch > Processors\BAService" Name="BAServ_1" LongName="BAService"> > <Component Id="BAService" > Guid="{084F1F01-AD55-4F5D-B32D-1031C7A56347}"> > <File Id="FL_BAService.dll" Name="BAServ_1" > LongName="BAService.dll" DiskId="1" > Source="D:\Projects\NFTS\Src\apps\nfts\NFTS V3 Batch > Processors\BAService\BAService.dll" KeyPath="yes" SelfRegCost="1" /> > <ServiceInstall Id="BAService" Name="BAService" > DisplayName="NFTS Batch Audit " Type="ownProcess" Interactive="no" > Start="auto" Vital="yes" ErrorControl="normal" Account="NFTSWebUser" > Password="Nftsgroup11"> > <Permission User="Administators" > ServiceUserDefinedControl="yes" ServiceStop="yes" ServiceStart="yes" > ServiceQueryStatus="yes" ServiceQueryConfig="yes" > ServicePauseContinue="yes" ServiceInterrogate="yes" > ServiceEnumerateDependents="yes" ServiceChangeConfig="yes" > Extended="yes" /> > </ServiceInstall> > <ServiceControl Id="BAService" Name="BAService" > Start="install" Stop="both" Remove="uninstall" Wait="yes" /> > <File Id="FL_BAService.exe" Name="BAServ_1" > LongName="BAService.exe" Source="D:\Projects\NFTS\Src\apps\nfts\NFTS V3 > Batch Processors\BAService\BAService.exe" DiskId="1" KeyPath="no"> > </File> > </Component> > </Directory> > > > > -----Original Message----- > From: MacDiarmid, James D [mailto:james.macdiar...@eds.com] > Sent: Friday, March 20, 2009 12:44 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Unable to install Services due to lack of > privileges > > > I'm hoping someone can offer some direction on how to proceed. I'm in > the process of testing an MSI package on a test server however do to > server hardening restrictions it's not allowing my MSI package to > install some Services. I've contacted my SA and they seem to feel that > the account I'm logging in with has the rights to do the install. Could > I be over looking something in Wix setting? > > Thanks, > Jim > > > ------------------------------------------------------------------------ > ------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development software that enables intelligent coding and step-through > debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users