<Adding wix-users to thread>

I'm not sure why you are using that commit custom action to start a service,
the servicecontrol element should give you that control.  Have you built and
ran your service on a Vista box yet?  Also, if you use the servicecontrol
element, you can also use the MSI log to see what the Win32 error code is
when the service can't start.  That should help you narrow down the problem.

Dana

On 2/13/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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", 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.
>
> The above code is working fine in XP, but failing in Vista
>
> Any Ideas???
>
> Dana Gutride wrote:
> >
> > Is it possible to elevate a custom action that is called during the UI
> > sequence in Vista?  During my install, I'm doing prerequisite checks
> > during
> > the UI sequence, a couple of them require administrative privileges to
> > complete.  I'm seeing some mixed information online about this.  This
> link
> > (
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/guidelines_for_packages.asp
> )
> > says that you can elevate custom actions in the InstallUISequence as
> long
> > as
> > they are scheduled deferred.  That doesn't really make sense to me as I
> > thought you could only defer CA's in the InstallExecuteSequence.  Any
> > thoughts?
> >
> > Thanks,
> > Dana
> >
> >
> -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services,
> security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> Quoted from:
>
> http://www.nabble.com/Elevating-custom-action-on-Vista-tp6158038p6158038.html
>
>
-------------------------------------------------------------------------
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