home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 May / PCpro_2006_05.ISO / files / free_security / msshared / Shared_Computer_Toolkit_ENU.msi / FileDiskProtection < prev    next >
Encoding:
Text File  |  2005-09-02  |  14.7 KB  |  246 lines

  1. <html>
  2. <head>
  3. <META http-equiv="Content-Type" content="text/html; charset=utf-8" >
  4.     <!--
  5.     ' ***
  6.     ' *** ------------------------------------------------------------------------------
  7.     ' *** Filename:        DiskProtect.hta
  8.     ' *** ------------------------------------------------------------------------------
  9.     ' *** Description:    Disk Protection Tool
  10.     ' *** ------------------------------------------------------------------------------
  11.     ' *** Version:        1.0
  12.     ' *** Notes:        
  13.     ' *** ------------------------------------------------------------------------------
  14.     ' *** Copyright (C) Microsoft Corporation 2005, All Rights Reserved
  15.     ' *** ------------------------------------------------------------------------------
  16.     ' ***
  17.     -->
  18.     <title> </title>
  19.  
  20.     <script id="Common" language="VBScript" src="include/Common.vbs"></script>
  21.     <script id="libHTA" language="vbscript"    src="include/libHTA.vbs"></script>
  22.     <script id="clsLogging" language="VBScript" src="include/clsLogging.vbs"></script>
  23.     <script id="clsDiskProtect" language="vbscript"    src="include/clsDiskProtect.vbs"></script>
  24.     <script id="DiskProtect" language="vbscript" src="include/DiskProtect.vbs"></script>
  25.  
  26.     <link rel="stylesheet" type="text/css" href="css/hta.css">
  27.     <meta name=vs_defaultClientScript content="VBScript">
  28.  
  29.     <hta:application ID="oImagine"
  30.         APPLICATIONNAME="DiskProtect"
  31.         CAPTION="yes"
  32.         CONTEXTMENU="yes"
  33.         BORDER="dialog"
  34.         ICON="graphics/DiskProtect.ico"
  35.         INNERBORDER="no"
  36.         MAXIMIZEBUTTON="no"
  37.         MINIMIZEBUTTON="yes"
  38.         NAVIGABLE="no"
  39.         SCROLL="no"
  40.         SELECTION="no"
  41.         SHOWINTASKBAR="yes"
  42.         SINGLEINSTANCE="yes"
  43.         SYSMENU="yes"
  44.         VERSION="1.00"
  45.         WINDOWSTATE="normal" />
  46.  
  47.     <!-- settings and resources -->
  48.     <div id="settings" style="display:none">
  49.         <p id="appTitle">Windows Disk Protection</p>
  50.  
  51.         <p id="resRebootMessage">Windows Disk Protection requires a restart before you can use it for the first time. Would you like to restart the computer now?</p>
  52.         <p id="resRebootMessageOV">An attempt to initialize Windows Disk Protection has been made. The computer must be restarted before you can run Windows Disk Protection. Do you want to restart it now?</p>
  53.         <p id="resRebootMessage2">Do you want to restart it now?</p>
  54.         <p id="resRebootAction1">Turn On</p>
  55.         <p id="resRebootAction2">Keep Off</p>
  56.         <p id="resRebootAction3">Keep On</p>
  57.         <p id="resRebootAction4">Turn Off</p>
  58.         <p id="resActionNone">No changes made to Windows Disk Protection.</p>
  59.         <p id="resActionEnable">Disk Protection is now On. Windows Disk Protection will clear all future disk changes each time the computer restarts. If you need to install software or make changes, you will need to return to this tool and click <b>Save changes with next restart</b>, otherwise the changes you make will be cleared.</p>
  60.         <p id="resActionDisable">The computer must be restarted to turn off Windows Disk Protection. </p>
  61.         <p id="resActionAlreadyOff">Windows Disk Protection is currently Off.</p>
  62.         <p id="resNoOverlaySupport">This computer does not currently support Windows Disk Protection! To resolve this error, see the Toolkit Handbook. Do you want to start the Disk Management tool to configure the disk?</p>
  63.         <p id="resNoOverlay">Disk Protection not turned On! Check for Unallocated space, or free space in an Extended Partition.</p>
  64.         <p id="resBlank"></p>
  65.         <p id="resPendingAction1">Changes will be cleared with every restart. </p>
  66.         <p id="resPendingAction2">Changes will be saved to the disk at next restart. </p>
  67.         <p id="resPendingAction3">Changes will be retained for one restart</p>
  68.         <p id="resPendingAction4">Changes will be retained indefinitely</p>
  69.  
  70.         <p id="resNoAVSoftwareDetected">No antivirus software detected!</p>
  71.         <p id="resNoAVSoftwareAction">Be sure to review the Critical Updates section in the handbook.</p>
  72.         <p id="resAVSoftwareDetected">software detected!</p>
  73.         <p id="resSpecifyAVScript">Do you want to specify the default signature update script?</p>
  74.  
  75.         <p id="resValidAntivirusScript">Select a valid antivirus update script.</p>
  76.         <p id="resValidOtherScript">Select another valid update script.</p>
  77.  
  78.         <p id="resSystemBootNotSame">The System and Boot Partitions are different! Windows Disk Protection will only protect the Boot Partition. For more information, see the Toolkit Handbook.</p>
  79.         <p id="resHibernationWDPWarning">Hibernation will not work with Windows Disk Protection. For more information about hibernation, see the Power Options item in Control Panel. Do you still want to turn on Windows Disk Protection?</p>
  80.  
  81.         <p id="resDiskProtectionSoftware1">You must uninstall any other disk protection software before you can configure Windows Disk Protection.</p>
  82.         <p id="resDiskProtectionSoftware2">Windows Disk Protection will not work if you have other disk protection software installed on the same computer.</p>
  83.  
  84.         <p id="resUpperFilterGray1">This computer has multiple UpperFilters configured. Windows Disk Protection might not be compatible with all UpperFilters.</p>
  85.         <p id="resUpperFilterGray2">Please contact Product Support if Windows Disk Protection causes your computer to malfunction.</p>
  86.         <p id="resUpperFilterGray3">Do you still want to configure Windows Disk Protection?</p>
  87.  
  88.  
  89.         <p id="lblRebootAction1">Turns on Windows Disk Protection on next restart.</p>
  90.         <p id="lblRebootAction2">Keeps Windows Disk Protection off.</p>
  91.         <p id="lblRebootAction3">Keeps Windows Disk Protection on.</p>
  92.         <p id="lblRebootAction4">Turns off Windows Disk Protection on next restart.</p>
  93.         <p id="lblPendingAction1">Changes will be cleared with every restart. </p>
  94.         <p id="lblPendingAction2">Changes will be saved to disk. </p>
  95.         <p id="lblPendingAction3">Changes will be retained for one restart. </p>
  96.         <p id="lblPendingAction4">Changes will be retained indefinitely. </p>
  97.         <p id="lblPendingAction1grey">Turn protection on and restart to enable this option</p>
  98.         <p id="lblPendingAction2grey">Turn protection on and restart to enable this option</p>
  99.         <p id="lblPendingAction3grey">Turn protection on and restart to enable this option</p>
  100.         <p id="lblPendingAction4grey">Turn protection on and restart to enable this option</p>
  101.         <p id="lblAVScriptTxt">Type the name of your antivirus update script in this text box.</p>
  102.         <p id="lblAVScriptBtn">Click the Set button to browse for your antivirus update script.</p>
  103.         <p id="lblAVScriptgrey">Turn protection on to enable antivirus update script.</p>
  104.         <p id="lblUpdateScriptTxt">Type the name of any other update script in this text box.</p>
  105.         <p id="lblUpdateScriptBtn">Click the Set button to browse for another update script.</p>
  106.         <p id="lblUpdateScriptgrey">Turn protection on to specify another update script.</p>
  107.         <p id="lblWinUPEnabled">Select to enable Microsoft Updates</p>
  108.         <p id="lblWinUPEnabledgrey">Turn Windows Disk Protection on or select Save Changes to enable Microsoft Updates</p>
  109.         <p id="lblWinUPDisabled">Select to disable Microsoft Updates</p>
  110.         <p id="lblWinUPDisabledgrey">Turn Windows Disk Protection on or select Save Changes to disable Microsoft Updates</p>
  111.         <p id="lblStatusEnabled">Windows Disk Protection Is On</p>
  112.         <p id="lblStatusDisabled">Windows Disk Protection Is Off</p>
  113.  
  114.         <span id="resAdminOnly">YES</span>
  115.         <span id="resWGAOnly">YES</span>
  116.         <span id="resDomainWarning">YES</span>
  117.         <span id="resCloseButton">NO</span>
  118.     </div>
  119. </head>
  120.  
  121. <body id="oBody" onload="Main()" OnUnload = "Unload()" Onkeydown = "Onkeydown()" style="cursor:wait" OnBeforeUnload="OnBeforeUnload()">
  122.     
  123.     <TABLE ID=oHeader style="margin-bottom:.3em"><TR >
  124.         <COL width="2%">
  125.         <COL width="94%">
  126.         <COL width="2%">
  127.         <TD><IMG id="logo" height="30px" src="graphics/sswlogo.gif"></TD>
  128.         <TD><b><p id="title">Microsoft Shared Computer Toolkit for Windows XP</P><b></TD>
  129.         <td valign=top><button id=btnHelp ATOMICSELECTION=True Title="Help (F1)" onclick="ShowHelp" onmouseover="Highlight btnHelp, True" onmouseout="Highlight btnHelp, False"><img align="absmiddle" src="graphics/help1.gif" alt="Help (F1)"> </button></td>
  130.     </TR></TABLE>
  131.  
  132.     <!-- application pages -->     
  133.      <div class="div3D" id="oDiv" style="margin-bottom:.3em;width:36em;">
  134.         <!-- Disk Protection -->
  135.         <table id="tProtect" style="table-layout:fixed;">
  136.             <col width="38%">
  137.             <col width="2%">
  138.             <col width="65%">
  139.             <tr><td colspan="3"><b><span id="spStatus"><ID id="_locWDPInitText">Windows Disk Protection is Initializing</ID></span></b></td></tr>
  140.             <TR></TR>
  141.             <tr>
  142.                 <td><ID id="_locActionText">Restart Action:</ID></td> 
  143.                 <td></td>
  144.                 <td class="groupentry" id="tdEnableDisable">
  145.                     <input id="radEnable"  type="radio" value="Enable"  name="dpReboot" onclick="EnableDisableClick()"> <span id="spEnable" style="width:35%" onclick="TextClick(window.event.srcelement.id)" onmouseover="TextDisplay(window.event.srcelement.id)" ><ID id="_locQueryText1">Querying...</ID></span>
  146.                     <input id="radDisable" type="radio" value="Disable" name="dpReboot" onclick="EnableDisableClick()"> <span id="spDisable" style="width:35%" onclick="TextClick(window.event.srcelement.id)" onmouseover="TextDisplay(window.event.srcelement.id)" ><ID id="_locQueryText2">Querying...</ID></span>
  147.                 </td>
  148.             </tr>
  149.             <TR></TR>
  150.             <tr>
  151.                 <td><ID id="_locRestartAction">Restart Option:</ID></td>
  152.                 <td></td>
  153.                 <td class="groupentry" id="tdPendingChange" onmouseover="TextDisplay(window.event.srcelement.id)" >
  154.                     <input id="rActUndo"    type="radio" value="Undo"    name="dpAction" onclick="EnableDisableClick()">
  155.                     <span id="spActUndo" onclick="TextClick(window.event.srcelement.id)"><label ID=lrActUndo For=rActUndo><ID id="_locClearText"><b>Clear</b> changes with each restart<br></ID></label></span>
  156.                     <input id="rActCommit"  type="radio" value="Commit"  name="dpAction" onclick="EnableDisableClick()">
  157.                     <span id="spActCommit" onclick="TextClick(window.event.srcelement.id)"><label ID=lrActCommit For=rActCommit><ID id="_locSaveText"><b>Save</b> changes with next restart<br></ID></label></span>
  158.                     <input id="rActRetain1" type="radio" value="Retain1" name="dpAction" onclick="EnableDisableClick()">
  159.                     <span id="spActRetain1" onclick="TextClick(window.event.srcelement.id)"><label ID=lrActRetain1 For=rActRetain1><ID id="_locRetainOnceText"><b>Retain</b> changes for one restart<br></ID></label></span>
  160.                     <input id="rActRetain2" type="radio" value="Retain2" name="dpAction" onclick="EnableDisableClick()">
  161.                     <span id="spActRetain2" onclick="TextClick(window.event.srcelement.id)"><label ID=lrActRetain2 For=rActRetain2><ID id="_locRetainText"><b>Retain</b> changes indefinitely</ID></label></span>
  162.                 </td>
  163.             </tr>
  164.             <tr><td colspan=3><hr></td></tr>
  165.  
  166.             <tr><td colspan="3"><h2><ID id="_locCriticalUpdates">Critical Updates</ID></h2></td></tr>
  167.             <tr><td><ID id="_locCriticalUpdatesSched">Updates Schedule:</ID></td>
  168.             <td></td>
  169.             <td id="tdSchedule">
  170.                     <select id="ddSchedule1" style="background-color:#234B97; color:#FFFFFF; " onmouseover="TextDisplay(window.event.srcelement.id)" NAME="ddSchedule1">
  171.                         <option value="0"><ID id="_locEveryDay">Every Day</ID></option>
  172.                         <option value="1"><ID id="_locSunday">Every Sunday</ID></option>                                
  173.                         <option value="2"><ID id="_locMonday">Every Monday</ID></option>
  174.                         <option value="3"><ID id="_locTuesday">Every Tuesday</ID></option>
  175.                         <option value="4"><ID id="_locWednesday">Every Wednesday</ID></option>
  176.                         <option value="5"><ID id="_locThursday">Every Thursday</ID></option>
  177.                         <option value="6"><ID id="_locFriday">Every Friday</ID></option>
  178.                         <option value="7"><ID id="_locSaturday">Every Saturday</ID></option>
  179.                     </select>
  180.                        
  181.                     <select id="ddSchedule2" style="background-color:#234B97; color:#FFFFFF; " onmouseover="TextDisplay(window.event.srcelement.id)" NAME="ddSchedule2">
  182.                         <option value="0">12:00 AM</option>
  183.                         <option value="1">1:00 AM</option>
  184.                         <option value="2">2:00 AM</option>
  185.                         <option value="3">3:00 AM</option>
  186.                         <option value="4">4:00 AM</option>
  187.                         <option value="5">5:00 AM</option>
  188.                         <option value="6">6:00 AM</option>
  189.                         <option value="7">7:00 AM</option>
  190.                         <option value="8">8:00 AM</option>
  191.                         <option value="9">9:00 AM</option>
  192.                         <option value="10">10:00 AM</option>
  193.                         <option value="11">11:00 AM</option>
  194.                         <option value="12">12:00 PM</option>
  195.                         <option value="13">1:00 PM</option>
  196.                         <option value="14">2:00 PM</option>
  197.                         <option value="15">3:00 PM</option>
  198.                         <option value="16">4:00 PM</option>
  199.                         <option value="17">5:00 PM</option>
  200.                         <option value="18">6:00 PM</option>
  201.                         <option value="19">7:00 PM</option>
  202.                         <option value="20">8:00 PM</option>
  203.                         <option value="21">9:00 PM</option>
  204.                         <option value="22">10:00 PM</option>
  205.                         <option value="23">11:00 PM</option>
  206.                     </select>
  207.                 </td>
  208.             </tr>
  209.  
  210.             <tr><td><ID id="_locCriticalUpdates">Microsoft Updates:</ID></td>
  211.                 <td></td>
  212.                 <td id="tdCritical">
  213.                     <input id="rDPWinUpEnabled"  type="radio" value="Enabled"  name="dpWinUpdate"><span id="spWinUPEnabled" onclick="TextClick(window.event.srcelement.id)" onmouseover="TextDisplay(window.event.srcelement.id)" >Enabled</span>   
  214.                     <input id="rDPWinUpDisabled" type="radio" value="Disabled" name="dpWinUpdate"><span id="spWinUPDisabled" onclick="TextClick(window.event.srcelement.id)" onmouseover="TextDisplay(window.event.srcelement.id)" >Disabled</span>
  215.                 </td>
  216.             </tr>
  217.             <tr>
  218.                 <td><ID id="_locAntivirusScript">Antivirus Script:</ID></td>
  219.                 <td></td>
  220.                 <td id="tdAVScript" valign=middle>
  221.                     <input type="text"   id="txtAntiVirusScript" style="width:75%" NAME="txtAntiVirusScript" onmouseover="TextDisplay(window.event.srcelement.id)" >
  222.                     <input type="button" id="btnAntiVirusScript" style="width:22%" value="Set..." onclick="BrowseForFileAV('txtAntiVirusScript')" NAME="btnAntiVirusScript" onmouseover="TextDisplay(window.event.srcelement.id)" >
  223.                 </td>
  224.             </tr>
  225.             <tr>
  226.                 <td><ID id="_locUpdateScript">Other Script:</ID></td>
  227.                 <td></td>
  228.                 <td id="tdUpdateScript">
  229.                     <input type="text"   id="txtOtherScript" style="width:75%" NAME="txtOtherScript" onmouseover="TextDisplay(window.event.srcelement.id)" >
  230.                     <input type="button" id="btnOtherScript" style="width:22%" value="Set..." onclick="BrowseForFileOther('txtOtherScript')" NAME="btnOtherScript" onmouseover="TextDisplay(window.event.srcelement.id)" >
  231.                 </td>
  232.             </tr>
  233.         </table><BR>
  234.     </div>
  235.     
  236.      <!-- Footer -->
  237.     <TABLE id=oFooter style="height:2em"><tr>
  238.         <COL width="95%">
  239.         <COL width="5%">
  240.         <td></td>
  241.         <td><button id=btnFinish ATOMICSELECTION=True Title="Apply selections and close this tool" onclick="Submit()" onmouseover="Highlight btnFinish,True" onmouseout="Highlight btnFinish, False"><img align="absmiddle" src="graphics/green1.gif">  OK</button></td>
  242.     </tr></TABLE>
  243.  
  244. </body>
  245. </html>
  246.