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 3319076
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:46:54+00:00 2026-05-17T22:46:54+00:00

Using Wix, I would like to run an executable (that is being installed) and

  • 0

Using Wix, I would like to run an executable (that is being installed) and capture the return value. I have no problem running the executable via:

<CustomAction Id="UpgradeDBFromExe" FileKey="UpgradeDB.exe" ExeCommand="/update" Execute="deferred" Impersonate="no" Return="ignore"/>

But i’m not sure how to capture the return value. If I change the return to ‘check’ then on failure the installer rolls back (not what I want to happen), instead I want to check this result later (presumable via a property) and display a warning. My thoughts are to use a CustomAction script to call the executable and store the result as a property but this seems messy. Is there any better way to do this?

  • 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-17T22:46:55+00:00Added an answer on May 17, 2026 at 10:46 pm

    I will assume that this CustomAction makes a change to the system and therefore requires privs and is therefire scheduled as deferred / no impersonation. Because of this, and the fact that it’s an EXE custom action that’s running out of process, MSI doesn’t provide a way to set properties. If you use the WiX Quiet Execute Custom Action pattern you could capture the stdout and log it but that’s about it. If you used a DLL custom action type you could check the UILevel property and optionally popup an MSI MessageBox asking the user if they want to continue and based on that you could return success or failure but as an EXE you are kind of stuck.

    Another approach would be to have another custom action run in the UI Sequence after the execute action that validates what the EXE did and set a property for success/failure and then drive some UI off of that. My only concern there is it’s too late to roll the install back and users tend to not read what you put in front of them anyways.

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

Sidebar

Related Questions

I have a main product which is installed using Wix and has its own
I have a WIX file that I need to modify using MSBuild. It starts
Using WiX, we would like to be able to uninstall a previous version if
We have an installer created using WIX. As part of this install we would
I'm using WiX 3.5 to create an installer that installs a Windows Service and
We are developing a customized installer using Wix and Wpf. We have developed some
I am creating a installer using WIX, The requirement here is that when the
We currently have an MSI that is created with WiX 3.5. The application is
I have two products that are always installed in tandem. One is an ActiveX
I'm trying to create a setup project using WIX that will allow me to

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.