I'm writing a script to install the LEADTOOLS runtime. For Win32, the
filenames are in the format <filename>.dll, for x64, the filenames are
<filename>x.dll

I created a list of the files I need to install in the pre-processor
list format, like

 <?define LTFiles=DSKernel2;LENCAMR; ...... ?>

then I iterate this list to generate the Components.

      <?foreach LTDLL in $(var.LTFiles)?>
        <Component Id="$(var.LTDLL)" Guid="*">
          <File Id="$(var.LTDLL)"
Source="$(var.LTSourceRoot)\$(var.LTDLL)$(var.LTFileNameSuffix)"
KeyPath="yes" DefaultLanguage="0" />
        </Component>
      <?endforeach?>

finally, I want to pass the list of installed files to a custom action
to COM-register them; I assemble the list like so:

    <?define COMRegister_Total="" ?>
    <?foreach LTDLL in $(var.LTFiles)?>
      <?define 
COMRegister_Total=$(var.COMRegister_Total)$(var.LTDLL)$(var.LTFileNameSuffix);?>
    <?endforeach?>

This generates "N" warnings, where N is the number of files I have in
the list of DLLs

The variable 'COMRegister_Total' with value
'DSKernel2x.dll;LENCAMRx.dll;' was previously declared with value
'DSKernel2x.dll;'.

Is there any way to suppress this warning, or better yet, a
"supported" method of doing string concat?

Thanks!

-Kevin

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to