CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@TheV • 20 Nov, 2010 • 1 like
I always think about how the setup files are made. As I wrote program in C,C++ and JAVA but I don't know how to make icon such that on double click my program runs.
I make program to work as a calculator, but every time I want to run the program, I have to run the source code....Plz anyone tell me about this topic..!!
@Morningdot Hablu • 20 Nov, 2010 hey buddy by using c and c++ you can make a .exe file.Java is different then c and c++.You can make jar file using java.
I don't have any read about (Graphical user interface)GUI in c and c++.But i think we can use any picture to set an icon on that .exe file by doing some programs(It's just my thinking i am not 100%).
@optimystix • 20 Nov, 2010 if you have coded your application using some IDE then use the Publish option to finalize and create an executable out of it. Else you may find many third party applications to make executables out of codes. google them out, there are many free ones available
@TheV • 21 Nov, 2010 Thank you...>~!😁

But please tell me the procedure...!!
I am using Borland C++.
@Deepika Bansal • 21 Nov, 2010 Thev when you compile c++ source code, you get various files like .bak and etc. Besides these you also get a .exe file..........That is your self executable code. You just have to double click it and your programs runs automatically.
@Leo • 21 Nov, 2010 Hey buddy search in documents because when you use any IDE, the IDE itself has an option to create installable archive.
@TheV • 22 Nov, 2010 @Deepika.. yes I got the file....!!
Thank you 😁
@Deepika Bansal • 23 Nov, 2010
TheV
@Deepika.. yes I got the file....!!
Thank you 😁
My Pleasure...
@fabrigeas • 29 Jan, 2012
TheV
I always think about how the setup files are made. As I wrote program in C,C++ and JAVA but I don't know how to make icon such that on double click my program runs.
I make program to work as a calculator, but every time I want to run the program, I have to run the source code....Plz anyone tell me about this topic..!!







man I have the same problem with u and have been reading about it.
pls if u find something can u share with me. thx.
@Sahithi Pallavi • 29 Jan, 2012 @fabrigeas : Go through all the above posts.
@eternalthinker • 31 Jan, 2012 In C++ console the exe file is in the same folder as program source code (as said above by Deepika!)
And there might be libraries which enable you to specify the icon as well.
Perhaps you might be able to change the icon using a hex editor, but that is a hack 😉

Source code of EVERY programming language can be eventually packed into an exe. The process differs though.
Python provides some extra libraries which compile an exe for you.
For Java, if you google, you'll find a bunch of third party applications which enable you to create an exe.

Anyhow, the most straightforward exe creation is probably in the case of console C/C++ programs 😁
@Abhishek Swain • 02 Feb, 2012
TheV
I always think about how the setup files are made. As I wrote program in C,C++ and JAVA but I don't know how to make icon such that on double click my program runs.
I make program to work as a calculator, but every time I want to run the program, I have to run the source code....Plz anyone tell me about this topic..!!
The best way to deploy your project is to create a setup file using the software InstallShield.
Download trial version. It takes a few hours to learn using the product. However, after learning, you will be able to create your setup file very easily.😀
@PraveenKumar Purushothaman • 03 Feb, 2012 • 2 likes Guys, why don't you use NSIS for creating an installer? See the features of it...

NSIS can create Windows installers that are capable of installing, uninstalling, setting system settings, extracting files, etc. Because NSIS is based on script files, you can create both simple and advanced installers.

NSIS is created to be small, fast and efficient. While other installers often add hundreds of kilobytes or several megabytes to your installer data, a full-featured NSIS installer has an overhead of only 34 KB.

You can create a single installer that is compatible with Windows 95, Windows 98, Windows ME, Windows NT, Windows 2000, Windows XP, Windows Server 2003, Windows Vista, Windows Sever 2008 and Windows 7.

You can choose between three different integrated compression methods (ZLib, BZip2, LZMA). The new LZMA compression gives better results than any other common compression method. You don't have to use large self-extracting archive modules or other applications. The compression support is included in the 34 KB overhead.

Unlike other systems that can only generate installers based on a list of files and registry keys, NSIS has a powerful scripting language. This script language is designed for installers and has commands that help you to perform many installation tasks. You can easily add custom logic and handle different upgrades, version checks and more.

For standard installers or as a starting point for more complex ones, you can use one of the available script generation tools.

More features: https://nsis.sourceforge.net/Features
@eternalthinker • 03 Feb, 2012 @Abhishek and @Praveen

Guys, although the suggested installer creation programs are really good choices, I think the priority here is to create an EXE in the first place!

If we can't pack source codes into a .exe file, creating an installer is out of question, right?
(I mean in Windows)
@PraveenKumar Purushothaman • 03 Feb, 2012 • 1 like
eternalthinker
@Abhishek and @Praveen

Guys, although the suggested installer creation programs are really good choices, I think the priority here is to create an EXE in the first place!

If we can't pack source codes into a .exe file, creating an installer is out of question, right?
(I mean in Windows)
In that case, which language are you writing the code? Batch files??? In that case, AutoIT is the best!

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!

AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.

Features:
  • Easy to learn BASIC-like syntax
  • Simulate keystrokes and mouse movements
  • Manipulate windows and processes
  • Interact with all standard windows controls
  • Scripts can be compiled into standalone executables
  • Create Graphical User Interfaces (GUIs)
  • COM support
  • Regular expressions
  • Directly call external DLL and Windows API functions
  • Scriptable RunAs functions
  • Detailed helpfile and large community-based support forums
  • Compatible with Windows 2000 / XP / 2003 / Vista / 2008 / Windows 7 / 2008 R2
  • Unicode and x64 support
  • Digitally signed for peace of mind
  • Works with Windows Vista’s User Account Control (UAC)
AutoIt has been designed to be as small as possible and stand-alone with no external .dll files or registry entries required making it safe to use on Servers. Scripts can be compiled into stand-alone executables with Aut2Exe.

Also supplied is a combined COM and DLL version of AutoIt called AutoItX that allows you to add the unique features of AutoIt to your own favourite scripting or programming languages!
7k views

Related Posts

@Ambarish Ganesh · Dec 12, 2013

Microsoft is reportedly planning to revive the 'Start' menu in its upcoming Windows 8.2, a news that shall be celebrated by desktop users all over the world. Windows 8 had...
7.7k views

@Kaustubh Katdare · Apr 11, 2014

Tata Motors has announced three new Tata Aria 2014 facelift models with price starting at Rs. 9.95L (ex-showroom, Delhi). Tata Motors continues to be India's largest automobile manufacturer and has...
6.5k views

@rengaraj · Dec 4, 2009

Sir / madam, My question is What is the minimum value of char type. Select the one correct answer. a. 0 b. -215 c. -28 d. -215-1 Advance Thanks, R.Rengaraj...
5.9k views

@Ankita Katdare · Dec 30, 2010

Debate Topics Collection (All these topics have been discussed on CE over the span of last 5 years) Have a look: Is BE+MBA a better saleable combination today? | CrazyEngineers...
59.9k views

@Prajakta Kelapure · Oct 17, 2016

The main difference in half wave and full wave rectifier is that the complete cycle is utilized in full wave rectifier. Alternate half cycle is inverted and thus a unidirectional...
13k views