In my experience all services are installed in a stopped state - getting
them started it usually the problem!

That <ServiceControl> looks fine from a WiX 3.0 point of view, if
ServiceControl/@Start is not optional in 3.5 I would say that is a bug.

Neil

-----Original Message-----
From: Navid Azimi-Garakani [mailto:naz...@microsoft.com] 
Sent: 05 May 2010 04:39
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

Any ideas on how to install a service in a stopped state?

-----Original Message-----
From: Navid Azimi-Garakani [mailto:naz...@microsoft.com] 
Sent: Thursday, April 29, 2010 5:56 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

Okay, this has been driving me crazy.

It looks like I cannot install a service unless I have a ServiceControl
element with Start="install" associated. In other words, it seems
impossible to install a service in a stopped state. Is this not a
supported scenario? On WiX 3.5.1623.0, the following snippet does not
work because it is missing a Start="install" attribute.

        <Component Id="$(var.ProjectName)ServiceInstaller"
Guid="C5A1BE3B-C831-4220-A184-81797B2C9F48">
          <CreateFolder />
          <ServiceInstall Id="$(var.ProjectName)ServiceInstall"
Name="$(var.ProjectName) " DisplayName="$(var.ProjectName)"
Type="ownProcess" Start="auto" ErrorControl="normal" Description="..."
Account="NT AUTHORITY\NETWORK SERVICE" Vital="yes" />
          <ServiceControl Id="$(var.ProjectName)ServiceControl"
Name="$(var.ProjectName) " Stop="both" Wait="yes" Remove="uninstall" />
        </Component>

Is there a recommend way to install a service in a stopped state? Should
I open a bug? 

Thanks,
Navid

-----Original Message-----
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Thursday, April 29, 2010 5:58 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

On 4/28/2010 1:35 AM, Navid Azimi-Garakani wrote:
> MSI (s) (24:DC) [22:30:46:016]: Doing action: InstallServices MSI (s) 
> (24:DC) [22:30:46:016]: Note: 1: 2205 2:  3: ActionText Action start 
> 22:30:46: InstallServices.
> Action ended 22:30:46: InstallServices. Return value 1.
>    

That's the log from the script generation phase; check later in the log
for the execution phase.
> The sequence conditions were updated as such:
>    

Not necessary.

--
sig://boB
http://joyofsetup.com/


------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to