Creation of independent documents

I am working on a project that has its own file format. The project has a larger program needed for installation, and a smaller viewer that does not require installation. I would like to be able to export files from my main application, which are self-disclosing .exe - that is, you can double-click the EXE and the embedded file will show (this means to bypass the viewer by people who are NOT installed the main application that can view it - they will pass only according to the document).

I lost a little how to do it. My two thoughts, which I studied, have come to a standstill. It:

1) Insert the file into the viewer. I can do this manually through Visual Studio, and I have a working demonstration of this, but I can’t find a way to do this on the fly.

2) Create a self-extracting archive that extracts the file and exe in temp and runs exe with the file name on the command line. It sounds easy and possible (although hacked), but I ran into the problem that archives or installers do not have the command line needed for this.

Any ideas? I prefer the second because it is easy, but the first because it seems more bulletproof / less hacked.

+5
source share
2 answers

exe , , , , . , , . .

, Xint0 . . , , , , . - , , , .

+1

(1):

.NET, , - , ILMerge , .

ILMerge - , .

, , " , ", , , .

- "". , , .

, CMake VStudio, MSBuild .

+3

All Articles