You need 'createAndRemoveOnUninstall' as the action for your key.  I'm not 
sure what the attribute is and I don't have a WiX project open right now, 
but I'm sure somebody else will chime in or you can figure it out 
yourself...

Kelly




"Alex Ivanoff" <[EMAIL PROTECTED]> 

Sent by: [EMAIL PROTECTED]
06/25/2008 12:33 PM
Please respond to
"General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>


To
"General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>
cc

Subject
Re: [WiX-users] VS setup project -> WiX 3.0 conversion






It worked, thank you. But now I have another problem. Lets say I have
version 1 of product:


<?define ProductVersion="1.0.0.0" ?> 
....
<RegistryKey Key="$(var.ProductVersion)">

Now I am doing version 1.1:

<?define ProductVersion="1.1.0.0" ?> 
....
<RegistryKey Key="$(var.ProductVersion)">

If I do upgrade from 1.0 to 1.1 the registry key 1.1.0.0 is created, but
1.0.0.0 does not get deleted. How do I fix this?



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil Enns
Sent: Wednesday, June 25, 2008 10:15
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




**************************************************************************************
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure, 
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Unless indicated
to the contrary: it does not constitute professional advice or opinions
upon which reliance may be made by the addressee or any other party,
and it should be considered to be a work in progress. Unless otherwise
noted in this email or its attachments, this communication does not form 
a Statement of Actuarial Opinion under American Academy of Actuaries guidelines.
**************************************************************************************
-------------------------------------------------------------------------
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