> Date: Mon, 2 Jul 2007 15:58:41 +0100
> From: "Patrick Steele" <[EMAIL PROTECTED]>
> Subject: [WiX-users] version numbering
> To: <wix-users@lists.sourceforge.net>
>
> Hi,
>  
> I have my version number hardcoded in multiple locations throughout my
> wxs file eg
> <snip>
>  
> Is it possible for me to parameterise this, something along the lines
of
> <snip>
> By the way, the code above works for the Description fields but NOT
for
> the Title fields :(
>
> Or is there a better way that people do this?

Here's what I use.

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <?define ProdVer = "1.2.3" ?>
  <?define ProdName = "MyCompany MyProduct $(var.ProdVer)" ?>
  <Product Name="$(var.ProdName)" Id="EnterGuidHere" Language="1033"
Codepage="1252" Version="$(var.ProdVer)" Manufacturer="MyCompany"
UpgradeCode=" EnterGuidHere ">
    <Package Keywords="Installer" Description="$(var.ProdName)
Installer" Comments=" " Manufacturer="MyCompany." InstallerVersion="301"
Languages="1033" Compressed="yes" SummaryCodepage="1252" />

I think it would be better to define these in an outside file, but I
haven't worked on this yet.

Dale



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to