Classification: Public
I do something similar:

In Product.wxs:

<CustomAction Id="CA_DISPLAY_UPGRADE_DETECTED" BinaryKey="BIN_CustomAction" 
DllEntry="DisplayUpgradeMessage" Impersonate="yes" Execute="immediate" 
Return="check" />
    <UI>
      <ProgressText Action="CA_DISPLAY_UPGRADE_DETECTED">CA: Verify if this is 
an upgrade...</ProgressText>
    </UI>

<InstallUISequence>
      <Custom Action="CA_DISPLAY_UPGRADE_DETECTED" 
Before="MigrateFeatureStates">WIX_UPGRADE_DETECTED</Custom>

Then in my custom action DLL I have a method DisplayUpgradeMessage:

var result =
                    session.Message(
                        InstallMessage.User + (int)MessageBoxIcon.Warning + 
(int)MessageBoxButtons.YesNo,
                        new Record
                            {
                                FormatString =
                                    "Setup has detected that a previous version 
of " + productName + " is currently installed."
                                    + "\nWould you like to perform an upgrade?"
                            });

                if (result == MessageResult.No)
                {
                    // User had decided to halt the install
                    return ActionResult.UserExit;
                }

Steve

-----Original Message-----
From: Brian Enderle [mailto:bria...@gmail.com]
Sent: January-23-14 12:58 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Prompt User before upgrading

Yes, I am using the WIXUI_InstallDir.

Brian

Brian

If you can't explain it simply, you don't understand it well enough.  - Albert 
Einstein


On Thu, Jan 23, 2014 at 11:57 AM, Jeremiahf <jeremi...@gmail.com> wrote:

> Are you using a UI?
>
>
> On Wed, Jan 22, 2014 at 10:56 AM, Brian Enderle <bria...@gmail.com> wrote:
>
> > Is there a way using 'MajorUpgrade' to prompt the user with a 
> > message (either in the installer window or via a pop-up window) that 
> > running this installer will remove previous versions of this product 
> > and let the user select to either cancel or continue?
> >
> >
> > Brian
> >
> > If you can't explain it simply, you don't understand it well enough.  
> > - Albert Einstein
> >
> >
> ----------------------------------------------------------------------
> --------
> > CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> > Learn Why More Businesses Are Choosing CenturyLink Cloud For 
> > Critical Workloads, Development Environments & Everything In Between.
> > Get a Quote or Start a Free Trial Today.
> >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.
> clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
>
> --
> "They may forget what you said but they will never forget how you made 
> them feel." -- Anonymous
>
> ----------------------------------------------------------------------
> -------- CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical 
> Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.
> clktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical 
Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

 



 
This message has been marked as Public by Steven Ogilvie on January-23-14 
1:15:14 PM.

The above classification labels were added to the message by TITUS Message 
Classification. For more information visit www.titus.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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