Solved

install a windows file

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

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