Assuming this is Apache that is a pretty light install. One thing you are missing though is add the attribute (Arguments="-k runservice") to your <ServiceInstall> element. If you still have trouble try leaving off the account/password and run it as the local system. If that works then you know you have a permissions problem with the account.
-----Original Message----- From: Dhawal Arora [mailto:dhawal8...@gmail.com] Sent: Tuesday, March 04, 2014 11:11 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Unable to start httpd.exe service ? Hi all, This is my code <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <?if $(var.Platform) = "x64"?> <?define PlatformString = "64-bit"?> <?define Win64 ?> <?else?> <?define PlatformString = "32-bit"?> <?endif?> <Product Id="*" Name="MyExampleProject" Language="1033" Version="1.0.0.0" Manufacturer="Example" UpgradeCode="08bd3c48-deef-4370-ab94-f8b4d49406e3"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated"/> <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> <MediaTemplate /> <!--System Configuration Condition - Installation install only above Windows XP--> <Condition Message="This application is only supported on Windows XP, or higher."> <![CDATA[Installed OR (VersionNT >= 501)]]> </Condition> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='INSTALLDIR' Name='AgentFramework'> <Directory Id='INSTALLBIN' Name='bin'/> <Directory Id='INSTALLCGI' Name='cgi-bin'/> <Directory Id='INSTALLCONF' Name='conf'/> <Directory Id='INSTALLHTDOCS' Name='htdocs'/> <Directory Id='INSTALLMODULES' Name='modules'/> <Directory Id='INSTALLLOGS' Name='logs'/> </Directory> </Directory> </Directory> <UIRef Id="WixUI_Mondo" /> <Feature Id = "ProductFeature1" Title = "AgentFramework" Level = "1" Absent="allow"> <ComponentRef Id='libapr_dll'/> <ComponentRef Id='libapriconv_dll'/> <ComponentRef Id='libaprutil_dll'/> <ComponentRef Id='libhttpd_dll'/> <ComponentRef Id='Pcre_dll'/> <ComponentRef Id='PrintEnv'/> <ComponentRef Id='ServiceComponent'/> <ComponentRef Id='Index'/> <ComponentRef Id='Configurationfile'/> <ComponentRef Id='Charset'/> <ComponentRef Id='Magicfile'/> <ComponentRef Id='mimetypesfile'/> <ComponentRef Id='Authzmodule'/> <ComponentRef Id='Dirmodule'/> <ComponentRef Id='Error'/> <ComponentRef Id='Access'/> <ComponentRef Id='Install'/> </Feature> <DirectoryRef Id='INSTALLCGI'> <Component Id='PrintEnv' Guid='08BC28FA-BC92-4FCE-953C-B043C0656835'> <File Id='PrintEnv' Name='printenv.pl' DiskId='1' Source='$(sys.CURRENTDIR)\printenv.pl' KeyPath='yes'> </File> </Component> </DirectoryRef> <DirectoryRef Id='INSTALLHTDOCS'> <Component Id='Index' Guid='FB9C9D88-F2D0-41F7-AA36-A2A61D487696'> <File Id='Index' Name='index.html' DiskId='1' Source='$(sys.CURRENTDIR)\index.html' KeyPath='yes'> </File> </Component> </DirectoryRef> <DirectoryRef Id='INSTALLCONF'> <Component Id='Configurationfile' Guid='2E0D2957-10EB-463A-A4FC-62B9062FE8A3'> <File Id='Configurationfile' Name='httpd.conf' DiskId='1' Source='$(sys.CURRENTDIR)\httpd.conf' KeyPath='yes'> </File> </Component> <Component Id='Magicfile' Guid='F32A12E4-7DFC-4059-A666-C6D5AD0461E8'> <File Id='Magicfile' Name='magic' DiskId='1' Source='$(sys.CURRENTDIR)\magic' KeyPath='yes'> </File> </Component> <Component Id='mimetypesfile' Guid='2A73F6E0-8ECE-4D5B-A0AC-D283E4C8F408'> <File Id='mimetypesfile' Name='mime.types' DiskId='1' Source='$(sys.CURRENTDIR)\mime.types' KeyPath='yes'> </File> </Component> <Component Id='Charset' Guid='197AB539-BE03-4051-9366-887B26581E98'> <File Id='Charset' Name='charset.conv' DiskId='1' Source='$(sys.CURRENTDIR)\charset.conv' KeyPath='yes'> </File> </Component> </DirectoryRef> <DirectoryRef Id='INSTALLMODULES'> <Component Id='Authzmodule' Guid='62AA97B6-7821-4CB4-9F89-B2A8FF0CC6BD'> <File Id='Authzmodule' Name='mod_authz_core.so' DiskId='1' Source='$(sys.CURRENTDIR)\mod_authz_core.so' KeyPath='yes'> </File> </Component> <Component Id='Dirmodule' Guid='9966BB3B-8296-43B9-A6DC-712561303329'> <File Id='Dirmodule' Name='mod_dir.so' DiskId='1' Source='$(sys.CURRENTDIR)\mod_dir.so' KeyPath='yes'> </File> </Component> </DirectoryRef> <DirectoryRef Id='INSTALLLOGS'> <Component Id='Error' Guid='4045BC35-4366-48E2-84CB-8C751F7FFD0B'> <File Id='Error' Name='error.log' DiskId='1' Source='$(sys.CURRENTDIR)\error.log' KeyPath='yes'> </File> </Component> <Component Id='Access' Guid='C58A46BA-1F2B-41E7-9364-424D29131E10'> <File Id='Access' Name='access.log' DiskId='1' Source='$(sys.CURRENTDIR)\access.log' KeyPath='yes'> </File> </Component> <Component Id='Install' Guid='AFBA29AC-8145-42C0-BC63-5E40F147A817'> <File Id='Install' Name='install.log' DiskId='1' Source='$(sys.CURRENTDIR)\install.log' KeyPath='yes'> </File> </Component> </DirectoryRef> <DirectoryRef Id='INSTALLBIN'> <Component Id='libapr_dll' Guid='FB82D093-0B32-465B-8D8B-08B3127EB414'> <File Id='libapr_dll' Name='libapr-1.dll' DiskId='1' Source='$(sys.CURRENTDIR)\libapr-1.dll' KeyPath='yes'> </File> </Component> <Component Id='libapriconv_dll' Guid='667D6D5B-6FE4-4A6B-827F-C496239628E2'> <File Id='libapriconv_dll' Name='libapriconv-1.dll' DiskId='1' Source='$(sys.CURRENTDIR)\libapriconv-1.dll' KeyPath='yes'> </File> </Component> <Component Id='libaprutil_dll' Guid='72C688D2-8E25-49D9-9E76-F6BDBC33D394'> <File Id='libaprutil_dll' Name='libaprutil-1.dll' DiskId='1' Source='$(sys.CURRENTDIR)\libaprutil-1.dll' KeyPath='yes'> </File> </Component> <Component Id='libhttpd_dll' Guid='8946D5B1-0EA2-443E-8C20-CD8D877ACF75'> <File Id='libhttpd_dll' Name='libhttpd.dll' DiskId='1' Source='$(sys.CURRENTDIR)\libhttpd.dll' KeyPath='yes'> </File> </Component> <Component Id='Pcre_dll' Guid='0466BB2A-137C-4A95-A510-43E7A274F834'> <File Id='Pcre_dll' Name='pcre.dll' DiskId='1' Source='$(sys.CURRENTDIR)\pcre.dll' KeyPath='yes'> </File> </Component> <Component Id ="ServiceComponent" Guid="8A1BF3F0-8A84-456E-816A-5907B40B2DDB" > <File Id='Applicationfile' Name='httpd.exe' DiskId='1' Source='$(sys.CURRENTDIR)\httpd.exe' KeyPath='yes'> </File> <ServiceInstall Id="ServiceHttpd" Type="ownProcess" Name="AgentFramework" DisplayName="AgentFramework" Description="Service" Start="auto" Account="[SERVICEACCOUNT]" Password="[SERVICEPASSWORD]" ErrorControl="normal" Vital="yes" /> <ServiceControl Id="ServiceHttpd" Start="install" Stop="both" Remove="uninstall" Name="AgentFramework" Wait="yes" /> </Component> </DirectoryRef> </Product> </Wix> The installer is unable to start it shows the message insufficient priveleges to start the service, which is i guess a common error message for starting services, also the interesting thing is when i copy all the dependencies files mentioned in this code in a folder and start the service manually it starts normally, also in the configuration file i have changed the path of the server to C:/Program Files/AgentFramework but still wix is not starting service,kindly help me regarding this issue please?? Thanks Dhawal Arora ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users