I'm a relavite newbie with WiX, but haven't been able to figure out
the answer to this question via Google or StackOverflow (for the
record, the question is posted at
http://stackoverflow.com/questions/6710578/multiple-results-for-wix-findfile;
I'll update with any answers received here):

I'm trying to run a Matlab command-line invocation from within my WiX
3.5 installer. There may be multiple versions of Matlab installed on
the users' systems, and I need to run the command invocation once for
each Matlab installation.

I have the following XML in my wxs file to find matlab.exe:

<Property Id="MATLABEXE">
  <DirectorySearch Id="ProgramFiles" Path="[ProgramFilesFolder]">
    <DirectorySearch Id="MATLAB" Path="MATLAB" Depth="3">
      <FileSearch Name="matlab.exe"/>
    </DirectorySearch>
  </DirectorySearch>
</Property>

I then run the command-line invocation via a custom action using
[MATLABEXE] as the exe. This works well for finding a single Matlab
installations under C:\Program Files\MATLAB, but the MATLABEXEproperty
appears to get the path to only one installation if there are
multiples.

Is there a better way to find and call a custom action on each
matlab.exe that exists below some director (e.g. C:\Program
Files\MATLAB)?

Thank you,

Barry

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to