[wix-users] Why does ARPNOREMOVE=1 also disable the Modify Button in Add/Remove Programs?

forum postings postingsforum at gmail.com
Fri Mar 27 08:10:58 PDT 2020


Hi All,
I want to give the user the option to remove their user data when they
uninstall my msi.

So I redirect the Remove Button in MaintenanceTypeDlg to my custom dialog
that prompts them yes/no to remove user data,
and then sends them to the VerifyReadyDlg to uninstall.
So now I want to disable the Uninstall button in Add/Remove Programs and
force the user to click Modify
and go through the Maintenance dialog to remove my msi.

I already have a command-line parameter that does the same thing if they run
"msiexec /x ..." from the command-line.
so that's taken care of.

But when I set ARPNOREMOVE=1 in my wxs file it also disables the Modify
Button in Add/Remove Programs in Win10.

How can I keep the Modify Button but disable the Uninstall button in
Add/Remove Programs?

Or is there another standard way to solve this problem in wix?

Thanks,
wixn00b.


More information about the wix-users mailing list