Thank you for the correction, Phil. I take it I cannot easily determine if a 
downgrade was prevented from a non-interactive mechanism?
(Our applications are installed by a Windows service without user intervention.)


Keith Douglas
Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6
Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6
keith.doug...@statcan.gc.ca
Telephone | Téléphone 613-951-4405
Facsimile | Télécopieur 613-951-1966
Government of Canada | Gouvernement du Canada 


-----Original Message-----
From: Phil Wilson [mailto:phildgwil...@gmail.com] 
Sent: October-22-13 12:37 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Exit codes from msiexec

I don't believe your interpretation of 1638 is correct. As far as I know this 
error is returned when a product defined by a ProductCode is installed and you 
try to install the same ProductCode from an MSI with a different product 
version. You can't install the same ProductCode twice from a normal command 
line (you'd need REINSTALL and REINSTALLMODE). So you get error 1638.

This not the same as a major upgrade where you have a different ProductCode and 
you are preventing a downgrade. This logic is entirely internal to your MSI and 
is not propagated out as a return error code.

Phil Wilson


On Tue, Oct 22, 2013 at 6:24 AM, <keith.doug...@statcan.gc.ca> wrote:

> I see that msiexec returns 1638 if the usual MajorUpgrade tag does its 
> stuff and prevents a downgrade. Is there any way to distinguish 
> between the case that the MajorUpgrade did nothing because the 
> versions were equal versus a version strictly less than the already 
> installed version was attempted to be installed?
>
>
>
> Keith Douglas
> Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 
> Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 
> 0T6 keith.doug...@statcan.gc.ca Telephone | Téléphone 613-951-4405 
> Facsimile | Télécopieur 613-951-1966 Government of Canada | 
> Gouvernement du Canada
>
>
>
>
> ----------------------------------------------------------------------
> -------- October Webinars: Code for Performance Free Intel webinars 
> can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the 
> most from the latest Intel processors and coprocessors. See abstracts 
> and register > 
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.c
> lktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register > 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to