Solved

Web CD for software distribution

Posted on 2004-04-04
5
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: 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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

707 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