Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Mutex name of Ninjatrader Application.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mutex name of Ninjatrader Application.

    Hi,

    I need to know the mutex name of Ninjatrader application to specify on the installer code of indicator. I'm using Inno setup script to prepare the installer.

    I need to specify the mutex name to prevent the user from installing indicator or new versions of inducator while Ninjatarder is running.

    Please help.

    Regards,

    Pooja Krishna.

    #2
    Pooja Krishna, welcome to our forums - unfortunately we would not know what that is exactly, could you perhaps clarify your request for us?

    Thanks

    Comment


      #3
      Bertrand,

      Thanks. I'm using Inno script to create the Installer for a NinjaTrader indicator as it has a custom DLL to manage license.

      I want to ask user to exit NinjaTrader before installing or uninstalling the Indicator, the straight forward way to do so in inno script is to specify the mutex name of the application. I have work arounds here, if NinjaTrader has no Mutex name.

      Plesae see the following link describing mutex usage with Inno script:

      Comment


        #4
        Thanks for clarifying, unfortunately we would not know - would the PID in this context help you also?

        Comment


          #5
          Thanks for the support.

          I will check the existance with the PID or Window name with class.

          Comment


            #6
            Checking existance with window class

            I have used the following code to find the existance of NinjaTrader in my Inno script.

            function NextButtonClick(CurPageID: Integer): Boolean;
            var
            NTWin: HWND;
            begin
            NTWin:= FindWindowByClassName('WindowsForms10.Window.8.app .0.378734a');
            if NTWin<> 0 then
            begin
            Msgbox('The installer has detected that Ninjatrader is currently running.'+#13+'Please close all instances of NinjaTrader now, then click Next to continue, or Cancel to exit the Installer." ', mbError, MB_OK);
            Result := FALSE;
            end;
            end;

            Comment


              #7
              Great, thanks for posting your solution here!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              597 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              343 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              556 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              555 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X