User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 391,946 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,885 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser:
Views: 2882 | Replies: 2
Reply
Join Date: Jul 2005
Posts: 18
Reputation: sbedford is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
sbedford sbedford is offline Offline
Newbie Poster

Creating a delphi program to autoinstall other programs?

  #1  
Jul 20th, 2005
Hi

I am trying to create a delphi program to autoinstall other multiple utilities such as adobe reader, winamp etc. I am firstly wondering how to execute an external exe file. and also, is there a way to pass mouse clicks through delphi to this external program?

Thanks

Sean Bedford
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 20
Reputation: satrix36 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
satrix36 satrix36 is offline Offline
Newbie Poster

Re: Creating a delphi program to autoinstall other programs?

  #2  
Aug 16th, 2005
Hi,
I have an answer to 'how to execute an external exe file'.

Under 'implementation' and before your first procedure type in 'uses ShellAPI;'

After typing that in, add the following code to one of your procedures:

ShellExecute(Handle, 'open', 'type in the directory of your file e.g. c:\test.txt', nil, nil, SW_SHOWNORMAL);

Hope that helps
Reply With Quote  
Join Date: Jul 2005
Posts: 18
Reputation: sbedford is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
sbedford sbedford is offline Offline
Newbie Poster

Re: Creating a delphi program to autoinstall other programs?

  #3  
Aug 17th, 2005
Thanks, that did the job!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Pascal and Delphi Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Pascal and Delphi Forum

All times are GMT -4. The time now is 8:59 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC