Dependent executable files available to the user

1

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

I made an application that form principal has several dependent forms and when it generates its setup and installs it in the installation folder executable files are available for the user to run directly. How do I leave only the exe principal available for user access and make other exe files inaccessible to the end user?

    
asked by anonymous 31.07.2015 / 11:29

1 answer

2

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

If you really want to, you can do as Omni said in the comment and use the ILMerge to merge the files into one. You even have a GUI if you think it helps. Example usage:

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

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

Having multiple files is the least of the dependency problems. If you really do not want to have dependencies, use the .Net Core . With it you do not even need the .Net installed on the machine. It will need to have some files, but it will actually avoid the most significant dependencies and that can bring real difficulties.

    
31.07.2015 / 14:17