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

  • Home
  • SEARCH
  • 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 8215287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:43:56+00:00 2026-06-07T11:43:56+00:00

I have two .exe programs, one is the game launcher and the other is

  • 0

I have two .exe programs, one is the game launcher and the other is the main executable. How would i go about making my main executable run the game launcher if someone goes to open it. It would be something to do with the .dpr file and some Windows API’s i am guessing just not sure what/where to start to be honest.

Reason i want it like this is simply because, the game launcher will be used to update the game and then when complete start the game thus people will always be using the latest up2date files.

So the functionality i would like too require is:
I can click on Main Executable or Launcher Executable both will open Launcher Executable and then when updates / downloads are complete Launcher will start Main Executable when the user has clicked Start button.

/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-06-07T11:43:58+00:00Added an answer on June 7, 2026 at 11:43 am

    Have the main executables startup code look for a command-line parameter of your choosing. You can use the RTL’s FindCmdLineSwitch() function for that purpose. If the parameter exists, run the game normally. Otherwise, use the Win32 CreateProcess() function to run the launcher executable and then exit itself. When the launcher is ready, it can use the CreateProcess() function to run the main executable, passing it the command line parameter to run the game.

    For example:

    Main.dpr:

    Var
      SI: TStrartupInfo;
      PI: TProcessInformation;
    Begin
      If not FindCmdLineSwitch('RunGameNow') then
      Begin
        ZeroMemory(@SI, SizeOf(SI));
        SI.cbSize := SizeOf(SI);
        ...
        If CreateProcess(nil, 'launcher.exe', nil, nil, False, 0, nil, nil, @SI, @PI) then
        Begin
         CloseHandle(PI.hThread);
         CloseHandle(PI.hProcess); 
        End;
        Exit;
      End;
      ... Run game normally...
    End.
    

    Launcher.dpr:

    Begin
      ...
      CreateProcess(nil, 'main.exe /RunGameNow', nil, nil, False, 0, nil, nil, @SI, @PI)
      ...
    End.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have essentially two programs: main.exe update.exe Update creates a flag file (update.inprogress) so
I have two Delphi7 programs: a COM automation server (EXE) and the other program
I have two files in the same folder that I'd like to run. One
I have one solution with two example projects. One is an exe Windows Forms
I would like a batch file to launch two separate programs then have the
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two classes (MVC view model) which inherits from one abstract base class.
I have two columns say Main and Sub . (they can be of same
I have two C# applications, one is reading a file (File A) line by
I am looking to have one of my Windows Forms applications be run programmatically—from

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.