I have such a code in my wix script:
    <Upgrade Id="7164e0db-55d3-414f-8dee-a0e32ac6b8cb">
      <UpgradeVersion Property="OLDAPPFOUND" IncludeMinimum="yes"
Minimum="0.0.0.0" IncludeMaximum="no" Maximum="2.0.0.0"/>
      <UpgradeVersion Property="NEWAPPFOUND" IncludeMinimum="yes"
Minimum="2.0.0.0" />
    </Upgrade>
    <CustomAction Id="PreventDowngrading" Error="Newer version already
installed." />
(...)
    <UI>
(...)
      <AdminUISequence />

      <InstallUISequence>
        <Custom Action="PreventDowngrading"
After="FindRelatedProducts">NEWAPPFOUND</Custom>
        <Show Dialog="InstallDlg" After="CostFinalize" />
        <Show Dialog="ExitDlg" OnExit="success" />
      </InstallUISequence>

    </UI>
    
    <InstallExecuteSequence>
      <Custom Action="PreventDowngrading"
After="FindRelatedProducts">NEWAPPFOUND</Custom>
      <RemoveExistingProducts After="InstallFinalize" />
    </InstallExecuteSequence>

(...)

>From what I have read this should install my application (and so it does) but
a second attempt to run the same installer should error out with "Newer
version already installed." message box. And that second part does not work.
What am I doing wrong?

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

Reply via email to