Solved

Web CD for software distribution

Posted on 2004-04-04
5
155 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Html test in IIS 4 23
html Uncheck Checkbox 2 25
Javascript the "if condition with Or" 8 29
Fix Form size HTML 16 15
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.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

827 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