You can't use the Upgrade mechanism at all here - it's not that the previous 
install was elevated, it's that the FindRelatedProducts action running in one  
context won't detect a product installed in the other. A per machine won't 
upgrade a per-user either. 

Phil Wilson 



-----Original Message-----
From: Kristoffer Danielsson [mailto:kristoffer.daniels...@live.se] 
Sent: Wednesday, March 17, 2010 1:20 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Detect older version not working?


Note that my previous MSI was a per-machine installation made with VS 2008. The 
product version was 1.0.0.

 

Now I'm creating a per-user installation with WIX 3.5. I want to detect this 
older version. Correct me if I'm wrong, but the older version cannot be removed 
since it was an elevated installation. Hence, I want to at least notify the 
user about the older version.

 

I can't get it working! I read this:

http://wix.mindcapers.com/wiki/Upgrade

 

* I changed the product version to 1.0.1.0.

* I changed the product code.

* The package code is set to '*'.

* The upgrade code is the same.

 

Below is the relevant part of my script. I don't understand how OLDAPPFOUND is 
used. Please help!

 

 

<Upgrade Id="$(var.ThisUpgradeCode)">

<UpgradeVersion Minimum="1.0.0.0" IncludeMinimum="yes" 
Maximum="$(var.ThisProductVersion)" IncludeMaximum="no" OnlyDetect="yes" 
Language="1033" Property="OLDAPPFOUND" />

<UpgradeVersion Minimum="$(var.ThisProductVersion)" IncludeMinimum="no" 
OnlyDetect="yes" Language="1033" Property="NEWAPPFOUND" />

</Upgrade>

<UI>

<Error Id="2000">!(loc.LaunchCondition_LaterVersion)</Error>

</UI>

<CustomAction Id="NewerVersionDetected" Error="2000"/>

<InstallExecuteSequence>

<Custom Action="NewerVersionDetected" 
After="FindRelatedProducts">NEWAPPFOUND</Custom>

</InstallExecuteSequence>
                                          
_________________________________________________________________
Mejla i busskön! Hotmail i mobilen
http://new.windowslivemobile.msn.com/SE-SE/windows-live-hotmail/default.aspx
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to