Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute installer using ActiveX Control

Status
Not open for further replies.

goncode

Programmer
May 18, 2007
2
US
Hello everyone:

I have created an installer for my app(setup.exe), now I want that installer to run from within a browser so the user doesn't have to download anything. The setup.exe will be store in the server but executed in the client. Now, how can I do that? I tried doing this:

<html>
<head>
<script type="text/javascript">
function runApp(which) {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run (which,1,true);
}
</script>
</head>
<body>
<!-- Two ways to create a link to run the app. -->
<font onClick="runApp('http:localhost:8080/ie/Setup.exe');" style="cursor: hand;"><u>Execute Installer</u></font>
<br>

</body>
</html>


But I get this error: automation server can't create object

Any ideas?

Thanks.
 
Do you really want to restrict users of your installer to Windows boxes running IE?

If not, then personally, I'd simply offer a link to the .EXE file and get users to click it.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
The thing is that, what I'm trying to install it's a pluggin so they can run my app in IE. My app is a xul application that requires a pluggin to run in IE, and that's what I'm trying to accomplish, so the only users that will need the .exe are IE users.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top