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???
-- 
View this message in context: 
http://www.nabble.com/Service-%40vista-tp15480061p15480061.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