Dear Bob,

Am 25.07.2010 15:45, schrieb Bob Arnson:
> On 7/25/2010 8:10 AM, Lukas Haase wrote:
>> However, there is also need to replace Product/@Id and
>> Product/@UpgradeCode ...
>
> Use preprocessor variables and/or localization variables.

Thank you for your reply. This is what I already did with 
-dLicense="License1.rtf".

But is this approach a good idea in general? I.e. this is my Main.wxs file:

<?xml version='1.0' encoding='UTF-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Id='*' UpgradeCode='$(var.UpCode)' ...>
[...]
<WixVariable Id="WixUILicenseRtf" Value="$(var.License)" />
[...]

and call the compiler on the same file a few times to produce the 
different MSIs? I.e.

candle Main.wxs -dLicense="License1.rtf" 
-dUpCode="13FE0C72-F630-4e66-AB2D-042F8B9556A5" -out Edition1.wixobj
candle Main.wxs -dLicense="License2.rtf" 
-dUpCode={A8E97AD2-3B6A-442f-8425-901459DD0B28" -out Edition2.wixobj

light ... Edition1.wixobj -out Edition1.msi
light ... Edition2.wixobj -out Edition2.msi

Another approach I could think of: Create a separate wxs file for every 
project and use the Include-directive of the preprocessor to include 
specific parts ...

Regards,
   Luke



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to