I think the first versions (VS.NET) of the Visual Studio Setup Projects had 
this issue - you didn't by any chance build your setup by reverse-engineering 
or Dark-ing an older VS Setup Project, did you?

Phil Wilson

-----Original Message-----
From: divo [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2008 7:12 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Why doesn't Windows Installer remove the oldversion in 
an upgrade?


Hi,

I am facing the exact same problem, i.e. FindRelatedProducts happens long
before the user is asked to choose the installation scope in the UI.

How do I solve this? I tried

<FindRelatedProducts After="InstallValidate" ></FindRelatedProducts>

but that simply gave an error. Which install sequence must I use to have
FindRelatedProducts running after ALLUSERS has been set?

Thanks for all help,
divo


Tony.Bjerstedt wrote:
>
> I second looking in the log for the FindRelatedProducts action.
>
> I had a similar problem recently and it came down to the ALLUSERS
> property not being set correctly prior to the call to
> FindRelatedProducts. The search found the previous per-machine install
> but didn't do anything with it because it was looking for a per-user
> version.
>
> I was setting ALLUSERS to 1 (per-machine) in a dialog [based on code
> dark'ed from a Visual Studio created installer] which was called long
> after FindRelatedProducts was executed. Since ALLUSERS was not set,
> FindRelatedProducts was looking for per-user versions of the product.
> The log noted that a per-machine version had been found, but that it was
> being ignored. Since all of my installations are per-machine, adding a
> <Property> element setting ALLUSERS fixed my problem.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Phil
> Wilson
> Sent: Monday, June 12, 2006 8:28 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Why doesn't Windows Installer remove the
> oldversion in an upgrade?
>
> Have you looked the log entries for FindRelatedProducts? They should say
> something about whether it found the previous version.
> Phil Wilson
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson
> Sent: Sunday, June 11, 2006 8:19 PM
> To: dangle123 ...
> Cc: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Why doesn't Windows Installer remove the old
> version in an upgrade?
>
> dangle123 ... wrote:
>> Action ended 15:21:09: InstallFinalize. Return value 1.
>> MSI (s) (38:1C) [15:21:09:832]: Doing action: RemoveExistingProducts
>> Action start 15:21:09: RemoveExistingProducts.
>> Action ended 15:21:09: RemoveExistingProducts. Return value 1.
>> Action ended 15:21:09: INSTALL. Return value 1.
>>
> I'd expect to see more details in a verbose log. What you're looking for
> is the details around InstallValidate that indicate the action states
> for the product's components. What happens if you move
> RemoveExistingProducts to between InstallValidate and InstallInitialize?
>
> --
> sig://boB
> http://bobs.org
>
>
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>

--
View this message in context: 
http://n2.nabble.com/Re%3A-Why-doesn%27t-Windows-Installer-remove-the-oldversion-in-an-upgrade--tp692400p1449808.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to