|
-
Nov 17th, 2002, 03:34 PM
#1
Thread Starter
Addicted Member
Changing Icon
Ok, i'm making a setup program creater and I want to change the icon of a compiled exe. Anyone knows how to do this? (if it's even possible) 
Thanks in advance,
-Shell-
-
Nov 17th, 2002, 03:42 PM
#2
Stuck in the 80s
Why would a setup program need to change the icon of a compiled exe?
-
Nov 17th, 2002, 03:44 PM
#3
Thread Starter
Addicted Member
I made an engine (a separate exe) which is the actual setup program, i executes a text file. I want the user to be able to change this program's icon.
-Shell-
-
Nov 17th, 2002, 03:46 PM
#4
Stuck in the 80s
A text file isn't a program. You could change the icon associated with a text file, if that's what you mean.
-
Nov 17th, 2002, 03:47 PM
#5
Thread Starter
Addicted Member
Nono! I have the engine (an exe), and it contains a text file.
-Shell-
-
Nov 17th, 2002, 03:53 PM
#6
Stuck in the 80s
And you want the user to be able to change the icon of your "engine?" Or the text file? How does your engine contain a text file?
It's a setup program, right? So does it create a text file? and you want to change the icon FOR that text file?
I'm so confused.
-
Nov 17th, 2002, 03:56 PM
#7
Thread Starter
Addicted Member
lol, ok, I'll try to explain 
I have made a setup creater and a setup engine. The creater is used to generate a script file which the setup engine can run.
So you can use the engine to execute a script file, the script file contains all needed info about how the setup should go.
When the script file is made, i make a copy of the engine exe and put the text file into the exe. What I want to do is to change the icon of this exe.
-Shell-
-
Nov 17th, 2002, 04:13 PM
#8
-
Nov 17th, 2002, 04:15 PM
#9
Thread Starter
Addicted Member
That was what I was thinking 
I hoped someone would have some code to do it 
Thanks though.
-Shell-
-
Nov 17th, 2002, 04:17 PM
#10
Frenzied Member
that could be done using code.....but i think there is a better way...
-
Nov 17th, 2002, 04:18 PM
#11
Thread Starter
Addicted Member
How?! Tell me!? please! 
-Shell-
-
Nov 17th, 2002, 04:19 PM
#12
Frenzied Member
well... i dont know a better way, but i hope there is
-
Nov 17th, 2002, 04:20 PM
#13
Thread Starter
Addicted Member
lol, i hope someone tells me that way 
-Shell-
-
Nov 17th, 2002, 04:24 PM
#14
Frenzied Member
maybe you could do like this:
VB Code:
Open PrevIcon For Binary As #1
'get the text from it
Close #1
Open NewIcon For Binary As #1
'get the text from it
Close #1
Open Exe For Binary As #1
'do search for PrevIcons text and paste text from NewIcon...
'save
Close #1
-
Nov 17th, 2002, 04:26 PM
#15
Thread Starter
Addicted Member
Yea, but then the source icon must be the same size as the current one. ack! this is hard 
-Shell-
-
Nov 17th, 2002, 04:28 PM
#16
Frenzied Member
-
Nov 18th, 2002, 07:36 AM
#17
Thread Starter
Addicted Member
I've done some searching and I found a program called recource hacker, with it I can change the icon of a program, now all I need to know is how to do it with code 
-Shell-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|