One of the things that ATL servers/services do when they start is to
look for an HKCR\Appid entry that says whether they are a server or a
service. If it doesn't find that localservice item there it won't know
it's supposed to call the service APIs. If you know it's a service and
never a server, detour that AppId code (in Start) and force it to be a
service.
Phil Wilson
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Stebner
Sent: Thursday, May 24, 2007 5:51 PM
To: Matthew Janulewicz; Pankaj Savdekar; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] ServiceInstall Problem
I've seen this in the past on Windows Vista with services that depend on
the VC 8.0 runtimes and the VC 8.0 runtimes are also being installed in
the same MSI. The event viewer should show messages if that is the
case.
If this does happen to be the case in your scenario, there is some info
in the ServiceControl table documentation
(http://msdn2.microsoft.com/en-us/library/aa371634.aspx). Essentially
you'd need to create a commit custom action to install your service in
order to ensure that the VC 8.0 runtimes are fully installed.
Thanks! Aaron
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Janulewicz
Sent: Thursday, May 24, 2007 5:46 PM
To: Pankaj Savdekar; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] ServiceInstall Problem
Hm. Interesting.
You might also check in the Windows Event Viewer. Once in a while useful
info crops up in there. J
-Matt
________________________________
From: Pankaj Savdekar [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 5:22 PM
To: Matthew Janulewicz; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] ServiceInstall Problem
Thanks Matt. Currently I'm using default (Local system Account). Problem
is it works fine (with same setting) when I use '-service' option and
install it manually, but when I use msi (ServiceInstall) it gives me
error 1053.
Pankaj
________________________________
Subject: RE: [WiX-users] ServiceInstall Problem
Date: Thu, 24 May 2007 16:55:14 -0700
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
One common mistake I make over and over again is that I install the
service (using the .msi) as a user who does not have access rights to do
so (log on as a service.)
-Matt
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pankaj
Savdekar
Sent: Thursday, May 24, 2007 4:43 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] ServiceInstall Problem
Hi All,
I'm facing one problem using ServiceInstall. I have one ATL windows
service which works fine when I manually register it (Service.exe
-service). But service gives following error, when I install it using
installer made using ServiceInstall element.
Error 1053: The service did not respond to the start or control request
in a timely fashion.
Component definition in Wix file:
------------------------------------------------
<Component Id='MainExecutable'
Guid='0C47CD31-8876-42aa-B2D9-7D6FF823D171'>
<File Id='WinService' Name='WinSvc.exe' LongName='WinService.exe'
DiskId='1'
Source='WinService.exe' Vital='yes' KeyPath='yes'/>
<ServiceInstall Id="MyWinService" Name="Win Service"
DisplayName="Windows service"
Type="ownProcess" Start="auto" ErrorControl="normal" Vital="yes">
<ServiceDependency Id="RpcSs"/>
</ServiceInstall>
</Component>
------------------------------------------------
Any idea what could be wrong?
Thanks,
Pankaj
________________________________
The idiot box is no longer passe; It's making news and how!
<http://content.msn.co.in/Entertainment/TV/Default.aspx>
________________________________
Catch the cricket action with MSN! Click here!
<http://content.msn.co.in/Sports/Cricket/Default.aspx>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users