Dependent executable files available to the user

Asked

Viewed 164 times

1

I got a problem with my setup of Visual Studio 2010,

I made an application that the form main has several Forms dependent and when the setup from it and perform the installation of it, in the installation folder the dependent executable files are available for the user to run directly. How do I leave only the exe main available for user access and make the other files exe inaccessible to the end user?

  • 2

    You can try using the Ilmerge to bring together all the Exes in one (tutorial).

  • Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?

1 answer

2

You are not with a problem, you want for some reason to reduce the amount of files. Do you have a good reason for this? If not, do not.

If you really want to, you can do as Omni said in the commentary and use the Ilmerge to join the files into one. You have up to one GUI if you think it helps. Example of use:

ilmerge /target:winexe /out:Main.exe 
    Program.exe ClassLibrary1.dll ClassLibrary2.dll

It is not any code file that can be used for this. As the native code format is different, they cannot be merged.

Having multiple files is the least of the dependency issues. If you really don’t want to have dependencies, use .NET Core. With it you even need the . NET installed on the machine. You will need to have some files, but will really avoid the most significant dependencies and that can bring real difficulties.

There are already more modern solutions for . NET Core. This is for legacy use.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.