Some times it is wokring fine, some times not.

Event log says "The Service  terminated unexpectedly"



Rob Hamflett wrote:
> 
> Does the event manager tell you anything?  After you've started the
> service manually from the 
> services panel, do future attempts to install it succeed (after you've
> uninstalled it, obviously).
> 
> Rob
> 
> SaiTeja wrote:
>> Hi,
>> 
>> Thanks for response
>> 
>> Because the service has dependencies, I created one merge module.msi(with
>> all x86 including debug mergemodules) and installed. After that I
>> installed
>> my installer. This time installation is successfully, But service is not
>> started after reboot automatically(service start type is auto). But when
>> I
>> start service manually, service is started.
>> 
>> I am testing this in Virtual Images. The above case is working for vista
>> ultimate virtual image. But for Vista Enterprise and Business virtual
>> images
>> it is not working.
>> 
>> So In vista ultimate it is working means. there is no problem with
>> service
>> and component.
>> 
>> Can you tell me, what is the wrong here. Is it the problem with virtual
>> image or service?
>> 
>> Why service is not started automatically after reboot, even service type
>> is
>> "auto"
>> Why it is started when I try to start manually from services.msc after
>> installation.
>> 
>> 
>> Thanks in advance,
>> 
>> 
>> 
>> 
>> 
>> Rob Hamflett wrote:
>>> It sounds like your service just doesn't work under Vista.  Can you run
>>> it
>>> as a normal exe?  Have 
>>> you tried putting any logging in your service to see how far it gets?
>>>
>>> Rob
>>>
>>> SaiTeja wrote:
>>>> Hi,
>>>>
>>>> I have a service installed on windows vista. The startup type for this
>>>> service is "Automatic". The service is not starting after reboot. When
>>>> i
>>>> try
>>>> starting the service from Service Control Manager, the error is
>>>> something
>>>> like "Windows could not start the service on Local Computer Error 1067:
>>>> The
>>>> process terminated unexpectedly". The event logs just displays "The
>>>> service
>>>> terminated unexpectedly"
>>>>
>>>> Following is my WIX Code.
>>>>
>>>> <Component Id="service.exe"
>>>> Guid="{8382F93F-A092-4344-9996-845A9F7DF9A7}">
>>>>             <Condition>(NOT VersionNT=500) AND (NOT
>>>> VersionNT64)</Condition>
>>>>             <File Id="service.exe" Name="svc_1" KeyPath="yes"
>>>> LongName="service.exe" Compressed="yes" DiskId="1" Source="service.exe"
>>>> />
>>>>             <ServiceControl Id=SvcEvent" Name="Svc" Stop="uninstall"
>>>> Remove="uninstall" />
>>>>             <ServiceInstall Id="NewServiceInstall2" Name="Svc"
>>>> DisplayName="Service" Type="ownProcess" Start="auto"
>>>> ErrorControl="normal"
>>>> Description="Enables the Client service. If this service is stopped,
>>>> Client-protected content will be unavailable.">
>>>>                 <ServiceDependency Id="EventLog" />
>>>>                 <ServiceDependency Id="RpcSs" />
>>>>                 <ServiceDependency Id="Dnscache" />
>>>>                 <ServiceDependency Id="CryptSvc" />
>>>>                 <ServiceDependency Id="TermService" />
>>>>             </ServiceInstall>
>>>>  </Component>  
>>>>
>>>>
>>>> <CustomAction Id="StartService" Return="check" Execute="commit"
>>>> impersonate="no"ExeCommand="startservice" FileKey="xyz.exe">
>>>> </CustomAction>
>>>>
>>>> <InstallExecuteSequence>
>>>>     <InstallInitialize Sequence="1500"/>
>>>>     <StopServices Sequence="1900">versionNT</StopServices>
>>>>     <DeleteServices Sequence="2200">versionNT</DeleteServices>
>>>>     ------
>>>>     <InstallServices Sequence="5800">versionNT</InstallServices>
>>>>     <StartServices Sequence="5900">versionNT</StartServices>
>>>>     <Custom Action="StartService" Sequence="5902">Not
>>>> Installed</Custom>
>>>>     <InstallFinalize Sequence="6500"/>
>>>> </InstallExecuteSequence> 
>>>>
>>>> <property ID = "ALLUSers">1</property>
>>>>
>>>> Here I used custom action type as "Commit"(commit custom actions
>>>> executes
>>>> after installfinalize), because in Vista the runtime will NOT be
>>>> accessible
>>>> to xyz.exe (the xyz.exe depends on the C runtime And iam installing the
>>>> C
>>>> runtime in the installer via merge module) until *after* the installer
>>>> completes installation. 
>>>>
>>>> With Custom action type "Deffered", custom action is failing while
>>>> installation.
>>>> With custom action type "Commit", installation is sucsseful, but
>>>> service
>>>> is
>>>> not started.
>>>> SOme times when I try manually, it is starting, some times not.
>>>> I want per-machine installation
>>>>
>>>> The above code is working fine in XP, but failing in Vista
>>>>
>>>> Any Ideas???
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>> _______________________________________________
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>>
>>>
>> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Service-%40vista-tp15480061p15499976.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to