473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Adding file to exe on the fly

I have an exe. When one of admin runs it creates a file. This file is
required for the exe to run when we deliver to client. Is it possible
to add the file into the exe when the admin runs instead of
recompiling the code?
In otherwords, is it possible to add a file to the exe or add a
resource to the executing exe?
Thanks,
Sep 15 '08 #1
5 1263
CSharper <cs******@gmx.comwrote:
I have an exe. When one of admin runs it creates a file. This file is
required for the exe to run when we deliver to client. Is it possible
to add the file into the exe when the admin runs instead of
recompiling the code?
In otherwords, is it possible to add a file to the exe or add a
resource to the executing exe?
It's possible, but it would be relatively tricky. Why not just keep the
file separate but in the same directory?

--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Sep 15 '08 #2
On Sep 15, 1:47*pm, Jon Skeet [C# MVP] <sk...@pobox.comwrote:
CSharper <cshar...@gmx.comwrote:
I have an exe. When one of admin runs it creates a file. This file is
required for the exe to run when we deliver to client. Is it possible
to add the file into the exe when the admin runs instead of
recompiling the code?
In otherwords, is it possible to add a file to the exe or add a
resource to the executing exe?

It's possible, but it would be relatively tricky. Why not just keep the
file separate but in the same directory?

--
Jon Skeet - <sk...@pobox.com>
Web site:http://www.pobox.com/~skeet*
Blog:http://www.msmvps.com/jon.skeet
C# in Depth:http://csharpindepth.com
We wanted to ship only one file out (management requirement). Thanks
and could you please tell me how to go about doing it?
Thanks,
Sep 15 '08 #3
CSharper <cs******@gmx.comwrote:
We wanted to ship only one file out (management requirement). Thanks
and could you please tell me how to go about doing it?
Find the format of the exe file (PE format) and rebuild it all. It'll
be a massive pain though. I would strongly urge you to ask management
just how much they want this.

--
Jon Skeet - <sk***@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Sep 15 '08 #4
On Sep 15, 3:20*pm, Jon Skeet [C# MVP] <sk...@pobox.comwrote:
CSharper <cshar...@gmx.comwrote:
We wanted to ship only one file out (management requirement). Thanks
and could you please tell me how to go about doing it?

Find the format of the exe file (PE format) and rebuild it all. It'll
be a massive pain though. I would strongly urge you to ask management
just how much they want this.

--
Jon Skeet - <sk...@pobox.com>
Web site:http://www.pobox.com/~skeet*
Blog:http://www.msmvps.com/jon.skeet
C# in Depth:http://csharpindepth.com
Is it possible to to have a place holder in the file and then replace
the content of the file later somehow? My other option is to use
ILMerge.
Sep 16 '08 #5
On Sep 16, 1:15*pm, CSharper <cshar...@gmx.comwrote:
Is it possible to to have a place holder in the file and then replace
the content of the file later somehow? My other option is to use
ILMerge.
Either of those *might* work - but you'll need to look into the PE
format and dig around to find out for sure.

Jon
Sep 16 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Garry | last post by:
Hi, I am new to python, hope someone can help me here: I have a MS Access exported .txt file which is tab delimited in total 20 columns, now I need to add another column of zero at the 4th column...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
7
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
1
by: Christopher W. Douglas | last post by:
I am building a VB.NET application in Visual Studio.NET 2003. I have an existing project with code and forms I want to reuse in this project. If I am copying a module file, then Add Existing Item...
1
by: Max | last post by:
Searched all over google and can't seem to find how to do this. How do I go about adding comments about my own functions and sub-procedures? Like when I use them, the tool-tip tells me more then...
6
by: UJ | last post by:
I have a couple of files (type definitions, constants, ...) that I want to use in multiple projects. How do I make it so that I have only one copy of the file for multiple projects? If I do add...
4
by: Saurabh Aggrawal | last post by:
Hi, I have made a dll and it is working fine in the debug build (as expected) but when I run it in the release build it is working strangely. For example, the dll saves the 10 properties on the...
5
by: DBC User | last post by:
I have a situation, where I need to add 4 or 5 data files (they change every time I build) in my project during build time and somehow I need a way to access these files during runtime. So I have...
1
by: John | last post by:
Is there such a thing as storing icons or bitmaps into a resource file, and adding more icons or bitmaps into the resource file at runtime? I want to store a bunch of icons into a resource file,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.