Hi David, thanks a lot for your answer. This was indeed the error. I moved the keypath to the file element and it works now :-)
Alexander Am Wed, 21 Sep 2011 10:42:23 +0100 schrieb "David Watson" <dwat...@sdl.com>: > Oops don't think I explained that well, you should try moving the > keypath=yes from the component element to the file element. > > Also making a verbose log will tell you why its failing. > > Msiexec /i blob.msi /l*v log.txt > > > > -----Original Message----- > From: David Watson [mailto:dwat...@sdl.com] > Sent: 21 September 2011 10:36 > To: wix-users > Subject: Re: [WiX-users] problems with service installation > > From ServiceInstall Element docs... > > "The service executable installed will point to the KeyPath for the > Component. Therefore, you must ensure that the correct executable is > either the first child File element under this Component or > explicitly mark the appropriate File element as KeyPath='yes'." > > Its good practice anyway for a file or registry key to be the keypath > of each component. > > Dave > > -----Original Message----- > From: Alexander Nagel [mailto:alexan...@acwn.de] > Sent: 20 September 2011 17:37 > To: wix-users > Subject: [WiX-users] problems with service installation > > Hi all, > > i want to create a msi package with a daemon / service configuration, > but the installation of the service fails. To be more clear, the files > are copied to the right place and even the firewall rules are working. > But the service ... no chance. I tested the msi package in XP SP3, > Server 2003 and Server 2008. Everywhere the package installs the files > and the firewall rules, but not setup the service. > Can please someone give me hint, whats it's missing? > Regards, > > Alexander > > > Here is a snippet of the .wxs file > > <?xml version="1.0"?> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" > xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension" > xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> > [...] > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder" Name="PFiles"> > <Directory Id="ZABBIXDIR" Name="Zabbix"> > > <Component Id="ZabbixDaemon" > Guid="990fb5e8-2e00-4ce1-afab-edf972930707" KeyPath="yes"> <File > Id="ZabbixAgentDaemon" Name="zabbix_agentd.exe" DiskId="1" > Source="Dateien\win32\zabbix_agentd.exe" /> <ServiceInstall > Id="ZabbixService" Name="Zabbix Monitoring" Type="ownProcess" > Interactive="no" Vital="no" Start="auto" ErrorControl="normal" > Arguments="[ZABBIXDIR]/zabbix_agentd.conf" /> <ServiceControl > Id="ZabbixServiceController" Name="Zabbix Monitoring" > Start="install" Stop="both" Remove="uninstall" Wait="no" /> > > <fire:FirewallException IgnoreFailure="yes" Id="ZabbixAgentFWX" > Name="Zabbix Agent" Profile="all" Protocol="tcp" Port="10050"> > <fire:RemoteAddress>w.x.y.z</fire:RemoteAddress> > <fire:RemoteAddress>w.x.y.z</fire:RemoteAddress> > <fire:RemoteAddress>w.x.y.z</fire:RemoteAddress> > <fire:RemoteAddress>w.x.y.z</fire:RemoteAddress> > </fire:FirewallException> </Component> > [...] > > > > and this is the content of the .bat file with the commands how i build > the package: > > set WIX_BIN_PATH="C:\Programme\Windows Installer XML v3.5\bin" > %WIX_BIN_PATH%\candle.exe -ext "C:\Programme\Windows Installer XML > v3.5\bin\WixUIExtension.dll" -ext "C:\Programme\Windows Installer XML > v3.5\bin\WixUtilExtension.dll" -ext "C:\Programme\Windows Installer > XML v3.5\bin\WixFirewallExtension.dll" zabbix-win32.wxs > %WIX_BIN_PATH%\light.exe -ext WixUIExtension -ext WixUtilExtension > -ext WixFirewallExtension zabbix-win32.wixobj > > ----------------------------------------------------------------------------- > - > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity and more. Splunk takes this > data and makes sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > SDL PLC confidential, all rights reserved. > If you are not the intended recipient of this mail SDL requests and > requires that you delete it without acting upon or copying any of its > contents, and we further request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, > Berkshire SL6 7DY, UK. > ----------------------------------------------------------------------------- > - > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity and more. Splunk takes this > data and makes sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity and more. Splunk takes this > data and makes sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users -- Alexander Nagel E-mail: alexan...@acwn.de Homepage: http://www.acwn.de/ http://www.standspur-kadaver.de/ ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users