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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:25:07+00:00 2026-05-23T00:25:07+00:00

I have the need to restart the Windows Explorer process during the installation. Currently

  • 0

I have the need to restart the Windows Explorer process during the installation. Currently we force the user to reboot to ensure that the Explorer process is really restarted, but I would like to be a bit more flexible.

I have a restartexplorer executable which I can call during the installation. What I would like to do is to call the the restartexplorer executable and the use the ScheduleReboot only if the restart explorer custom action returns an error code.

I’ll probably define something like this:

<CustomAction Id='RestartProperty' Property='QtExecCmdLine'
    Value='"[INSTALLDIR]RestartExplorer.exe"' />
<CustomAction Id='Restart' BinaryKey='WixCA' DllEntry='CAQuietExec' Execute="immediate" Return="check" />

Then the InstallExecuteSequence would be something like this:

<InstallExecuteSequence>
    ...
    <Custom Action="RestartProperty" Before="Restart">PREVIOUSVERSIONSINSTALLED</Custom>
    <Custom Action="Restart" After="SomeAction">PREVIOUSVERSIONSINSTALLED</Custom>
    <ScheduleReboot After="Restart"><![CDATA[(NOT Installed) AND (SomeErrorValue > 0)]]></ScheduleReboot>
</InstallExecuteSequence>

Question is how do I get the error code from the previous custom action? Can I use the QtExecCmdLine and still be able to check the error code, or do I have to the executable directly from the custom action tag? This has to work on Windows XP SP3 and newer and I would prefer a solution which didn’t have to differ between OS version.

  • 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-23T00:25:08+00:00Added an answer on May 23, 2026 at 12:25 am

    You can create VB script custom action which will do the following:

    1. Run RestartExplorer.exe
    2. If it is failed set some global property (For example EXPLORER_RESTART_FAILED=1)

    Then use the ShaduleReboot if EXPLORER_RESTART_FAILED is 1.

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

Sidebar

Related Questions

I have a need to create a transactional process using an external API that
I have an application that sometimes causes exceptions. And I need to restart it
I have an MVVM kiosk application that I need to restart when it has
I have a need to display a UITableView containing a user's account credentials. For
I need to restart a windows mobile 6 application. Here is the code I
I have a windows server 2003 up in the internet. But sometime I need
I have this situation that is really irritating me now. At random times with
I have written a code that sends out Email from Windows Service. Now when
We have need for a rating system in a project we are working on,
I have need to select a number of 'master' rows from a table, also

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.