user669677
user669677

Reputation:

How to delete embedded resource in c#?

I have an exe file that contains an embedded (source) video. After running a program, i have to copy it somewhere in order to run it. So that video will be twice on disc. That's why I would like to remove the video from exe after the extracting.

Upvotes: 1

Views: 733

Answers (1)

TomTom
TomTom

Reputation: 62109

You do not. Simply speaking - the video should not be a resource to start with. Per general WINDOWS rules (nothing .NET) a program should never make ANY modifications to the install folder - normal users have no writing rights there. Any resource should be installed by an INSTALLER.

You totally violate any decent rule about how to handle resources. Fix that - then you do not have he even more violating idea that a program should rewrite it's own code.

Upvotes: 2

Related Questions