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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:07:37+00:00 2026-05-23T20:07:37+00:00

I would like to submit some information collected from user during Inno setup installation

  • 0

I would like to submit some information collected from user during Inno setup installation to our server via POST.

Obvious solution would be to include an .exe file that the setup would extract into temporary location and launch with parameters. However, I’m wondering – is there is any easier/better way?

  • 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-23T20:07:38+00:00Added an answer on May 23, 2026 at 8:07 pm

    Based on jsobo advice of using WinHTTP library, I came with this very simple code that does the trick. Say, you want to send serial number for verification just before the actual installation starts. In the Code section, put:

    procedure CurStepChanged(CurStep: TSetupStep);
    var
      WinHttpReq: Variant;
    begin
      if CurStep = ssInstall then
      begin
        if AutoCheckRadioButton.Checked = True then
        begin
          WinHttpReq := CreateOleObject('WinHttp.WinHttpRequest.5.1');
          WinHttpReq.Open('POST', '<your_web_server>', false);
          WinHttpReq.SetRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
          WinHttpReq.Send('<your_data>');
          { WinHttpReq.ResponseText will hold the server response }
        end;
      end;
    end;
    

    The Open method takes as arguments the HTTP method, the URL and whether to do async request and it seems like we need to add SetRequestHeader in order to set the Content-Type header to application/x-www-form-urlencoded.

    WinHttpReq.Status will hold the response code, so to check if the server returned successfully:

    if WinHttpReq.Status <> 200 then
    begin
      MsgBox('ERROR', mbError, MB_OK);
    end
    else
    begin
      MsgBox('SUCCESS', mbInformation, MB_OK);
    end;
    

    https://learn.microsoft.com/en-us/windows/win32/winhttp/winhttprequest lists all methods and properties of the WinHttpRequest object.

    Also, to avoid run-time errors (can happen if the host is unreachable) it is a good idea to surround the code with try/except code.

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

Sidebar

Related Questions

I'm looking for some information on interacting with websites with C#. I would like
I would like to have a form that can submit to two different action
I would like to know if it is possible to submit a flash form
I would like to use replace the value of a submit button with Loading&hellip;
I am attempting to submit a querystring to a ColdFusion page. I would like
I have a form setup but for some reason the JS to submit the
I'm having trouble submitting some hidden form data via post from the following function:
I have a form I am creating and I would like to send information,
I have an ASP MVC 3 site that allows a user to submit some
I have a registration page and would like to perform some validation (in addition

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.