Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    BertrandNinjaTrader Customer Service

    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?

        BertrandNinjaTrader Customer Service

        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!
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mestor, 03-10-2023, 01:50 AM
              16 responses
              388 views
              0 likes
              Last Post z.franck  
              Started by rtwave, 04-12-2024, 09:30 AM
              4 responses
              31 views
              0 likes
              Last Post rtwave
              by rtwave
               
              Started by yertle, Yesterday, 08:38 AM
              7 responses
              29 views
              0 likes
              Last Post yertle
              by yertle
               
              Started by bmartz, 03-12-2024, 06:12 AM
              2 responses
              22 views
              0 likes
              Last Post bmartz
              by bmartz
               
              Started by funk10101, Today, 12:02 AM
              0 responses
              7 views
              0 likes
              Last Post funk10101  
              Working...
              X