SpiderBear6
Programmer
Hi all,
I am trying to launch an iesetup from a html page but I need to be able to close the ie window before the install gets started.
This is what I have so far...
<html>
<BODY>
<SCRIPT Language="JavaScript">
function LaunchIESetup()
{
var oShell = new ActiveXObject("Shell.Application"
;
var commandtoRun = "ie6setup.exe";
var commandParms;
oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1"
;
window.opener=self;
window.close();
}
</SCRIPT>
<form>
<input type=button value="Close Window" onClick="LaunchIESetup();">
</form>
</body>
</html>
My problem is I need to be able to give the ShellExecute a relative path to the ie6setup.exe. BTW: this htm file will be on a CD not a web site.
Any ideas?
I am trying to launch an iesetup from a html page but I need to be able to close the ie window before the install gets started.
This is what I have so far...
<html>
<BODY>
<SCRIPT Language="JavaScript">
function LaunchIESetup()
{
var oShell = new ActiveXObject("Shell.Application"
var commandtoRun = "ie6setup.exe";
var commandParms;
oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1"
window.opener=self;
window.close();
}
</SCRIPT>
<form>
<input type=button value="Close Window" onClick="LaunchIESetup();">
</form>
</body>
</html>
My problem is I need to be able to give the ShellExecute a relative path to the ie6setup.exe. BTW: this htm file will be on a CD not a web site.
Any ideas?