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>
      <StopServices>VersionNT64</StopServices>
      <DeleteServices>VersionNT64</DeleteServices>
      <InstallServices>VersionNT64</InstallServices>
      <StartServices>VersionNT64</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

Reply via email to