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

Reply via email to