mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
199 lines
7.6 KiB
199 lines
7.6 KiB
<html>
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="mmsobshe.css">
|
|
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<object ID="msnSetup" CLASSID="CLSID:34C9990F-CBD7-11D2-AE0E-00C04FAEA83F" style="display:none:width:0px;height:0px" viewastext></object>
|
|
<script language="Javascript">
|
|
var ERR_COMM_NO_ERROR = 0;
|
|
var ERR_COMM_OOBE_COMP_MISSING = 1;
|
|
var ERR_COMM_UNKNOWN = 2; // Unknow error, check input parameters
|
|
var ERR_COMM_NOMODEM = 3; // There is no modem installed
|
|
var ERR_COMM_RAS_TCP_NOTINSTALL = 4;
|
|
var nResult;
|
|
var ApiObj;
|
|
var HKEY_LOCAL_MACHINE = 0x80000002;
|
|
var OOBE_MAIN_REG_KEY = "Software\\Microsoft\\Active Setup\\Installed Components\\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}";
|
|
var Flag = 0;
|
|
var INSTALL_MODEM = 1;
|
|
var INSTALL_OE = 2;
|
|
var MAKE_SPACE = 3;
|
|
var INSTALL_DUNTCP = 4;
|
|
|
|
function CloseWindow(){
|
|
|
|
var L_strCloseWindow_Text ="Click OK to exit MSN Internet Access Setup.";
|
|
if (confirm(L_strCloseWindow_Text)){
|
|
window.external.Finish();
|
|
}
|
|
}
|
|
|
|
function do_LoadWindow(){
|
|
if (Start_TITLE1.offsetHeight > 30){
|
|
var L_strSmallFont_Text = 'For MSN Setup to run correctly, you will need to use Small Fonts. To switch your computer to Small Fonts, click Start, point to Settings, and select Control Panel. Click Display and then click the Settings tab. Click Advanced to open the properties for your monitor. On the General tab, in Font Size, click the down arrow and select Small Fonts. Click OK, and then click OK again.';
|
|
alert(L_strSmallFont_Text);
|
|
window.external.Finish();
|
|
}else{
|
|
mstart.style.visibility = "visible";
|
|
}
|
|
window.parent._Default_LoadMe();
|
|
btnNextText.focus();
|
|
}
|
|
|
|
function do_TrapShiftTab(){
|
|
//purpose: keep the system carrot from going to the msobe.htm
|
|
if (event.keyCode == 9){
|
|
if (event.shiftKey == true){
|
|
event.returnValue = false;
|
|
btnNextText.focus();
|
|
}
|
|
}
|
|
}
|
|
|
|
function MSNGoNext(){
|
|
try
|
|
{
|
|
var bReboot;
|
|
bReboot = 0;
|
|
nResult = window.external.CheckDialReady();
|
|
var L_strReboot_Text = "We need to restart your computer to complete MSN Setup. Click OK to restart now or click Cancel to continue.";
|
|
var fModemReDetected = false;
|
|
if (nResult == ERR_COMM_NOMODEM){
|
|
spanNext.style.display = "none";
|
|
spanCancel.style.display = "none";
|
|
nResult = msnSetup.InvokeModemWizard();
|
|
if (nResult == 0){
|
|
spanNext.style.display = "";
|
|
fModemReDetected = true;
|
|
}
|
|
}
|
|
if (nResult == ERR_COMM_RAS_TCP_NOTINSTALL){
|
|
msnSetup.InstallDialupComponents(bReboot);
|
|
fModemReDetected = true;
|
|
if (confirm(L_strReboot_Text)){
|
|
window.external.PowerDown(1);
|
|
}
|
|
}
|
|
if (nResult == ERR_COMM_NOMODEM + ERR_COMM_RAS_TCP_NOTINSTALL){
|
|
msnSetup.InvokeModemWizard();
|
|
msnSetup.InstallDialupComponents(bReboot);
|
|
fModemReDetected = true;
|
|
if (confirm(L_strReboot_Text)){
|
|
window.external.PowerDown(1);
|
|
}
|
|
}
|
|
|
|
if (fModemReDetected)
|
|
window.parent.ReCheckModem();
|
|
|
|
window.parent.GoNext();
|
|
}
|
|
catch (e)
|
|
{
|
|
var L_strUnexpected_Text = "An unexpected error has occurred. Please call MSN Technical Support.";
|
|
alert(L_strUnexpected_Text);
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body TABINDEX="-1" background="../images/msnwtrmk.gif" onload="do_LoadWindow();" style="visibility:hidden;" id="mstart">
|
|
|
|
<img id="imgUpperLeftCorner" style="position:absolute;top:0px;left:0px;visibility:hidden" SRC="../images/MSNlogo.gif" width="80" height="43">
|
|
<script LANGUAGE="javascript">
|
|
<!--
|
|
function setImagePosition(oImg, szHorizontal, szVertical) {
|
|
// Position oImg image to absolute coordinates based on szVertical(upper, lower) and szHorizontal(left, right)
|
|
var x;
|
|
var y;
|
|
//alert('body:\nW: ' + document.body.offsetWidth + '\nH: ' + document.body.offsetHeight);
|
|
x = szHorizontal.toLowerCase() == 'left' ? 0 : document.body.clientWidth - oImg.width - 15;
|
|
y = szVertical.toLowerCase() == 'upper' ? 0 : document.body.clientHeight - oImg.height - 16;
|
|
oImg.style.left = x;
|
|
oImg.style.top = y;
|
|
//alert('X: ' + x + '\nY: ' + y);
|
|
oImg.style.visibility = 'visible';
|
|
}
|
|
|
|
setImagePosition( imgUpperLeftCorner, 'left', 'upper' );
|
|
//-->
|
|
</script>
|
|
<span TABINDEX="-1" class="pageTitle">
|
|
<div TABINDEX="-1" id="Start_TITLE1">Welcome to MSN Internet Access!</div>
|
|
</span>
|
|
<script language=javascript>
|
|
if (Start_TITLE1.offsetHeight > 30){
|
|
var L_strSmallFont_Text = 'For MSN Setup to run correctly, you will need to use Small Fonts. To switch your computer to Small Fonts, click Start, point to Settings, and select Control Panel. Click Display and then click the Settings tab. Click Advanced to open the properties for your monitor. On the General tab, in Font Size, click the down arrow and select Small Fonts. Click OK, and then click OK again.';
|
|
alert(L_strSmallFont_Text);
|
|
window.external.Finish();
|
|
}
|
|
</script>
|
|
<span TABINDEX="-1" class="pageSubTitle">
|
|
<div ID="Start_Title"><br>Get fast, reliable Internet Access and e-mail from Microsoft</div>
|
|
</span>
|
|
<span TABINDEX="-1" CLASS="contents">
|
|
<div TABINDEX="-1" ID="Start_INFO1"><br>We'll now guide you through the setup process.</div>
|
|
<div TABINDEX="-1" ID="Start_INFO2">Note: This process is for both new and existing MSN members.</div>
|
|
<br>
|
|
<script language=Javascript>
|
|
if (null == ApiObj)
|
|
{
|
|
ApiObj = new Object;
|
|
ApiObj = window.external.API;
|
|
}
|
|
nResult = 0;
|
|
nResult = window.external.CheckDialReady();
|
|
if (nResult == ERR_COMM_NOMODEM){
|
|
nResult += ERR_COMM_NOMODEM;
|
|
var L_strModemInstall_Text = "We will need to install a modem before continuing.";
|
|
document.write("<div><b>" + L_strModemInstall_Text + "</b></div>");
|
|
}
|
|
if (nResult == ERR_COMM_RAS_TCP_NOTINSTALL){
|
|
nResult += ERR_COMM_RAS_TCP_NOTINSTALL;
|
|
var L_strDUNInstall_Text = "We will need to install a modem before continuing.";
|
|
document.write("<div><b>" + L_strDUNInstall_Text + "</b></div>");
|
|
}
|
|
document.write("<br>");
|
|
|
|
/*nResult = msnSetup.FreeDiskSpace;
|
|
if (nResult < 1000000){
|
|
Flag += MAKE_SPACE;
|
|
}
|
|
document.write("You have "+nResult+" megs free on your drive.");*/
|
|
//This is to check if OE is installed.. need to find out about the reg key to check.
|
|
try
|
|
{
|
|
nResult = ApiObj.get_RegValue(HKEY_LOCAL_MACHINE, OOBE_MAIN_REG_KEY, "IsInstalled");
|
|
}
|
|
catch (e)
|
|
{
|
|
nResult = 0;
|
|
}
|
|
|
|
if (nResult != 1){
|
|
var L_strOutlook_Text = "We will need to install Outlook Express 5 before continuing.";
|
|
document.write("<br>" + L_strOutlook_Text);
|
|
}
|
|
|
|
//ApiObj.get_UserDefaultLCID()
|
|
</script>
|
|
<div TABINDEX="-1" ID="Start_INFO3">Please click <b>Next</b> to continue.</div>
|
|
<br>
|
|
</span>
|
|
|
|
<span TABINDEX="-1" id="navbar" CLASS="navbar">
|
|
<HR NOSHADE CLASS="blackBar">
|
|
<SPAN TABINDEX=-1 Id=spanCancel onkeydown="do_TrapShiftTab();" onclick="CloseWindow();">
|
|
<IMG Id=btnCancel class=cancelButton>
|
|
<LABEL TABINDEX=1 ACCESSKEY="C" for="btnCancelText" Id=btnCancelText class=cancelButtonText>
|
|
<ID id="Tapi_CANCEL"><U>C</U>ancel</ID>
|
|
</LABEL>
|
|
</SPAN>
|
|
<span Id="spanNext" onclick="MSNGoNext();">
|
|
<img Id="btnNext" class="nextButton">
|
|
<label TABINDEX=2 ACCESSKEY="N" for="btnNextText" Id="btnNextText" class="nextButtonText">
|
|
<id id="LOCAL_NEXT"><u>N</u>ext</id>
|
|
</label>
|
|
</span>
|
|
</span>
|
|
</body>
|
|
</html>
|