Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

install a windows file

Posted on 2001-08-27
4
158 Views
Last Modified: 2012-05-04
I am producing a program that needs certain files from Windows to be installed.  I have worked out how to check if the file is on the hdd and in the right place but what i need to do is have windows install a file from the CD if i find it missing.

anyone know how to get this done?
0
Comment
Question by:mantra246
4 Comments
 
LVL 1

Expert Comment

by:urosv
ID: 6431005
You need program like installShield... If you have Delphi CD you can find InstallShield Delphi edition on that CD. The installer will install all necessary files to your destination computer.
0
 

Author Comment

by:mantra246
ID: 6431164
Thanks Urosy, but i need to be able to install a file from the Window CD once my program has been installed and checks to see if the needed file is there.

example:  Imagine i wanted to ensure the user had notepad.exe installed before i let my program open a txt file.  If the program found that it did not exist on the system then it would install it from the Window CD.  Same if it found a DLL file missing from the Windows folder, the program would re-install it from the Windows CD.

I am sure there must be a call somewhere (or small peice of code) to get windows to do it - i just can't figure out how.

Any ideas on how to do it?
0
 
LVL 2

Accepted Solution

by:
RickHalle earned 150 total points
ID: 6431455
Your best bet is to look at the Windows Installer SDK. It has information regarding installations. In particular look for "Install on demand".

http://msdn.microsoft.com/downloads/default.asp?URL=/code/sample.asp?url=/MSDN-FILES/027/001/457/msdncompositedoc.xml

Rick Halle
0
 
LVL 5

Expert Comment

by:Gwena
ID: 6432847
listening :-)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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