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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:29:58+00:00 2026-06-17T12:29:58+00:00

I am new to Inno Setup and I have already read the documentation. Now

  • 0

I am new to Inno Setup and I have already read the documentation. Now I know that Inno Setup can accept different/custom parameter and could be processed via Pascal script. But the problem is, I don’t know how to write in Pascal.

I am hoping I could get help about the coding.

I’d like to pass /NOSTART parameter to my setup file which while tell the setup to disable(uncheck) the check mark on “Launch ” and if /NOSTART is not provided, it it will enable(check) the check mark “Launch “

enter image description here

or if possible, that Launch page is not required and do everything via code.

  • 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-17T12:29:58+00:00Added an answer on June 17, 2026 at 12:29 pm

    and so a little research read and read .. i got my answer.

    here’s my code (except the “GetCommandLineParam”)

    [Code]
    {
    var
      StartNow: Boolean;
    }
    
    function GetCommandLineParam(inParam: String): String;
    var
      LoopVar : Integer;
      BreakLoop : Boolean;
    begin
      { Init the variable to known values }
      LoopVar :=0;
      Result := '';
      BreakLoop := False;
    
      { Loop through the passed in arry to find the parameter }
      while ( (LoopVar < ParamCount) and
              (not BreakLoop) ) do
      begin
        { Determine if the looked for parameter is the next value }
        if ( (ParamStr(LoopVar) = inParam) and
             ( (LoopVar+1) <= ParamCount )) then
        begin
          { Set the return result equal to the next command line parameter }
          Result := ParamStr(LoopVar+1);
    
          { Break the loop }
          BreakLoop := True;
        end;
    
        { Increment the loop variable }
        LoopVar := LoopVar + 1;
      end;
    end;
    
    {
    function InitializeSetup(): Boolean;
    var
      NOSTART_Value : String;
    
    begin
      NOSTART_Value := GetCommandLineParam('/NOSTART');
    
      if(NOSTART_Value = 'false') then
        begin
          StartNow := True
        end
      else
        begin
          StartNow := False
        end;
    
      Result := True;
    end;
    }
    
    procedure CurStepChanged(CurStep: TSetupStep);
    var
      Filename: String;
      ResultCode: Integer;
      NOSTART_Value : String;
    begin
      if CurStep = ssDone then
        begin
          NOSTART_Value := GetCommandLineParam('/NOSTART');
          if(NOSTART_Value = 'false') then
            begin
              Filename := ExpandConstant('{app}\{#MyAppExeName}');
              Exec(Filename, '', '', SW_SHOW, ewNoWait, Resultcode);
            end
        end;
    end;
    

    a code update. Thanks to @TLama

    function CmdLineParamExists(const Value: string): Boolean;
    var
      I: Integer;  
    begin
      Result := False;
      for I := 1 to ParamCount do
        if CompareText(ParamStr(I), Value) = 0 then
        begin
          Result := True;
          Break;
        end;
    end;
    
    procedure CurStepChanged(CurStep: TSetupStep);
    var
      Filename: String;
      ResultCode: Integer;
      NOSTART_Value : String;
      RunApp : Boolean;
    begin
      if CurStep = ssDone then
        begin
          RunApp := CmdLineParamExists('/START');
          if(RunApp = True) then
            begin
              Filename := ExpandConstant('{app}\{#MyAppExeName}');
              Exec(Filename, '', '', SW_SHOW, ewNoWait, Resultcode);
            end
    
          // NOSTART_Value := GetCommandLineParam('/START');
          // if(NOSTART_Value = 'true') then
            // begin
              // Filename := ExpandConstant('{app}\{#MyAppExeName}');
              // Exec(Filename, '', '', SW_SHOW, ewNoWait, Resultcode);
            //end
        end;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am really new in this Inno Setup and I would really be glad
Is there a way to generate a new GUID from inside the Inno Setup
so I know you can add a custom field with the .add method...is there
I'm pretty new to Inno Setup. I created a fairly simple installer (and it
We have a site that we're moving to a new server. Everything worked fine
The new Inno Setup IDE allows pre and post compile actions. Let's say we
I am new to Inno Setup. Stuck on one issue ~ how to configure
New to PHP and MySQL, have heard amazing things about this website from Leo
new to c#. I'm trying to make a simple system where I can search
New developer here,Im using the Custom Image Picker by ray wenderlich. But what I

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.