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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:42:52+00:00 2026-05-28T19:42:52+00:00

Am using nsis for launching my java application. I wanted to show a window

  • 0

Am using nsis for launching my java application. I wanted to show a window once the application is launched. I can pass a command line argument while launching the java application like this.

OutFile "Test.exe"
....
ExecWait javaw.exe -jar myapp.jar
SectionEnd

Now I would like to show the default window of the already running java application if another instance of the nsis launcher is invoked. In order to do this I need to pass an argument to my java application. For this to happen I have to pass the argument to the cmd window(internally used by NSIS) of the already running instance.

How would I accomplish 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-28T19:42:53+00:00Added an answer on May 28, 2026 at 7:42 pm

    I’m not sure I understand you correctly but you can use this example to create a mutex for the nsis installer. The example there will bring to front the already running installer, you can change it a bit to bring to front the running java window, if you know its handle or title.

         System::Call "kernel32::CreateMutexA(i 0, i 0, t 'my_mutex') i .r0 ?e"
         Pop $0
         StrCmp $0 0 launch
         FindWindow $1 "my window class" "my window title"
         IntCmp $1 0 bring_front end
         bring_front:
         System::Call "user32::SetForegroundWindow(i r1) i."
         end:
         Abort
         launch:
    

    If you have Spy++ (which comes with Microsoft Visual Studio) you can find the window class of your java app.

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

Sidebar

Related Questions

Using NSIS, how can I read a (optional) command-line parameter provided to an uninstaller?
I´m using NSIS editor to make a setup for my application, but I don´t
I am using NSIS to deploy a .Net application. The installation/uninstallation process works fine,
I want to make a mock installer using NSIS so we can demo what
I'm using NSIS package generator in CMake 2.8.1 to distribute a Qt application. Everything
I am using an NSIS script to create an installer for my Java program.
I'm using NSIS to generate a Windows' installer for my application. I'd like a
I'm using NSIS script to generate the windows installer for my Java project. In
I want to install Java using an NSIS script, but i have to know
My NSIS installer creates Start Menu links to run and uninstall my application. Using

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.