How to build setup installer for visual c++ application

Here you can talk about C++ And C# And Other languages programming.

How to build setup installer for visual c++ application

Postby method » Mon Apr 10, 2006 2:27 pm


Hi all. i have a few visual c++ program and i wonder how i can make an setup installer for it . My purpuse is to send it to some one who has no knowlege of compiling and using visual stuidio 6 and i want him to run the install and be able to use the applicaion with out needs for him to install compiler and compile the program. Just like commertional programs that we buy. I be happy if an expert tell me what tools i need and how i can achive it.

I am using visual studio version 6 . could u tell me how i can compile the source files into an .exe file? I looked at file menue but i did not see any option to make .exe for vc++ project!!Thanks
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby Dody » Wed Apr 12, 2006 4:58 pm

to build your code press F7
you excute the program after compiling press Ctrl + F5
User avatar
Dody
imFiles Senior
imFiles Senior
 
Posts: 177
Joined: Tue Jan 04, 2005 2:44 pm

Postby method » Wed Apr 12, 2006 5:01 pm

Dody wrote:to build your code press F7
you excute the program after compiling press Ctrl + F5


Dody thank u for u reply. where the .exe file will be stored? which folder? furthermore . Is the code protable like java programs or do i need to extra files with it to work when it is used in diffrent mechines?Thanks
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby Dody » Wed Apr 12, 2006 5:19 pm

method wrote:
Dody wrote:to build your code press F7
you excute the program after compiling press Ctrl + F5


Dody thank u for u reply. where the .exe file will be stored? which folder?


Go to the vc++ folder and to My Projects -> the name of your project -> debug, then you will find a .exe file named as your project


furthermore . Is the code protable like java programs or do i need to extra files with it to work when it is used in diffrent mechines?Thanks


it is not like java, because java will work under any other OS, but c++ will work for sure with the same platform you compiled it with, so if you compile a program under windows platform, then you don't need any extra files and it will be run very smoothly with windows platforms


note: if you compile withthe debug mode, then it will only work with people who have installed the vc++, otherwise you need to compile it with the release mode
User avatar
Dody
imFiles Senior
imFiles Senior
 
Posts: 177
Joined: Tue Jan 04, 2005 2:44 pm

Postby method » Wed Apr 12, 2006 5:25 pm

Dody many many thanks for u nice explantion. Could u tell me how i know i am not in debug modeu when creating my .exe file using visual studio 6.Thanks
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby Dody » Thu Apr 13, 2006 3:59 pm

it depends on what are you trying to use, are you using MFC or a normal Win32 consol application ?
User avatar
Dody
imFiles Senior
imFiles Senior
 
Posts: 177
Joined: Tue Jan 04, 2005 2:44 pm

Postby method » Thu Apr 13, 2006 5:34 pm

Dody wrote:it depends on what are you trying to use, are you using MFC or a normal Win32 consol application ?


At this moment Win32 consol applications.
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Postby Dody » Sat Apr 15, 2006 6:14 pm

if it is Win32 consol applications then you don't have to worry about the debug or release modes :)
User avatar
Dody
imFiles Senior
imFiles Senior
 
Posts: 177
Joined: Tue Jan 04, 2005 2:44 pm


Return to C++, C# And Others Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests