Inject icon into exe file without temp files(repost)(repost)

Törölve Kiadva: Dec 18, 2008 Kiszállításkor fizetve
Törölve Kiszállításkor fizetve

We need to be able to change the icon of an exe.

The task is very simple.

Consider the following:

byte[] exeFile;

byte[] newIconFile;

we now want a function like this:

byte[] changeIcon(byte[] exeFile, byte[] newIconFile)

This function should return the bytes of the exe file with the new icon injected into it.

Its VERY important that no data what so ever is written to disk. No temp files allowed.

A previous coder tried to solve it here on rentacoder but did not solve it.

His comments:

"I need to use theese 3 Windows API methods (BeginUpdateResourceW,

UpdateResourceW and EndUpdateResourceW) which all need a file name."

So if you bid for this make sure you know how manipulate resources within an EXE file.

For example of exe file and icons that we want to be able to work with, see attached ZIP-file.

## Deliverables

* * *This broadcast message was sent to all bidders on Saturday Dec 20, 2008 1:45:38 PM:

To everyone. THere have been a lot of questions from you on this bid that shows that you are all talented coders that know that this in fact is not so trivial as it first seems. I will answer all you questions trough this broadcast message since many of you have asked by many of you. 1. "Why cant we use a temp file or write to disk?" Answer: This code will be executed on a webserver, the application will take an uploaded file (still in memory from web POST operation) and create an encrypted zip/exe file in MEMORY and return this new file as a download. We can NOT write anything to disk because our server ISP does not allow it. Further more they do not allow impersonation either so we can not run the application under a context/user that has file write access. 2. "What language can we use". Answer: We need to be able to call this piece of code from the ASP.net web application, prefered language is therefore C#, managed c++ or VB.net, we can not use COM technology, therefore NO unmanaged languages. 3. "New Icon has different size and it will not work with the old resource table in the exe. what should we do?" Answer: Solve it, any way you want. just solve it :) 4. "Do you need error checking?" Answer: Yes of course! if you for some reason can not return a valid EXE the function should not corrupt the exe data, simply leave it untouched. Please feel free to ask more questions. Also we will extend the bid request time til after x-mas. Best regards.

C# programozás Mérnöki munka Microsoft MySQL PHP Szoftverarchitektúra Szoftvertesztelés Windows Asztal

Projektazonosító: #3482349

A projektről

7 ajánlat Távolról teljesíthető projekt Utoljára aktív: Jan 9, 2009

7 szabadúszó tett átlagosan 61$ összegű árajánlatot erre a munkára

brianstanek

See private message.

$85 USD 5 napon belül
(53 vélemény)
5.5
risu

See private message.

$74.8 USD 5 napon belül
(36 vélemény)
5.0
zenecisvw

See private message.

$42.5 USD 5 napon belül
(33 vélemény)
5.0
waymanpk

See private message.

$63.75 USD 5 napon belül
(15 vélemény)
4.5
flrenzi

See private message.

$68 USD 5 napon belül
(6 vélemény)
4.0
flylobster

See private message.

$40.8 USD 5 napon belül
(6 vélemény)
3.2
ThePicaso

See private message.

$51 USD 5 napon belül
(3 vélemény)
0.4