Dear Blair,

Thank you. I will do it this way then.

I only changed the approach a little bit:
1.) One main file (and lots of fragments etc.)
2.) For each "version" an environment variable needs to be set, e.g.
     set VER=personal
     set VER=corporate
     set VER=demo
3.) Inside the main file I have e.g.:

<?if $(env.VER) = "corporate" ?>
   <?define UpgradeCode = "02C47FE9-0563-43d1-98D8-A23CBEBE18EA" ?>
   <?define LicenseRtf = "license1.rtf" ?>
<?elseif $(env.VER) = "personal" ?>
   <?define UpgradeCode = "CABA35A0-E3C6-4826-907E-461B04FC7E73" ?>
   <?define LicenseRtf = "license2.rtf" ?>
<?elseif $(env.VER) = "demo" ?>
   <?define UpgradeCode = "FD80DD30-1E75-4f07-9105-654D855500D8" ?>
   <?define LicenseRtf = "license2.rtf" ?>
<? endif ?>

and so on. Then I just run

candle ...
...
set VER=personal
light ... -out personal.msi
set VER=corporate
light ... -out corporate.msi
set VER=demo
light ... -out demo.msi

The build environment is not the problem. I just have a build.cmd batch 
file at the moment which executes all calls...

Regards,
   Luke

Am 26.07.2010 21:07, schrieb Blair:
> I worked a product where we took a set of WXS files and built them multiple
> times varying a small number of inputs (such as compiler defines and/or
> environment variables) and then linked each set of WIXOUTs into MSIs, as you
> mention. I don't see a problem with that.
>
> Not every build environment easily supports that approach, so you need to do
> what works for your build system.
>
> -----Original Message-----
> From: Lukas Haase [mailto:lukasha...@gmx.at]
> Sent: Monday, July 26, 2010 3:56 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Does the msi-filename matter?
>
> 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
>
>
> ------------------------------------------------------------------------------
> 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/



------------------------------------------------------------------------------
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