Solved

install a windows file

Posted on 2001-08-27
4
153 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

13 Experts available now in Live!

Get 1:1 Help Now