This works, too, thank you. But it has the same problem of not deleting
a key during upgrade.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason
Ginchereau
Sent: Wednesday, June 25, 2008 14:56
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] VS setup project -> WiX 3.0 conversion

#2: Why not just reference the MSI ProductVersion property? Use the []
syntax to reference properties in Registry Key, Name, or Value:

        <RegistryKey Key="Some\Path\[ProductVersion]" />

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil Enns
Sent: Wednesday, June 25, 2008 8:15 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] VS setup project -> WiX 3.0 conversion

For #1 I keep forgetting that's one of the topics on my list to add to
the docs. In the mean time you can read Alex's blog entry which is how I
got it working:
http://blogs.technet.com/alexshev/archive/2008/02/15/from-msi-to-wix-par
t-8-major-upgrade.aspx.



For #2, we have this set up as a WiX preprocessor variable. Somewhere in
your file put <?define myVersion="1.0.0.0"?>. Then wherever you want to
refer to it use $(var.MyVersion).

Neil

________________________________
From: [EMAIL PROTECTED]
[EMAIL PROTECTED] On Behalf Of Alex Ivanoff
[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2008 8:04 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] VS setup project -> WiX 3.0 conversion

I am just starting with WiX 3.0. As an exercise I converted one of our
simple VS 2008 setup projects to WiX 3.0 and have two questions so far:

1. How do I make the new installer uninstall the previous version of the
product? Is it just a matter of setting UpgradeCode?
2. How can I use Product element's Version attribute in the script?
Something like this:

<Product Id="..."
         Name="..."
         Language="1033"
         Version="1.0.0.0">
...
  <RegistryKey Key="Version" />
</Product>

I guess I can define a property, but is there a better way?

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to