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

The Archive Base Latest Questions

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

I got an installer which installs an application and starts this one right after

  • 0

I got an installer which installs an application and starts this one right after the installation was finished. This works properly for me.

But now I want to stop that application while uninstalling the application, i don’t want the user to be prompted to close applications manually. This shall work full automatic.

I ned to do this using a custom action, the WM_CLOSE message will not work in my approach (really, i tried it a couple of times).

I thought that this can’t be that difficult, but I don’t get it to work. What I did so far:

I defined a CustomAction:

<CustomAction Id="CloseTrayApp" ExeCommand="-exit" FileKey="TrayApp" Execute="immediate" Return="asyncNoWait" />

and called it liek this:

<InstallExecuteSequence>
...
    <Custom Action="CloseTrayApp" Before="InstallValidate" />
...
</InstallExecuteSequence>

But this does not work. I guess that I’m sheduling my custom action wrong, but I can’t figure out the correct time to do it.

Are there any suggestions regarding the time/place to shedule the custom action in? I’m quite unsure if

Before="InstallValidate"

is the right place to do it.

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

    Per the FilesInUse Dialog help topic, before InstallValidate is the correct place to schedule the custom action. But I’m confused as to why the WM_CLOSE won’t work for you. I saw you asked another question and accepted it as the answer. Perhaps your TrayApp could have a “hidden” form that the user never sees but is running to receive the WM_CLOSE message. This is a trick I’ve done many times over the years.

    Otherwise, if you really want to call your EXE, I suggest never using an EXE custom action. Instead use the Quiet Execution Custom Action. For some reasons on why to do this see Integration Hurdles for EXE Custom Actions.

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

Sidebar

Related Questions

I've got a Java application that I'm writing an installer for. We're using the
Okay, we've got an application which consists of a website hosting several ASMX webservices,
I've got an installation task using InnoSetup which I'm not quite sure how to
I have an ASP Classic application which references some VB6 COM OBJECTS. One of
I'm in a kind of misery. I got an installer installing and starting a
I've got Capybara installed on Rails but, if I drop into the debugger in
The high level problem we're having is this. We've got Apache Wave installed and
I am starting a sample Android application and one of the things I need
I am developing an iPhone application which I need to distribute to an organization
I have some xml files, which are used in my application. They are stored

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.