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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:53:41+00:00 2026-06-05T19:53:41+00:00

Possible Duplicate: Embedded a *.exe into a dll I have a C# project –

  • 0

Possible Duplicate:
Embedded a *.exe into a dll

I have a C# project – a class library – that produces a DLL file.

From within itself, this project runs an external .exe file. (Using the standard Process stuff, and it works fine.)

However, my question is: How can I bake the external .exe file into the project, such that the end-consumer will only receive the final DLL file, without ever seeing the .exe file itself?

This will make my client happier, as he will continue receiving one DLL file (as before, before I needed the .exe).

  • 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-05T19:53:43+00:00Added an answer on June 5, 2026 at 7:53 pm

    If your client needs the .exe at runtime, you’d darn well better make sure he has a copy of the .exe. IMHO…

    PS:

    You can “trick” the client by embedding your .dll as a resource (as a “Trojan horse”), and then extracting it at runtime. Which, IMHO, would be stupid. Expensive. And risky.

    If you need the .exe, ship the .exe. And be explicit about it.

    If the client expressly refuses to have an .exe – then your implemention violates the requirements, and you need to go back to the drawing board.

    The “exe-as-resource” workaround … is a lie and a cheat. And it isn’t even a very efficient or safe cheat.

    ALSO:

    Embedded a *.exe into a dll

    On a side note, remember that when you pull a file from your resources
    to disk and then execute code on it, you may trigger Windows Data
    Execution Prevention – basically, Windows tries to automatically
    detect if something is supposed to be code or data, and if it looks
    like data (which a resource would), then it will prevent that data
    from being executed as code.

    This becomes a particularly sticky issue if your .NET assembly is
    going to be used over a network instead of from a local drive – there
    are all sorts of .NET security configurations that might prevent this
    from working correctly.

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

Sidebar

Related Questions

Possible Duplicate: Stop a Vimeo Video with Jquery I have a video embedded into
Possible Duplicate: How to call a JavaScript function from PHP? I have a php
Possible Duplicate: Extracting dollar amounts from existing sql data? I have a column in
Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file
Possible Duplicate: Split A4 PDF page into two A5 and back again I have
Possible Duplicate: Smart pointers/safe memory management for C? I have an embedded application where
Possible Duplicate: What is the best Evaluation Kit for Learning Embedded C/C++ Development? I'm
Possible Duplicate: regex for URL including query string I have a text or message.
Possible Duplicate: How can I combine multiple rows into a comma-delimited list in Oracle?
Possible Duplicate: Security of PHP script, embedded or otherwise Many PHP apps available for

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.