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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:15:06+00:00 2026-06-11T05:15:06+00:00

I have a WinForms app that should be really easy to deploy with just

  • 0

I have a WinForms app that should be really easy to deploy with just and .exe file. It uses framework 2.0, and so it does not work on Windows 8 by default. If I include a .config file with the following parameters, it works fine on W8:

<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
    <supportedRuntime version="v2.0.50727"/>
  </startup>
</configuration>

However, now I have to deploy two files and this is not acceptable. Is there some thing I can do to “embed” those parameters into the exe itself?

I have tried using WinZip self extractor, but it’s not an option either, because I cannot customize its interface.

  • 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-11T05:15:08+00:00Added an answer on June 11, 2026 at 5:15 am

    .NET executable contains small piece of native code, which is intended to load appropriate CLR version into a process.

    Loader calls shim (MSCOREE.DLL, .NET executable has native dependency from this DLL) to load CLR (CLRCreateInstance in v4).
    Content of <startup> configuration element is processed by the shim.

    This means, you can’t process <startup> element in managed code, because there’s no CLR (and any managed code) at this moment. The only way is to write your own CLR host. I think, it is much easier to ship your application with config file, or build a version for .NET 4/4.5.

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

Sidebar

Related Questions

I have a .NET 4 WinForms app that uses the ADO.NET Entity Framework. Some
I have a winforms app that initially displays a window with two file dialog
I have a winforms app that uses a UserControl. The user control's job is
we have a .NET 3.5 WinForms app that uses Linq2Sql to insert records into
So we have a winforms app that in the task manager should anywhere from
I have a Winforms app that has a DataGridView that is databound at runtime.
I have a winforms app that checks user credentials as it starts. If autharization
I have a small WinForms app that utilizes a BackgroundWorker object to perform a
I have a DataGridView in a Winforms app that has about 1000 rows (unbound)
I have a test winforms app with ThreadExceptionHandler that displays a message box when

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.