How to use MimeStream with nested .exe - Forum

Forum Navigation
You need to log in to create posts and topics.

How to use MimeStream with nested .exe

I can't figure out MimeStream.
How do I use it with attached files?
For example, I have an attached program file MyProgram.exe, which I want to run directly from memory, not from the file system, i.e. instead:

ExtractFile "[Embedded]MyProgram.exe" "[PubDir]MyProgram.exe"
Run "[PubDir]MyProgram.exe" "" "Normal" "" ""

use like this :

ExtractFile "[Embedded]MyProgram.exe" "[MimeStream]MyProgram.exe"
Run "[MimeStream]MyProgram.exe" "" "Normal" "" ""

What am I doing wrong?

Hello,

MimeStreams is a technic to store binary content in a text-stream which can be hold in a VNWIN variable.

The Run command does not know anything about text-streams.

It only supports to start EXE from the file-system.

Regards

 

@leopold,

You could also keep the file encrypted (using any method), and simply decrypt it before use and delete it when done (it lives in your Embed space).

Another way to protect / hide files, although being a bit more complex, is to create a database and store your file as a blob object in your database.  Extract when need and delete when done.  This is a good method if you have a large collection of files to work with, and doubles as a fast index to them.

And I have found that the run command will run a file (as long as it's really an exe) regardless of file extension.  I have hidden exe files by simply changing the file extension to "dll", or whatever you wish.

luishp and Vadim have reacted to this post.
luishpVadim