>  I am attempting to determine if a specific version of a product is already 
> installed on the system.  I basically want to do this to disallow/bail out of 
> an install if the MSI that is being executed is already installed on the 
> system.

1) If you run the same msi again you enter the maintenance mode where one can 
choose: repair, remove, change.

2) If you regenerate again the MSI, by rebuilding it, with the _same_ version 
but different Product Id (eg when you have in the code: Product Id="*"), and 
you have in the code smth like:

<CustomAction Id="CurrentVersionDetected" Error="2001"/>
<InstallExecuteSequence>
   <Custom Action="CurrentVersionDetected" After="AppSearch">SELFFOUND</Custom>
   ...
</InstallExecuteSequence>
<InstallUISequence>
   <Custom Action="CurrentVersionDetected" After="AppSearch">SELFFOUND</Custom>
   ...
</InstallUISequence>
<UI>
   <Error Id="2001">!(loc.Error2001)</Error>
</UI>

when you run this second msi you'll get the error saying that it was found and 
the installer will bail out.

Viv


On 4/19/2010 10:38 PM, Andy Clugston wrote:
> I am attempting to determine if a specific version of a product is already
> installed on the system.  I basically want to do this to disallow/bail out
> of an install if the MSI that is being executed is already installed on the
> system.
>
> Here is my authoring using 3.0 RTM. I must be missing something simple:
>
> Upgrade table.  FWIW, Product and Upgrade GUID is not changing for each
> build; only GUID that is changing is the Package GUID.  Language attribute
> matches as well.
>
> <Upgrade Id='$(var.UpgradeCode)'>
>
>        <UpgradeVersion Minimum='$(var.ProdVer)'
>                        IncludeMinimum='yes'
>                        Maximum='$(var.ProdVer)'
>                        IncludeMaximum='yes'
>                        OnlyDetect='yes'
>                        Language='1033'
>                        Property='SELFFOUND'/>
>      </Upgrade>
>
> Check to see if product previously installed *and* is this specific version.
>
> <Condition Message="We be here!">Installed AND SELFFOUND</Condition>
>
> Thanks.
> ------------------------------------------------------------------------------
> 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
>
>
>    


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to