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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:31:47+00:00 2026-05-15T18:31:47+00:00

Using NSIS, I want to launch an uninstaller and wait for it to finish

  • 0

Using NSIS, I want to launch an uninstaller and wait for it to finish before proceeding with my installer. The problem is the uninstaller is returning immediately, even though I’m using ExecWait.

I saw this page here: http://nsis.sourceforge.net/When_I_use_ExecWait,_it_doesn%27t_wait which mentions why it’s happening, and then offers some suggestions, but I can’t get mine to work.

The code I’m trying is:

ExecWait '"C:\path\to\uninstall.exe" /NCRC' $0
MessageBox MB_OK "uninstaller returned $0"

Which shows the message box displaying “uninstaller returned 0” at the same time the uninstaller is launched. Has anyone gotten around this?

Thanks

  • 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-15T18:31:47+00:00Added an answer on May 15, 2026 at 6:31 pm

    The page you linked to talks about ExecWait in general, but it also links to When I use ExecWait uninstaller.exe it doesn’t wait for the uninstaller, that is the NSIS specific info you are looking for ( _?=c:\theinstalldir tells nsis uninstaller not to copy itself to %temp% and execute a new (non waiting) copy there)

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

Sidebar

Related Questions

I want to make a mock installer using NSIS so we can demo what
I have a rather large project whose Installer is written using NSIS. My problem
I want to set environment variable using NSIS installer. I will run script on
I am using the function Splice in my NSIS Installer. My Problem: When I
I am creating the Installer Using NSIS, The installation works without any problem, the
I want to make a installer using nsis , but i can't find a
I am using NSIS to create a Windows installer. In my uninstaller I need
i want to execute some commands using NSIS script , but for the commands
I want to copy war file to tomcat web-app directory using NSIS setup. I
I have an NSIS installer that has the start menu folders hard-coded using this

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.