[wix-users] WIX 3.10: How to create a service referencing a file in a different component ?

Rob Mensching rob at firegiant.com
Tue Apr 12 21:30:26 PDT 2016


Windows Installer doesn't support that. Target of service must be KeyPath of the same Component.

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Gary M
Sent: Tuesday, April 12, 2016 9:23 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] WIX 3.10: How to create a service referencing a file in a different component ?

I'm trying to create a windows service in WIX 3.10 using a file installed by another component. I want to us the installed file in the service and not have to specify the source location.

The component where the file resides is generated in a build process by heat harvesting about 1200 files into wxs file, so manual editing not an option.

I've tried failed option:

        <DirectoryRef Id="INSTALL_DIR">
          <Directory Id="APP.SDIR" Name="$(var.APP.SDIR)">
            <Directory Id="PARSER.SDIR" Name="$(var.PARSER.SDIR)">
                <Component Id="create.PARSER.SERVICE" Guid="GUID" >
                          <File Id="PARSER.SERVICE.IMG"
Name="$(var.SVC.PARSER.IMG)" KeyPath='no'/>
                          <ServiceInstall
                            Id="SVC.PARSER"
                            Name="$(var.SVC.PARSER.ID)"
    ...

This returns a link error:

    error LGHT0103 : The system cannot find the file 'App\Parser\MailParser.php'

Suggestions ?

v/r
gary


More information about the wix-users mailing list