Solved

how to write a setup.exe

Posted on 1997-12-22
7
679 Views
Last Modified: 2013-11-14
Dear sir:
  I have write a software,I want to write a setup.exe
to install it,Can you tell me what should do?
Thank you!
  Merry Christmas!
0
Comment
Question by:youngest
  • 3
  • 3
7 Comments
 
LVL 1

Expert Comment

by:WBerthin
ID: 1176943
You setup program should:
1. Determine the user's hardware and software configuration
   and available disk space.
2. Copy your executable file and any data files needed, to
   appropriate directories on the hard disk.
3. Set up the appropriate execution environment by modifying
   the System Registy, Win.ini, Config.sys, Autoexec.bat etc.
   as necessary.

Do not assume that the user will always be installing from
the a: drive to the c: drive.

Without more specifics on what you need to install, I
cannot provide a more specific answer.
0
 
LVL 1

Expert Comment

by:GregL
ID: 1176944
If you have Visual C++ 4.0 or higher, InstallShield comes with the CD.  It's MUCH easier to use that!
0
 

Author Comment

by:youngest
ID: 1176945
Dear Sir:
   Thank you for your answer,what I need is a typical installment
program.I assume drive is a: to c:hardware is usual.

     
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:WBerthin
ID: 1176946
Are you asking how to write a program called "setup" that
can copy a file from drive a: to drive c:?
0
 

Author Comment

by:youngest
ID: 1176947
Yes,I think you can help me.^-^
0
 
LVL 1

Accepted Solution

by:
WBerthin earned 0 total points
ID: 1176948
The easiist way to write a "program" to copy a file is to use
a simple "batch" file.

Assume the program you wish to install is called "program.exe"
Write the following text (using notepad for example):
copy a:\program.exe c:\*.*
Then save this in a file named setup.bat.
When you run setup.bat it will copy program.exe from
drive a: to drive c:

If a setup.bat is no good and you need a setup.exe;
if you are working in Windows 95 use the function
BOOL CopyFile(LPTSTR lpszExistingFile,
              LPTSTR lpszNewFile,
              BOOL fFailIfExists);
If you are working in Windows 3.1 or DOS the procedure
for an setup.exe to copy a file is a little more
complicated. Let me know the size of the file you
need to copy and the system you will be working in
and I will see if I can help you with that.
0
 

Author Comment

by:youngest
ID: 1176949
Assume the size of my file is 1.2M,I expect it can be run under
both dos and windws.how to do?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now