Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

2010-05-05 Thread Neil Sleightholm
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


Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

2010-05-05 Thread John L Krupka

You can add the ServiceInstall element by itself without the ServiceControl. 
Add the ServiceInstall in the same component that defines service file.  The
service file needs to be the KeyPath.  I would recommend not having any
other files in the components, which is good practice anyway.  Something
like this should work fine.

Component Id=TheServiceComponent Guid={GUID HERE}
   CreateFolder /
   File Id=TheServiceExe KeyPath=yes Source=.\thefile.exe /
   ServiceInstall Id=TheServiceInstall Name=SomeServiceName
DisplayName=The Service Display Name Start=disabled Type=ownProcess
Account=LocalSystem Interactive=no ErrorControl=normal/

/Component
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ServiceInstall-does-nothing-in-WiX-3-5-tp4972774p5012380.html
Sent from the wix-users mailing list archive at Nabble.com.

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


Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

2010-05-04 Thread Navid Azimi-Garakani
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


Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

2010-04-29 Thread Bob Arnson
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


Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

2010-04-29 Thread Navid Azimi-Garakani
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


Re: [WiX-users] ServiceInstall does nothing in WiX 3.5?

2010-04-28 Thread Ramaswamy, Srinivasan
I am not sure whether what we faced has any relationship to this. In any
case, let me reply with our experience. Maybe it is useful :-)

The installer is Install Shield based and not MSI.

We were installing Windows Service on 2008 R2 as part of overall
install. The services were using path environment variable for locating
DLL. The path environment variable was modified directly in the registry
during the install session when the services were also being installed.
However, the Windows 2008 R2 did not seem to see the path information.
This used to work in earlier version of Windows.

We ended up having to write a workaround finally. 

-Original Message-
From: Navid Azimi-Garakani [mailto:naz...@microsoft.com] 
Sent: Wednesday, April 28, 2010 1:36 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] ServiceInstall does nothing in WiX 3.5?

Is anyone aware of a regression with ServiceInstall with WiX 3.5.1623.0?
I seem to be unable to get a simple Windows service to install. The MSI
does not fail and I do not get anything useful in the logs. I am trying
to install on Windows Server 2008 R2 (which only ships in 64-bit). Here
is the relevant snippet of my .wxs:

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

The log file shows that the actions are being executed but nothing
happens. I examined my MSI in Orca and it looks like everything is setup
correctly in the ServiceInstall and ServiceControl tables. I originally
thought the problem was that the default condition was VersionNT instead
of VersionNT64 but changing that had no effect. Here's the relevant
portion of the log:

Action start 22:30:45: InstallFiles.
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: Patch
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: Patch 4: SELECT
`Patch`.`File_`, `Patch`.`Header`, `Patch`.`Attributes`,
`Patch`.`Sequence`, `Patch`.`StreamRef_` FROM `Patch` WHERE
`Patch`.`File_` = ? AND `Patch`.`#_MsiActive`=? ORDER BY
`Patch`.`Sequence`
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: Error
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: Error 4: SELECT
`Message` FROM `Error` WHERE `Error` = 1302
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: MsiSFCBypass
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: MsiSFCBypass 4:
SELECT `File_` FROM `MsiSFCBypass` WHERE `File_` = ?
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: MsiPatchHeaders
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: MsiPatchHeaders 4:
SELECT `Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ?
MSI (s) (24:DC) [22:30:45:964]: Note: 1: 2205 2:  3: PatchPackage
MSI (s) (24:DC) [22:30:45:964]: Note: 1: 2205 2:  3: MsiPatchHeaders
MSI (s) (24:DC) [22:30:45:964]: Note: 1: 2205 2:  3: PatchPackage
Action ended 22:30:46: InstallFiles. Return value 1.
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.
MSI (s) (24:DC) [22:30:46:020]: Doing action: StartServices
MSI (s) (24:DC) [22:30:46:020]: Note: 1: 2205 2:  3: ActionText
Action start 22:30:46: StartServices.
Action ended 22:30:46: StartServices. Return value 1.

The sequence conditions were updated as such:

InstallExecuteSequence
  StopServicesVersionNT64/StopServices
  DeleteServicesVersionNT64/DeleteServices
  InstallServicesVersionNT64/InstallServices
  StartServicesVersionNT64/StartServices
/InstallExecuteSequence

Any help would be appreciated.

Thanks,
Navid

--
___
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] ServiceInstall does nothing in WiX 3.5?

2010-04-27 Thread Navid Azimi-Garakani
Is anyone aware of a regression with ServiceInstall with WiX 3.5.1623.0? I seem 
to be unable to get a simple Windows service to install. The MSI does not fail 
and I do not get anything useful in the logs. I am trying to install on Windows 
Server 2008 R2 (which only ships in 64-bit). Here is the relevant snippet of my 
.wxs:

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

The log file shows that the actions are being executed but nothing happens. I 
examined my MSI in Orca and it looks like everything is setup correctly in the 
ServiceInstall and ServiceControl tables. I originally thought the problem was 
that the default condition was VersionNT instead of VersionNT64 but changing 
that had no effect. Here's the relevant portion of the log:

Action start 22:30:45: InstallFiles.
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: Patch
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: Patch 4: SELECT 
`Patch`.`File_`, `Patch`.`Header`, `Patch`.`Attributes`, `Patch`.`Sequence`, 
`Patch`.`StreamRef_` FROM `Patch` WHERE `Patch`.`File_` = ? AND 
`Patch`.`#_MsiActive`=? ORDER BY `Patch`.`Sequence`
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: Error
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` 
FROM `Error` WHERE `Error` = 1302
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: MsiSFCBypass
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: MsiSFCBypass 4: SELECT 
`File_` FROM `MsiSFCBypass` WHERE `File_` = ?
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2205 2:  3: MsiPatchHeaders
MSI (s) (24:DC) [22:30:45:962]: Note: 1: 2228 2:  3: MsiPatchHeaders 4: SELECT 
`Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ?
MSI (s) (24:DC) [22:30:45:964]: Note: 1: 2205 2:  3: PatchPackage
MSI (s) (24:DC) [22:30:45:964]: Note: 1: 2205 2:  3: MsiPatchHeaders
MSI (s) (24:DC) [22:30:45:964]: Note: 1: 2205 2:  3: PatchPackage
Action ended 22:30:46: InstallFiles. Return value 1.
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.
MSI (s) (24:DC) [22:30:46:020]: Doing action: StartServices
MSI (s) (24:DC) [22:30:46:020]: Note: 1: 2205 2:  3: ActionText
Action start 22:30:46: StartServices.
Action ended 22:30:46: StartServices. Return value 1.

The sequence conditions were updated as such:

InstallExecuteSequence
  StopServicesVersionNT64/StopServices
  DeleteServicesVersionNT64/DeleteServices
  InstallServicesVersionNT64/InstallServices
  StartServicesVersionNT64/StartServices
/InstallExecuteSequence

Any help would be appreciated.

Thanks,
Navid
--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users