Solved

Web CD for software distribution

Posted on 2004-04-04
5
163 Views
Last Modified: 2010-04-09
I want to create a web-based CD with a collection of freeware.  However, installing
from any HTML based interface is always a problem because of the "install or save to
disk" option or with gecko browsers, "save to disk" only.  This breaks the users
state somewhat.

Is it possible to get a javascript link/button to launch an executable directly from
a webpage?

I ask because I install stuff from the web seamlessly all the time, whether it's a
required component install that allows that web page to be fully utilized (the
security warning with the "always trust this company") or Windows Update type
install's that downloads the application to a temp file and then launches it.  

Even the Netscape/Mozilla browsers have a web installer called XPI, but it's
meant only for configuring the browser with skins and what not.

So, what options are their that could operate from the client side that would make
any browser a adequate interface for browsing and installing utilities?
0
Comment
Question by:Marketing_Insists
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:brgivens
ID: 10755366
You can't launch an executable from Javascript.

The components which display the "always trust this company" security warnings are called ActiveX controls.  You can create an ActiveX control with Visual Basic or C++ and other languages.
0
 

Author Comment

by:Marketing_Insists
ID: 10768045
Ah yes, good ol' active X.  So can a HTML form button launch  such an ActiveX control?
0
 
LVL 7

Accepted Solution

by:
brgivens earned 250 total points
ID: 10768289
sure, just code the onclick event of the button

<script>
function launchActiveX() {
  var o = new ActiveXObject("myActiveX");
  ...
}
</script>

<input type=button onclick="launchActiveX();">
0
 

Author Comment

by:Marketing_Insists
ID: 10792495
thanks
0
 
LVL 7

Expert Comment

by:brgivens
ID: 10792512
You're welcome.  Thanks for the points! :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question