Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need urgent help  RSS feed

 
feroz muhamed
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the site providing some softwares.On clicking the link of each software, the software should be installed on clients machine (not downloading the setup pgm).pls give source code for that if any.
thanks in advance
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37230
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Feroz,
You can't do that. The most a browser can do is download something. For security reasons, you would not want it to install automatically. The user should be aware of what they are doing.
 
feroz muhamed
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Jeanne,
i don't want to install it without the aware of user.
i hve seen in many sites asking " do u want to save it to disk or install from current location?" the second one is i need.any solution
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37230
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Feroz,
I misinterpreted what you were trying to do. When you set the content type for your download (to .exe, I presume), you need to set the content disposition to attachment. The behavior you are describing is the default.
You cannot force the user to click the second one, but he/she will definitely get the prompt.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!