?
Solved

install a windows file

Posted on 2001-08-27
4
Medium Priority
?
170 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

749 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