Thank you all for your answers. Turns out the issue probably is that service uninstall is not complete. Sometimes the service seems to be stuck in a "marked for deletion" state for minutes after running msiexec, and this interfered with the reinstallation.
2014-08-05 16:55 GMT+02:00 Rob Mensching <[email protected]>: > Maybe this will help? > https://support.firegiant.com/entries/24408043-Debug-service-start-failures- > > _______________________________________________________________ > FireGiant | Dedicated support for the WiX toolset | > http://www.firegiant.com/ > > -----Original Message----- > From: Gábor Zoltán Tamás [mailto:[email protected]] > Sent: Tuesday, August 5, 2014 2:11 AM > To: [email protected] > Subject: [WiX-users] Debugging installer > > Hi all, > > We have a solution with a WIX installer project that should install a > Windows service and start it right away. Now the issue is that the WIX > project outputs MSIs that sometimes fail on some, but not all of our > environments. After enabling verbose logging and looking at the log files > msiexec.exe, we can see, that each time the installation fails after > aquiring the 32 bit elevated custom action server, right when the installer > tries the following: > > Executing op: > > ServiceInstall(Name=___,DisplayName=_____,ImagePath=_____,ServiceType=16,StartType=2,ErrorControl=32768,,Dependencies=[~],,StartName=NT > AUTHORITY\SYSTEM,Password=**********,Description=_____,,) > > The following log entry is: > Error 1923. Service '_____' (___) could not be installed. Verify that you > have sufficient privileges to install system services. > > The privileges - of course - are not the issue. > > Comparing logs of failed and successful installs reveal no relevant > difference up until the point when the ServiceInstall custom action fails. > All differences are timestamps, random character sequences (GUIDS, > temporary file names, etc) or PIDs. > > We are completely puzzled why one MSI fails and the next one does not (no > code changes at all, the files seem to be of the same size). > > Can someone here give us advice what the best course of action would be > that would let us closer to the underlying issue? Is there any way to debug > the ServiceInstall action? > > Thank you, > Gabor > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

