Hi ...
I had similar problem two years ago.
I had no problem to install the service using 'Service.exe -service'
command.
I found out that during call to 'Service.exe -service' some registry
keys are written into HKCR.
If you have source code of your service check for the
YourService.rgs file and adjust the following code with appropriate
values:
<Component ...
<File ...
<ServiceInstall...
<AppId Id="YOUR_SERVICE_GUID"
LocalService="YourServiceName"
ServiceParameters="-Service"
Description="YourServiceDescription" />
<Component/>
If you do not have the sources of your Service.exe you can check the
registry keys for the needed values:
[HKEY_CLASSES_ROOT\AppID\YourServiceName.EXE]
"AppID"="{YOUR_SERVICE_GUID}"
[HKEY_CLASSES_ROOT\AppID\{YOUR_SERVICE_GUID}]
"ServiceParameters"="-Service"
"LocalService"="YourServiceName"
@="YourServiceDescription"
Hope that it will help you.
Regards
Stefan
Pankaj Savdekar wrote:
> 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>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
--
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies s.r.o. | www.whitestein.com
Panenska 28 | 811 03 Bratislava | Slovak Republic
Main +421 2 5443-5502 | Direct +421 2 5930-0735
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users