Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi this is my code to download the exe file from the given location using menubar.


HTML
<li><a href="CV setup\cv8_b2_1\Enterprise Srv\CV80SetupEnt.exe">Enterprise Srv</a></li>

Now i want that after downloading the .exe it start running the exe file.
Posted
Updated 30-Oct-13 0:01am
v3
Comments
Richard MacCutchan 30-Oct-13 6:01am    
It won't happen unless the user allows it.
bbirajdar 30-Oct-13 6:32am    
Hmmmm.. Do you want to download virus/malware on users system ???

For installing programs admin rights are required in windows
 
Share this answer
 
Hi Ahmad,

Yes, That could be possible, only the user machine [i.e. Browser] level security allow you to install the file, few of the browser settings will block the [.exe] files.

When the user download both [.exe File + Autorun.inf] files, where the installation initiation will be taken care by autorun.inf file.

Note: Most of the Virus effects are intiated by autorun.inf, most of the antivirus & Firewall protect these files to execute.

When few system has low security then autorun.inf will take care & other machine, it will ask for a option of run or save thef files, so user can decide.

Thanks!
 
Share this answer
 
Comments
Rayan Khan 31-Oct-13 5:23am    
Hi Bhuvanesh what extra code i have to add to make it work....
[no name] 31-Oct-13 6:32am    
If you want to create a autorun.inf file.create a file name "Autorun.inf"

add the following code,

[autorun]
open=folderA\folderA1\myapplication.exe

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900