|
-
Apr 12th, 2011, 10:37 AM
#1
Thread Starter
Junior Member
How to make a program generating exe file?
Does anybody knows how to make a program generating exe file?
I want to do something where i can click to a button and exe file will be generated napr. in C:\
Please help me!
-
Apr 12th, 2011, 10:40 AM
#2
Re: How to make a program generating exe file?
Please help me write an application that allows me to create more applications which are then shut down by anti-virus because they look like a virus....
What is the purpose of your application and maybe we can suggest something which will not be blocked by every machine.
-
Apr 12th, 2011, 11:28 AM
#3
Thread Starter
Junior Member
Re: How to make a program generating exe file?
I want to do that, but i don´t want to make virus. Pleas can you paste here a example or some links for tutorials? I want to make more programs for each user, and for that i need exe. Pls can you?
SRY for my english(i know it´s worse than terrible.)
-
Apr 12th, 2011, 11:29 AM
#4
Thread Starter
Junior Member
Re: How to make a program generating exe file?
-
Apr 12th, 2011, 11:48 AM
#5
Re: How to make a program generating exe file?
The point Grimfort was making was that the program won't work on most computers because it will look like it is generating malicious code. If that is the case, it really doesn't matter whether the code is malicious or not. It will be blocked either way, which would mean that your program would fail.
However, I'm not sure that I read your initial post the same way that Grimfort does. A program that creates exe's would be a bit odd, but technically, that's what the VB compiler does. Are you thinking that you could have different versions of some source code so that you get one exe in one case, and a different exe in a different case, depending on some settings you give your program?
A bit more explanation would probably help.
My usual boring signature: Nothing
 
-
Apr 12th, 2011, 01:03 PM
#6
Thread Starter
Junior Member
Re: How to make a program generating exe file?
i want the program what will do this:
user will type a name of his project
user will type a thing what will that program do like(calculator only for plus or minus)
user will click generate and one of more components will be generated.
Than will user make more and more components, until he will have everything what he wants and he will make a one shell program, where he will type the adress of all components and it will generate a last exe for many and many componets, that can be treated from upgrades.
again sry for my english.
-
Apr 12th, 2011, 02:16 PM
#7
Re: How to make a program generating exe file?
Your english is fine, I would have made my comment easier to understand had I known! Now you have better explained what your application will do we can help you to understand what is, and what is not possible.
What you have described is a build-by-choice application, which reminds me of an old application for the commodore64 called game maker toolkit. The problem with creating such an application is that you have to create every possible type of "tool" that your user may possibly have.
If you really want to pursue this, your best way in my opinion is to create a designer application to allow the user to build an XML file that contains all the things they want the application to do. Then, your runner application uses this file to "play" the file. There is no need to create .exe files or anything complex, your designer application could create a file, something simple like this:
<Button1>Calculator</Button1><Link1>www.myaddress.com</Link>
Then your runner applcation knows to design a form and dynamically add a button to launch the calculator and a linklabel to launch a browser with that address.
-
Apr 12th, 2011, 02:55 PM
#8
Re: How to make a program generating exe file?
Your English is certainly better than my....whatever your native tongue is. In fact, you needn't be so apologetic.
I would caution you away from the project, though, because, in my opinion, it is a dangerously seductive trap. For decades, people have been trying to find a way to generate applications. There have been a variety of approaches, and yours is higher level than many. I have recently worked with an excellent example of that type of thing, which was written by a colleague of mine. It really was a brilliant piece of work, yet I would also consider it something of a failure. He made the program so that you could make a bunch of selections and you would generate a pseudo n-tiered application (he felt it was n-tiered, but it depends on your definition of n-tiered). The generator was designed to build business apps, with the intention that you could turn it into a mobile or web app with only a minor change in settings. Unfortunately, he was one guy. Web technology was moving so fast that what he was doing was woefully inadequate by the time he had it written. The Windows App version could have taken every minute of every day to keep that up to speed, and even then it would have limits. To make it work, you could have options A, B, and C, but as soon as that happened, somebody would need option D, and then an option E would be developed that nobody had even thought of.
Worse yet, for the code to work, the applications had to follow a standard pattern (it would have been twice as much work to have two standard patterns). I soon found that there were limitations to the pattern. It wasn't that they couldn't be made to get the job done, they just couldn't be made to get the job done the way people wanted to get the job done. The user experience was confined by the application design, which derived from the pattern that the generator employed. The result was that you got close with the generator, then had to do a whole bunch of adjusting to make it work the way people wanted. That adjusting was made considerably harder by following the template design.
The point to all that is this: At first it appears that there are so many similarities between programs that it makes sense to create some kind of application generator. In practice, those generators are only capable of working for certain types of problems, and only if you accepts some set of limitations on them. I expect that they will always disappoint people.
My usual boring signature: Nothing
 
-
Apr 12th, 2011, 03:01 PM
#9
Re: How to make a program generating exe file?
My main application is in fact a toolkit for automation. The idea is you drag and drop functionality on to flowchart your solution. It works wonders and is easy to use... by other developers. Standard users only get so much out of it before getting frustrated. Then its just pushed and pulled in different directions depending on who is using it that day, a techo wants more regex functionality whereas a standard user wants a automatic file reconition, which is to solve the same problem but from different directions. Makes my job very interesting to say the least .
-
Apr 12th, 2011, 03:04 PM
#10
Re: How to make a program generating exe file?
I think it makes a huge difference if it actually IS your job. For you, it is just more interesting stuff that you get paid for. In the case of the program I was working with, the guy who wrote it did it on his own time, and was not employed specifically to maintain the program. Change requests tended to get queued up with everything else. These days, the everything else utterly dwarfs any other requests.
My usual boring signature: Nothing
 
-
Apr 13th, 2011, 04:13 AM
#11
Thread Starter
Junior Member
Re: How to make a program generating exe file?
Look, i have not understood more than few words from your comment,
but>
i do not care, if it will be blocked on all machines, but i need that.
Can you paste here some codes or links about making that exe files. PLS, PLS , PLS , PLS , PLS,
I realy very need it!!!
-
Apr 13th, 2011, 04:14 AM
#12
Thread Starter
Junior Member
Re: How to make a program generating exe file?
-
Apr 13th, 2011, 04:40 AM
#13
Re: How to make a program generating exe file?
And I need $1000,000,000!!!
-
Apr 13th, 2011, 05:36 AM
#14
Re: How to make a program generating exe file?
Why deny knowledge to a person who is willing to learn 
You are speaking of a compiler or an interpreter from text to machine code, right?
Well then, at first you should know that processor architectures differ from each other and you can't make a universal compiler. You probably want your apps run in your environment and you'll need to intimately know x86-64 Instruction Set which is an extension of the x86 Instruction Set. That's a task all by itself. Read the wikipedia article. If you don't understand it then stop right here and don't read any further.
What you will do next is to create a language parser (mostly composed of expression evaluator).
Right from this point all you will need to do is to translate the user script into the x86-64 instruction set, then add the executable file header.
At this point you will need to decide under which operating system your executable file should run.
If your target is a Windows environment then the header you need to add is described here:
http://en.wikipedia.org/wiki/Portable_Executable (just make sure you provide the correct entry point address).
As you can see - generating an exe file is quite easy and can be done in no time at all.
Last edited by cicatrix; Apr 13th, 2011 at 05:39 AM.
-
Apr 13th, 2011, 06:07 AM
#15
Re: How to make a program generating exe file?
 Originally Posted by Radjesh Klauke
And I need $1000,000,000!!!
I'll just take £1 million.
-
Apr 13th, 2011, 07:06 AM
#16
Re: How to make a program generating exe file?
You can create your components with java, vbscript or javascript. Then it would eliminate the tedious task of making an exe.
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Apr 13th, 2011, 08:22 AM
#17
Thread Starter
Junior Member
Re: How to make a program generating exe file?
I know, but i want and need exe. pls help me.
I know it can be a long and hard, but i need it!
-
Apr 13th, 2011, 08:25 AM
#18
Re: How to make a program generating exe file?
-
Apr 13th, 2011, 08:28 AM
#19
Thread Starter
Junior Member
Re: How to make a program generating exe file?
cicatrix:
please in short.
how can i make it?
i dont want a language, i want a easy generator.
I have realy don't want to make a some languege.
(I hate slovak language[its the fifth hardest languege of world in gramatics!!!!], so i realy don't want to make and learn another xD)
-
Apr 13th, 2011, 08:29 AM
#20
Thread Starter
Junior Member
Re: How to make a program generating exe file?
Radjesh Klauke:
I want it too!!!
But in €...
-
Apr 13th, 2011, 08:31 AM
#21
Thread Starter
Junior Member
Re: How to make a program generating exe file?
Radjesh Klauke:
SRY, my english is Very BAD
-
Apr 13th, 2011, 08:33 AM
#22
Re: How to make a program generating exe file?
If you want to program, you need to learn English.
-
Apr 13th, 2011, 08:34 AM
#23
Thread Starter
Junior Member
Re: How to make a program generating exe file?
like you I can give here a post:
Did you read this:
http://www.hojko.com/textove-vtipy-t46887.html
-
Apr 13th, 2011, 08:35 AM
#24
Thread Starter
Junior Member
Re: How to make a program generating exe file?
AGAIN IN SHORT:
CAN anybody paste here example code or link with tutorial for this?
-
Apr 13th, 2011, 08:42 AM
#25
Re: How to make a program generating exe file?
 Originally Posted by Erwiner
cicatrix:
please in short.
how can i make it?
i dont want a language, i want a easy generator.
I have realy don't want to make a some languege.
(I hate slovak language[its the fifth hardest languege of world in gramatics!!!!], so i realy don't want to make and learn another xD)
In short - you won't be able to do it.
Why? Because it is a task that will be a challenge even to a most experienced and seasoned professional programmer.
Still, if you are still eager to try then, please, clarify:
1. To make an exe = to make a program written in machine codes.
Any program is a list of instructions describing what to do.
If you want your program do something specific then write it in any language with a compiler available and compile it to an executable file.
If you want your program to actually create an executable based on what user inputs then read post #14 and all the links in it, because there are no easy ways of doing that.
P.S. If you speak Slovak then perhaps you might know Russian. If so - then feel free to PM me in Russian.
-
Apr 13th, 2011, 08:51 AM
#26
Thread Starter
Junior Member
Re: How to make a program generating exe file?
have you example?
in code of corse
-
Apr 13th, 2011, 08:59 AM
#27
Re: How to make a program generating exe file?
I need a facepalm smiley. Badly
-
Apr 13th, 2011, 09:14 AM
#28
Thread Starter
Junior Member
Re: How to make a program generating exe file?
Wath is a facepalm?
In slovak its something not very decent in public......
-
Apr 13th, 2011, 09:29 AM
#29
Re: How to make a program generating exe file?
 Originally Posted by Erwiner
AGAIN IN SHORT:
CAN anybody paste here example code or link with tutorial for this?
No. The reason being is that a tutorial OR example code to do that would take up more space than is allowed. It is a task that takes a team a very long time to accomplish. If you do not know where to start it would take you at least a year to get it done. And that is with help.
Know why there is no tutorial to do this? Because anybody who knows how to do this is too smart to try. Why spend many months on something that already exists.
the only other viable alternative would be to make a VB.NET add-in. Then you can make your own exes. If you wish to write your own compiler, you need to learn the Instructionset like cicatrix provided you a link for.
Read that link then pick an instruction and I will explain it further, but you can not be lazy with this task or you are doomed to fail before you start.
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Apr 13th, 2011, 02:00 PM
#30
Thread Starter
Junior Member
Re: How to make a program generating exe file?
Aleluja first one complete post. TNX.
Tags for this Thread
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
|