Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 389473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:52:13+00:00 2026-05-12T15:52:13+00:00

I have a WiX installer project that utilises a custom dialog box to ask

  • 0

I have a WiX installer project that utilises a custom dialog box to ask for parameters to update a web.config file and run a database script on install. Everything works correctly and the application is installed and runs correctly.

However, the custom dialog box is also displayed when I uninstall the software and it certainly doesn’t need to be (as I’m not updating a web.config file).

Is there a way to suppress the custom dialog when the application is being uninstalled?

(I should also remove the sql procs I install, at uninstall time but that is outside of this issue).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:52:14+00:00Added an answer on May 12, 2026 at 3:52 pm

    The solution to your question is to condition the custom action with the condition (Not REMOVE=”ALL”). This will make the action run on fresh install and maintenance install, but not on uninstall. If you don’t need to run on maintenance install, but only on a fresh install you can set the condition to be: (Not Installed AND Not(REMOVE=”ALL”)). Full list of MSI properties and brief descriptions here: http://msdn.microsoft.com/en-us/library/aa370905(VS.85).aspx.

    The sequencing and custom action logic in MSI files is VERY complicated. It really pays off to avoid custom actions whenever you can.

    There is more – all MSI files have built-in support for silent installation. This means that the entire GUI sequence can be skipped, and the MSI file installed without user interaction. This is a crucial feature for corporate deployment via SMS / SCCM or other deployment mechanisms. Showing a custom dialog box when the setup is run in silent mode is a violation of this basic MSI feature. You can work around this by properly conditioning the display of the dialog based on the property UILevel: http://msdn.microsoft.com/en-us/library/aa372096(VS.85).aspx. Just to keep things interesting and confusing Microsoft has defined 4 levels of GUI during an installation ranging from completely silent, through various options such as progress bar only etc… See the link for details.

    I could add a lot of details here about MSI sequences, conditions, custom actions and similar, but it wouldn’t answer your question. Please add any follow-up questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wix installer that will install an XML file and then modify
I have a WiX project that installs a few EXE files. One is the
I have a WiX installer project where I have added two firewall exceptions as
I want to have our WiX installer that is currently building on a build
I have written a WiX installer that works perfectly with Windows XP, but when
I have several large websites that I wish to create a WIX installer for.
I have a WiX (Windows installer XML) v3, project which contains references to other
I have a WiX installer that runs a program that downloads the latest version
I have a .NET program that I've written a Wix installer for. I want
I have a WiX file that includes this snippet: <CustomAction Id=DownloadCache FileKey=CACHEDOWNLOADER.EXE ExeCommand=/v Execute=deferred

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.