A headless error exit (due to downgrade prevention) would probably be 1603, 
which doesn’t distinguish what the error was from any other fatal installation 
error. I don’t think it would return 1602, but it might (that would be the only 
other likely possibility). Either of those is different than 1638 which 
indicates you presented a different MSI with the same ProductCode as an already 
installed product (which by definition implies that this is not a major upgrade 
and nothing in the Upgrade table (populated by both the MajorUpgrade and 
Upgrade elements) was even looked at by Windows Installer).


You can use a custom action provided by wix to instead return success in a 
downgrade without actually changing anything, if that is acceptable. I forget 
what it’s called but it is in the Util extension.






Blair





From: keith.doug...@statcan.gc.ca
Sent: ‎Tuesday‎, ‎October‎ ‎22‎, ‎2013 ‎10‎:‎46‎ ‎AM
To: General discussion for Windows Installer XML toolset.





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
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&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