combining pdb file,xml config file and a dll into a single file - .net-assembly

I have three files in the bin folder. While building,I am getting these files.one dll file,one application file(which has no extension),one xml configuration file(which has .exe extension). How it is possible to combine these 3 files into a single exe?..I am running C# winform application

It is impossible to combine them, but you don't need to distribute the .xml or .pdb files, they are just for debugging.

Related

Put Folder with All Subdirs in Auto Py to Exe

I'm currently trying to compile a large project, which has a lot of folders with a lot of subdirs and subfiles.
These files all need to be in the right folder with the right name.
In the main folder where also the .py file is, are 2 folders with all the files.
The problem is:
I need to add all these in the .exe file. These are Like 170MB, So adding them all per hand is not an option.
It is also important that everything is in one .exe file. Does anyone know how to do this?

Adding a file into the Runtime Image in WEC7

In order to include any file in the WEC7 we have to use the bib files.
In my case I created a subproject in which I wrote an application, now I want this application to be included in the run-time image. So I opened the project.bib file and wrote the following entries.
As it is an executable file, it should be in the MODULES Section
MODULES
Subproject2.exe $(_FLATRELEASEDIR)\Subproject2.exe NK
When I loaded the image on the device, I checked the Windows folder for the image, it was not present.
But when i wrote this in the FILES section
FILES
Subproject2.exe $(_FLATRELEASEDIR)\Subproject2.exe NK
It is present in the windows folder, may I know the reason?
Is it that for executables we have to keep it in the FILES section?
Or whether I'm doing anything wrong?
The MODULES section is for exe's or dll's that you may want to execute in-place, that is, without first loading them into RAM. Modules listed in this section will not be compressed in the final nk.bin image.
The FILES section on the other hand is for files that can be compressed in the image without affecting the ability to run in-place. This includes resources like bitmap images, audio and video files, and, perhaps surprisingly, also .NET exe's and dll's which are not real executables in this context (they are always loaded into memory before execution).
So generally, unmanaged/non-.NET executables should be placed in the MODULES section.
When you make changes to the .bib file be aware that, depending on the BSP, you may need to perform a platform sysgen and copy files to the release directory before generating the image.
In Platform Builder 7.0, this is done by right-clicking the Platform name in Solution Explorer and hitting Sysgen(SysgenPlatform...), followed by a trip to the Build menu and the Copy Files to Release Directory command.
You'll need to do the same if you change any .reg, .dat or .db files.
Notice that you can load the nk.bin file directly in Platform Builder to inspect its contents, files, registry entries, etc. This can potentially save some time compared to installing the image in the target. Just go through the File menu, Open, File... and navigate to the nk.bin file.

How can I detect the names of files in a folder in Visual C++?

I have a folder that is containing text files (.txt). In my application I must read all files from this folder. But I don't know the names of these files and how many files in the folder. My application is C++ console application in MS VS 2013 without MFC support and without BOOST. Is there any function in Visual C++ that allows to detect the names of the files placed in specified folder and returns these file names? For example the name of the folder is SomeFolder. I'll be very much obliged to you for help.
There are multiple ways of enumerating files within a folder such as WinAPI32 (FindFirstFile & FindNextFile) or MFC (CFileFind class).
The following are examples of either way:
How to get list of files in a directory programatically
Recursive file search using C++ MFC?

Create a setup.exe file without any dependent files

I am a first time user of this group and so pardon me for any mistakes and unclear statements.
What I am trying to do is to create single setup.exe (not msi) using installshield. But when I build the project what I get is other files along with the .exe file for e.g. .cab, .hdr, .inx and other such files.
I am using the options under Release -> Release Wizard -> General options-> Checked the "Create a single file executable" & "Compress compiled script" options but still I get the extra files along with the setup.exe file. I want a setup.exe file to be created independent of the other local files.
So could anyone suggest me how to achieve that.
Any help will be appriciated.
Thanks.
As Michael Urman wrote, you will find the one file in adjacent folder.
The folder name is "Package".
Those files are always created for InstallScript projects. When you build a single file executable, the single file version that packages it all together is available in an adjacent folder.

is it possible to tell NSIS to setof files listed in a config file?

I have to download different files from a location on the network, http, but the file names versions I want to supply in a configuration file. is this possible ?
You can read from files with the NSIS ini instructions, manual parsing with FileRead or use one of the helper macros.
You can download files with the INetC plugin...

Resources