473,394 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

automatically downloading and installing an exe file

22
I need to automate the process of downloading and installing an exe file e.g. abc.exe from say 'http://10.34.45.21:8080/cruisecontrol/artifacts/xxx_trunk_nightly_build/xxx/test/'

I mean now i have to manually goto ''http://10.34.45.21:8080/cruisecontrol' then click on each folder before i finally click on the abc.exe file. Then it downloads the exe on my machine. Then i have to double click on the exe to install it. I want to automate this whole process such that when i run the script it will automatically download the exe file and install it. Is it possible to do this using php?
Apr 15 '10 #1
5 2604
chathura86
227 100+
as far as i know i do not think that it is possible because
allowing such will cause a serious security risk.

Regards
Apr 15 '10 #2
dbphydb
22
hi,

This wont be a securilty issue as the script will be given only to the team responsible for using this
Apr 15 '10 #3
MrMancunian
569 Expert 512MB
It can't be done by PHP. Try a script/application that runs at the client.

Steven
Apr 15 '10 #4
Markus
6,050 Expert 4TB
I believe the OP is speaking as if he is the client, and if that is the case, PHP could surely do this. Download the file with something like file_get_contents()[1] and then run the executable with something like exec()[2].

[1] http://uk2.php.net/file_get_contents
[2] http://uk2.php.net/exec
Apr 15 '10 #5
dbphydb
22
@Markus
i am basically from QA. So what we do each morning is open a web browser with the address http://11.12.13.27:8080/cruisecontrol. Then we click on the build with last nights date. Then we click on a folder say client. Then in that folder we click on an exe file say game.exe. Then we get a save dialog box to save the exe to our local machine (windows xp..not a home pc). Then we goto the place where we have downloaded that exe file, double click on it to start the installation and then start testing the application. This has to be done each day.

We want to automate this process such that when i run a script or smthing like that, it will automatically download and install the exe file.

Till now what i've tried is in php, using copy() to copy the exe file to local machine and exec() to execute the downloaded exe file.
Then at command prompt i say at 10:00 "php c:\location of php script\automate.php"
So at 10am the php script is run

I've tried this using a static location say 'http://winzip.com/winzip1.2.exe" and it worked fine. I will only have to generate the file path now.Also not sure if it will let me using copy() on cruisecontrol. Is there any easier way of doing this???
Apr 16 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: clintonG | last post by:
After the last six days trying to download VS2005 Professional it seems there may be a problem with my instance of the File Transfer Manager (FTM) or somewhere in the network in between. I can't...
3
by: MJ | last post by:
Automatically download and save pdf files from a website. Is there a way to do this? I would like to automate a daily procedure for downloading and saving a couple of dozen pdf from several...
0
by: Robert Lummert | last post by:
Hi there, I've got a severe problem with pear when trying to install pdflib. First pear demanded a program named phpize. After searching a while I found that phpize is part of php-devel while...
4
by: DonLi2006 | last post by:
Probably this question has been asked many times, however, I have not found a satisfactory answer, hence, post it here. We in the industry know that there's nothing to fear for downloading and...
8
monirul arfin
by: monirul arfin | last post by:
Hi all, I want to prevent downloading & installing software in my computer by others. So no one can download or Install software in my computer. Is there any optoin. Please Suggest me. And it is...
0
by: Cyprian Kumwaka | last post by:
I am a beginner in Python. Please tell me how to go about in downloading and installing the module gasp.I am using Python 2.5.2.
0
by: Rob Weir | last post by:
On 13 Aug 2008, Cyprian Kumwaka wrote: What OS are you using? Do you have PyGame installed already? -- -rob
2
by: brianrpsgt1 | last post by:
I have attempted downloading and installing several different version of the win32api from Source Forge, however, each time I try to install I get the following error message: "Only part of a...
2
by: Peter | last post by:
Is there a way to automatically update a Windows .NET service, kind of like Click-Once or put a file in the directory and the service would restart it's self and replace the executables or at least...
9
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
I want to download pfx from my asp.net server, add the pfx to client's X509Store as a trusted publisher, Is it possible? my func in aspx is like this: void InstallCertification() { try{...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.