how to write a setup.exe

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!
youngestAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

WBerthinCommented:
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
GregLCommented:
If you have Visual C++ 4.0 or higher, InstallShield comes with the CD.  It's MUCH easier to use that!
0
youngestAuthor Commented:
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
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

WBerthinCommented:
Are you asking how to write a program called "setup" that
can copy a file from drive a: to drive c:?
0
youngestAuthor Commented:
Yes,I think you can help me.^-^
0
WBerthinCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
youngestAuthor Commented:
Assume the size of my file is 1.2M,I expect it can be run under
both dos and windws.how to do?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.