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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:28:58+00:00 2026-05-16T18:28:58+00:00

I want to distribute only a single .exe, however, at runtime I would like

  • 0

I want to distribute only a single .exe, however, at runtime I would like it to extract some embedded image resources to the users hard disk drive.

Can I, and if so, how?

  • 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-16T18:28:59+00:00Added an answer on May 16, 2026 at 6:28 pm

    Use Delphi’s TResourceStream. It’s constructor will find and load the resource into memory, and it’s SaveToFile method will do the disk write.

    Something similar to this should work:

    var
      ResStream: TResourceStream;
    begin
      ResStream := TResourceStream.Create(HInstance, 'YOURRESOURCENAME', RT_RCDATA);
      try
        ResStream.Position := 0;
        ResStream.SaveToFile('C:\YourDir\YourFileName.jpg');
      finally
        ResStream.Free;
      end;
    end;
    

    If you can use the resource ID instead of name, it’s a little less memory. In that case, you’d resplace Create with CreateFromID, and supply the numeric ID rather than the string name.

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

Sidebar

Related Questions

I have an EXE that I want to distribute, but I don't want to
I've got an app which I would like to distribute through the market place
We have an enterprise distribution of an app that we would like to distribute
I want to distribute x(i) objects (x E {1...n}) , where each object has
I want to distribute my app on OSX (using py2app) and as a Debian
I have a program that I want to distribute, without giving the source code
I have an sqlite database I want to distribute with my application. It's about
I have created a simple Python module and want to distribute it with pip.
Say I have a web component that uses jQuery and I want to distribute
Hello fellow software developers. I want to distribute a C program which is scriptable

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.