Click here to Skip to main content
15,904,156 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

So I've been browsing on Google quite alot now and I can't seem to find any articles on how to create a proper autorun application. With this I mean an application that is not directly depending on any framework (.NET for example) and can run on pretty much any Windows system.

With this I want to create a very small application where a User gets the possibility to choose between Installing the Application or Running a project inside the application. (which is also stored on the CD).

So to set out my question more specific:

Does anybody know any articles, tips or anything else that might help me out about creating your own AutoRun applications.

PS: So not the default autorun.inf a real (.exe) application!
Posted
Updated 3-Jun-10 6:31am
v4
Comments
Henry Minute 3-Jun-10 8:12am    
If they are part of the problem, don't include them. The tags are there to tell people what expertise might be required to answer the question. Anyone with only C# experience, seeing that tag would waste their time only to find that you do not require their assistance. That's my point.

If you do not want it to be dependant on any framework, why did you include .NET and C# in the tags?

What you need to do is write a program that can be compiled to a native Windows executable. So if you search for compilers for native windows executables you should get quite a list.

Select the language that you either already know or fancy learning from that list and do further searches for tutorials on the one you have chosen.
 
Share this answer
 
Comments
Jordy "Kaiwa" Ruiter 3-Jun-10 7:46am    
Well because those tags are part of my problem. .NET and C# are not suitable for AutoRun Applications, thus my point.
You can use Visual C++ to create a native application; then to make the executable independant from any runtime, use the project properties to set the following:


  • link statically to MFC (if you are using it)
  • use the static version of the C/C++ runtime, by setting up the compiler switch /MT (instead of /MTd which is the default)
 
Share this answer
 
Comments
Jordy "Kaiwa" Ruiter 3-Jun-10 8:49am    
Thank you so much, the last one fixed my issues! I tried this before but it would never run from CD :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900