Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello All,

I want code to download a software on page load in aspx web page,i have problem when i wrtite response.redirect("abc.exe") then my software start installed on page load but not show my html page
Posted
Updated 6-Jun-13 17:53pm
v2

1 solution

Providing links to exe files is always a difficult thing to pull off. Lots of browsers will block the download of exe. As will anti virus and organisation group policy.

MS has provided a deployment framework for installing .Net applications. The framework is called ClickOnce.

You can either publish the exe you want installed as a ClickOnce application or create a wrapper which installs the exe if you don't have access to the source.

ClickOnce Deployment [^]

Also doing a response redirect to an exe file is always a bad idea. Otherwise you could quite intrusively try and force software installation to all of your users.

Browsers are less inclined to block a download if the file is downloaded directly from a user action such as clicking a hyperlink for the exe. Doing a response redirect to an exe is a poor practice.
 
Share this answer
 
v2

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