Thirteen Years of Service
Posts: 2,367
Threads: 170
need some help with icon injection... 02-03-2011, 09:56 AM
#1
well, in my program it will download a .ico file from a source then save it to the temp path. next i used sage's iconinjector class which i did:
Iconinjector.inject(application.executablepath, environ("temp") & "/1.ico"
but every time i tried it wont inject itself but will inject other executable's.
is there any solution?
Pierce the life fibers with your drill.
•
Thirteen Years of Service
Posts: 2,622
Threads: 213
RE: need some help with icon injection... 02-03-2011, 10:04 AM
#2
You cannot edit any file which is running.
Just make a copy of the executable, and change its icon.
![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
Redcat Revolution!
•
Thirteen Years of Service
Posts: 2,367
Threads: 170
RE: need some help with icon injection... 02-03-2011, 10:09 AM
#3
well... the real code is:
if my.computer.info.osfullname.contains("Windows XP") = true then
iconinjector.inject(application.executablepath, environ("temp") & "\1.ico")
else
iconinjector.inject(application.executablepath, environ("temp") & "\2.ico")
end if
well, sorry im a bit dumb but if you copy the file and inject it i want it renamed the same as the file and in the same directory also don't want 2 processes... what to do? :rip:
Pierce the life fibers with your drill.
•
Thirteen Years of Service
Posts: 2,622
Threads: 213
RE: need some help with icon injection... 02-03-2011, 01:17 PM
#4
So you want to save the icon or change some exe's icon? Oo
![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
Redcat Revolution!
•
Thirteen Years of Service
Posts: 2,367
Threads: 170
RE: need some help with icon injection... 02-03-2011, 02:05 PM
#7
tnx man for taking your time it works :Thumbs:
Pierce the life fibers with your drill.
•