?
Solved

install a windows file

Posted on 2001-08-27
4
Medium Priority
?
163 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
[X]
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
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 450 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

770 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