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

Gary M garym at oedata.com
Wed Apr 13 00:19:13 PDT 2016


The quick dirty work around is changing the Name attribute to to a
different file name.  Also remember to change KeyPath to yes for uninstall.

cheers,
gary

On Tue, Apr 12, 2016 at 10:46 PM, Gary M <garym at oedata.com> wrote:

> Thanks Rob, I was just hoping I could use a substitution if it was
> available.   Now I guess thinking about using msiext...and calling their
> system extension dll directly. I'm hesitant using that method, the sequence
> get messy, I have about 15 services to optionally install.
>
> I would hate to push the services directly into the registry, domain
> privileges get funky in locked down systems.
>
> I have another question.. Is there a way to call/trigger a custom function
> from a component, like  function call using global properties as arguments
> ie call SC.exe ?
>
> On Tue, Apr 12, 2016 at 10:30 PM, Rob Mensching <rob at firegiant.com> wrote:
>
>> 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
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>
>



More information about the wix-users mailing list