Jump to content

Francesco

Member
  • Posts

    414
  • Joined

  • Last visited

  • Donations

    $0.00 
  • Country

    Italy

Posts posted by Francesco

  1.             if (Caption.indexOf("Windows 2012") != -1)                szOSVerCache="12";            else if (Caption.indexOf("Windows 8") != -1)                szOSVerCache="Win8";            else if (Caption.indexOf("Windows 7") != -1)                szOSVerCache="Win7";            else if (Caption.indexOf("2008") != -1)                szOSVerCache="08";            else if (Caption.indexOf("Vista") != -1)                szOSVerCache="Vista";            else if (Caption.indexOf("2003") != -1)                szOSVerCache="03";            else if (Caption.indexOf("XP") != -1)                szOSVerCache="XP";            else if (Caption.indexOf("2000") != -1)                szOSVerCache="2K";
                if (szOSVerCache=="08")                szEditionIDCache=getOSsku(OSSKU);            else if (szOSVerCache=="Vista")                szEditionIDCache=getOSsku(OSSKU);            else if (szOSVerCache=="03")            {                if (Caption.indexOf("Standard") != -1)                    szEditionIDCache="Standard Edition";                else if (Caption.indexOf("Enterprise") != -1)                    szEditionIDCache="Enterprise Edition";                else if (Caption.indexOf("Web") != -1)                    szEditionIDCache="Web Edition";                else if (Caption.indexOf("Datacenter") != -1)                    szEditionIDCache="Datacenter Edition";                else if (Caption.indexOf("Itanium") != -1)                    szEditionIDCache="Itanium Edition";            }            else if (szOSVerCache=="XP")            {                if (Caption.indexOf("Home") != -1)                    szEditionIDCache="Home Edition";                else if (Caption.indexOf("Professional") != -1)                    szEditionIDCache="Professional Edition";            }            else if (szOSVerCache=="2K")            {                if (Caption.indexOf("Professional") != -1)                    szEditionIDCache="Professional Edition";                else if (Caption.indexOf("2000 Server") != -1)                    szEditionIDCache="Server Edition";                else if (Caption.indexOf("2000 Advanced Server") != -1)                    szEditionIDCache="Advanced Server Edition";                else if (Caption.indexOf("Datacenter") != -1)                    szEditionIDCache="Datacenter Edition";            }

    problem solved?

  2. I don't know if this classifies as a bug but when I remove every keyboard except the one for my language the following keys and files for extra US-based keyboards are not removed:

    "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00010409""HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00020409""HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00030409""HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00040409""C:\Windows\System32\KBDDV.DLL""C:\Windows\System32\KBDUSX.DLL""C:\Windows\System32\KBDUSL.DLL""C:\Windows\System32\KBDUSR.DLL"
  3. Remove from jscript.js:

    function TimedWaitForProgram(ImageName,HowLong){  position="jscript.js";whatfunc="TimedWaitForProgram()";var Elapsed=3;Pause(3,0);while (Elapsed<=HowLong*60){  var oExec = WshShell.Exec('tasklist.exe');  while (oExec.Status == 0)   Pause(0,100);  var Output = oExec.StdOut.ReadAll() + oExec.StdErr.ReadAll();  if (Output.search(ImageName)==-1)   return;  Pause(3,0);  Elapsed += 3;}}

    At the bottom of WMI.js add:

    function TimedWaitForProgram(ImageName,HowLong){  position="wmi.js";whatfunc="TimedWaitForProgram()";try{  objWMIService=GetObject("winmgmts:\\\\" + "." + "\\root\\CIMV2");  var Elapsed=0;  while (!HowLong || (Elapsed<=HowLong*60))  {   colItems=objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name='"+ImageName+"'");    if (colItems.Count > 0)    return true;    Pause(1,0);   Elapsed += 1;  }}catch(ex){}return false;}
  4. In configwizard.js after

    CommandsMenuBar.addNewChild("jscript_system", 10, "jscript_ErrorReporting", "ErrorReporting()", false, "", "");
    add
    CommandsMenuBar.addNewChild("jscript_system", 11, "jscript_SetAppAsDefault", "SetAppAsDefault()", false, "", "");
    and before
    case 'jscript_SetAutoLogonUser':
    add
    case 'jscript_SetAppAsDefault':  HandleCommandsSelectionMenu('{JSCRIPT}=SetAppAsDefault("Program ID")');  break;
    In jscript.js add
    function SetAppAsDefault(ProgId){  position="jscript.js";whatfunc="SetAppAsDefault()";RunCmd('"' + wpipath + '\\Tools\\WPI Tool.exe" /Action=SetAppAsDefaultAll /ProgId="' + ProgId + '"', false, true);}

    And replace WPI Tool.exe with the attached one.

    WPI Tool.exe

  5. enable64bit can be removed since the launcher when possible always run MSHTA in 64bit mode.

    From configwizard.js remove:

    document.getElementById("bit64").checked=configList[pos].bit64=="yes" ? 1 : 0;
    and
    configList[pos].bit64=document.getElementById("bit64").checked ? "yes" : "no";
    and
    entry.bit64="no";
    and
    document.getElementById("bit64").disabled=state;
    and
         case "bit64":      configList[pn-2].bit64=val;      break;
    and
       WriteConfigValue(tf, "bit64", configList[i].bit64,0);
    and
    document.getElementById("lblEnable64BitProcessing").innerHTML=getText(lblEnable64BitProcessing);

    From globals.js remove

    var ExecuteBeforebit64=false;
    and
    var ExecuteAfterbit64=false;
    and
    var bit64=[];   // Enable 64bit processing

    From installer.js remove

       programs[0].bit64=ExecuteBeforebit64==true ? "yes" : "no";
    and
       programs[0].bit64="yes";
    and
       programs[0].bit64="no";
    and
       programs[programs.length-1].bit64=ExecuteAfterbit64==true ? "yes" : "no";
    and
       programs[programs.length-1].bit64="no";
    and
       programs[programs.length-1].bit64="no";
    and
         if (programs[item].bit64=="yes" && OSBits==64)      cmd='"'+sysPath64+'RegEdt32" /S ' + cmd;     else
    and
      if (programs[item].bit64=="yes" && OSBits==64)   cmd='"'+sysPath64+'cmd.exe" /C '+cmd;  else

    From installer_log.js remove

    WriteLogLinePlain("   ExecuteBeforebit64=" + ExecuteBeforebit64);
    and
    WriteLogLinePlain("   ExecuteAfterbit64=" + ExecuteAfterbit64);

    From installer_reboot.js remove

      if (rbProg.bit64 != null)   rbfHandle.WriteLine("programs[prb].bit64=['"+GetConfigValue(rbProg.bit64.toString(),1)+"'];");

    From optionswizard.js remove

      getElementById("lblExecuteBeforebit64").innerHTML=getText(lblEnable64BitProcessing);
    and
      getElementById("lblExecuteAfterbit64").innerHTML=getText(lblEnable64BitProcessing);
    and
      document.getElementById("ExecuteBeforebit64").disabled=false;
    and
      document.getElementById("ExecuteBeforebit64").disabled=true;
    and
      document.getElementById("ExecuteAfterbit64").disabled=false;
    and
      document.getElementById("ExecuteAfterbit64").disabled=true;
    and
    ExecuteBeforebit64=false;
    and
    ExecuteAfterbit64=false;
    and
      document.getElementById("ExecuteAfterbit64").checked=ExecuteBeforebit64;
    and
      document.getElementById("ExecuteAfterbit64").checked=ExecuteAfterbit64;
    and
        if (opt=="ExecuteBeforebit64")     document.getElementById("ExecuteBeforebit64").checked=val=="true" ? true : false;
    and
        if (opt=="ExecuteAfterbit64")     document.getElementById("ExecuteAfterbit64").checked=val=="true" ? true : false;
    and
      tf.WriteLine("ExecuteBeforebit4="+ExecuteBeforebit64+";");
    and
      tf.WriteLine("ExecuteAfterbit64="+ExecuteAfterbit64+";");
    and
      tf.WriteLine("ExecuteBeforebit64="+document.getElementById("ExecuteBeforebit64").checked+";");
    and
      tf.WriteLine("ExecuteAfterbit64="+document.getElementById("ExecuteAfterbit64").checked+";");

    From program.js remove

    bit64=[];
    and
    this.bit64=bit64[idx];
    and
      bit64[i+1]=programs[i].bit64;

    From updatewizard.js remove

       tf.WriteLine('\t\t\t"Bit64" : '+configList.Programs[i].Bit64+',');
    and
         case "bit64":      configList[pn-2].bit64=val;      break;
    and
      tf.WriteLine("// bit64[pn]=['no'];");
    and
       WriteConfigValue(tf, "bit64", configList[i].bit64,0);

    From configwizardtemplate_details.htm remove

         <tr>      <td>       <table border="0" cellpadding="0" cellspacing="0">        <tr>         <td>          <input id="bit64" type="checkbox"           onClick="ConfigUpdated();"          >         </td>         <td nowrap>          <div id="lblEnable64BitProcessing" class="opTxt" align="absmiddle"></div>         </td>        </tr>       </table>      </td>      <td>      <!-- next option here -->      </td>     </tr>

    From globals_lang.js remove

    var lblEnable64BitProcessing=[];

    From the language files remove the lines starting with:

    lblEnable64BitProcessing[lang]

    From optionswizardtemplate_tools.htm remove

          <td>       <table border="0" cellpadding="0" cellspacing="0">        <tr>         <td>          <input id="ExecuteBeforebit64" type="checkbox"           onClick="ConfigUpdated();"          >         </td>         <td>          <div id="lblExecuteBeforebit64" class="opTxt" align="absmiddle"></div>         </td>        </tr>       </table>      </td>
    and
          <td>       <table border="0" cellpadding="0" cellspacing="0">        <tr>         <td>          <input id="ExecuteAfterbit64" type="checkbox"           onClick="ConfigUpdated();"          >         </td>         <td>          <div id="lblExecuteAfterbit64" class="opTxt" align="absmiddle"></div>         </td>        </tr>       </table>      </td>

    In configwizard.js replace

      tf.WriteLine("// WPI Config 8.0.0");
    with
      tf.WriteLine("// WPI Config 8.7.0");

    In WPI.HTA after

      else if (ver<800)  {/*   var UpTxt=new String();   UpTxt=getText(txtUpdateConfig);   UpTxt=String(UpTxt).replace("7.2.0","8.0.0");   if (confirm(configFile+"\n\n"+UpTxt))   {    NeedUpdateWizard=800;    break;   }   else   {    alert("You should remove config.js from the WPIScripts folder\nbefore continuing.  Then run WPI again.");    self.close();   }*/   break;  }
    insert
      else if (ver<870)  {   var bit64=[];   break;  }
  6. This might be pretty handy tool, but being that paranoid internet user I am, I wouldn't want to touch an .exe from unknown person unless source code was provided.

    No offence though!

    Sure, but having the source code still doesn't guarantee the code hasn't been tampered with, you can only be sure it's clean if you read the code line by line and then compile it yourself. As you can see though VirusTotal reports it being completely clean. I didn't bother adding the sources since it's just 3 API calls for setting the default applications (strangely nobody ever bothered to release a similar tool though) but I attached them to this post.

    WPI Tool.rar

  7. Description

    I made a little tool (attached to this post) that invokes the SetAppAsDefaultAll application registration API to set an application as default on Vista/7. It does exactly the same registration that is performed when you open "Program defaults" and set an application as default.

    NOTE: it doesn't work on XP/8 because that registration API is only available on Windows Vista and Windows 7. Windows XP and Windows 8 handle application registrations differently (Win8 blocks applications from changing defaults and XP instead has several different ways of which I can't figure if there is a proper one and which one it is).

    Syntax

    SetAppAsDefaultAll.exe /Action=SetAppAsDefaultAll /ProgID="Program Id"

    You can find the Program Id value you need in the HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications registry key.

    Examples

    To set the latest Windows Photo Gallery 2012 as default:

    SetAppAsDefaultAll.exe /Action=SetAppAsDefaultAll /ProgID="WindowsLive.PhotoGallery.16.4"

    To set Windows Media Player as default:

    SetAppAsDefaultAll.exe /Action=SetAppAsDefaultAll /ProgID="Windows Media Player"

    To set VLC as default:

    SetAppAsDefaultAll.exe /Action=SetAppAsDefaultAll /ProgID="VLC"

    Extra

    The tool also supports waiting for a window to open (/Action=WaitForWindow /WindowName="Window Name" /Timeout=seconds) and closing a windowed application properly by sending WM_CLOSE to the window (/Action=CloseWindow /WindowName="Window Name").

    SetAppAsDefaultAll.exe

  8. Description

    An alternative to abruptly terminating processes with TASKKILL.

    Changes

    In jscript.js before

    function TimedWaitForProgram(ImageName,HowLong)

    add

    function TimedWaitForWindow(WindowName,HowLong){ 	position="jscript.js";	whatfunc="TimedWaitForWindow()";		RunCmd('"' + wpipath + '\\Tools\\WPI Tool.exe" /Action=WaitForWindow /WindowName="' + WindowName + '" /Timeout=' + HowLong, false, true);}

    In configwizard.js replace

    CommandsMenuBar.addNewChild("jscript_dos", 3, "jscript_setEnvVar", "setEnvVar()", false, "", "");	CommandsMenuBar.addNewChild("jscript_dos", 4, "jscript_removeEnvVar", "removeEnvVar()", false, "", "");	CommandsMenuBar.addNewChild("jscript_dos", 5, "jscript_FormatDrive", "FormatDrive()", false, "", "");

    with

    CommandsMenuBar.addNewChild("jscript_dos", 3, "jscript_TimedWaitForWindow", "TimedWaitForWindow()", false, "", "");					CommandsMenuBar.addNewChild("jscript_dos", 4, "jscript_setEnvVar", "setEnvVar()", false, "", "");					CommandsMenuBar.addNewChild("jscript_dos", 5, "jscript_removeEnvVar", "removeEnvVar()", false, "", "");					CommandsMenuBar.addNewChild("jscript_dos", 6, "jscript_FormatDrive", "FormatDrive()", false, "", "");

    and

    CommandsMenuBar.addNewChild("cmd_other", 3, "other_sleep", "Sleep", false, "", "");     CommandsMenuBar.addNewChild("cmd_other", 4, "other_reboot", "Reboot", false, "", "");

    with

    CommandsMenuBar.addNewChild("cmd_other", 3, "other_closewindow", "CloseWindow", false, "", ""); 			CommandsMenuBar.addNewChild("cmd_other", 4, "other_sleep", "Sleep", false, "", ""); 			CommandsMenuBar.addNewChild("cmd_other", 5, "other_reboot", "Reboot", false, "", "");

    and before

    case 'jscript_CreateRegKey':

    add

    case 'jscript_TimedWaitForWindow':			HandleCommandsSelectionMenu('{JSCRIPT}=TimedWaitForProgram("Setup",10)');			break;

    and before

    case 'other_sleep':

    add

    case 'other_closewindow':			HandleCommandsSelectionMenu("{CLOSEWINDOW} WindowName");			break;

    In installer.js before

    case 'SLEEP':

    add

    case 'CLOSEWINDOW':				cmd="\"" + wpipath + "\\Tools\\WPI Tool.exe\" /Action=CloseWindow /WindowName=\"" + cmd + "\"";				fsoCmd=true;				break;

    In the Tools folder add the WPI Tool.exe attached to this post

    WPI Tool.exe

  9. This won't let WPI render the boxes for the wizards. Any ideas?

    Sorry, I didn't notice the same files were loaded twice in each HTM file.

    You also have to replace in WPI.HTA:

        document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxtabbar.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxcombo.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxslider.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxslider_custom.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxtree.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxgrid.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxgrid_skins.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxwindows.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxcolorpicker.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/skins/dhtmlxmenu_dhx_skyblue.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/skins/dhtmlxtoolbar_dhx_skyblue.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/skins/dhtmlxaccordion_dhx_skyblue.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/skins/dhtmlxgrid_dhx_skyblue.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/skins/dhtmlxwindows_dhx_skyblue.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/skins/dhtmlxeditor_dhx_skyblue.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlx_custom.css">');

    with

    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlx.css">');

    and in Installer.HTA:

        document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlxwindows.css">');    document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/skins/dhtmlxwindows_dhx_skyblue.css">');

    with

        document.write('<link rel="stylesheet" type="text/css" href="../common/codebase/dhtmlx.css">');
  10. I compiled dHTMLx (attached in this post) with only the controls WPI uses, it replaces the whole Codebase folder.

    In WPI.HTA this code block

    <script type="text/javascript" src="../common/codebase/dhtmlxcommon.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxcontainer.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxtabbar.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxtabbar_start.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxslider.js" application="yes"></script><script type="text/javascript" src="../common/codebase/ext/dhtmlxslider_start.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxtree.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxmenu.js" application="yes"></script><script type="text/javascript" src="../common/codebase/ext/dhtmlxmenu_ext.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxtoolbar.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxgrid.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxgridcell.js" application="yes"></script><script type="text/javascript" src="../common/codebase/ext/dhtmlxgrid_drag.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxwindows.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxcombo.js" application="yes"></script><script type="text/javascript" src="../common/codebase/ext/dhtmlxcombo_extra.js" application="yes"></script><script type="text/javascript" src="../common/codebase/ext/dhtmlxcombo_whp.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxaccordion.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxeditor.js" application="yes"></script><script type="text/javascript" src="../common/codebase/ext/dhtmlxeditor_ext.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxcolorpicker.js" application="yes"></script>

    must be replaced with

    <script type="text/javascript" src="../common/codebase/dhtmlx.js" application="yes"></script>

    and in Installer.HTA

    <script type="text/javascript" src="../common/codebase/dhtmlxcommon.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxcontainer.js" application="yes"></script><script type="text/javascript" src="../common/codebase/dhtmlxwindows.js" application="yes"></script>

    must be replaced with

    <script type="text/javascript" src="../common/codebase/dhtmlx.js" application="yes"></script>

    Codebase.rar

    post-16245-0-13370800-1373613174_thumb.p

  11. Fix

    In globals.js replace


    var sysArch, sysArch6432;

    with


    var sysArch;

    and


    var OSBits=32, mshtaBits=32;

    with


    var OSBits=32;

    and remove


    var true64bits=false, true32bits=false;

    In globals_lang.js replace


    var lblArchName=[], lblArchNameString=[], lblArchID=[], lblNumberProcessors=[], lblMHz=[], lblArchType=[], lblSysArch6432=[], lblArchBits=[], lblTrue64Bits=[];

    with


    var lblArchName=[], lblArchNameString=[], lblArchID=[], lblNumberProcessors=[], lblMHz=[], lblArchType=[], lblArchBits=[];

    and remove the lblSysArch6432 and lblTrue64Bits lines from all langfiles.

    In information.js remove


    ArchitectureGrid.addRow(gId++,getText(lblSysArch6432)+','+sysArch6432+'');

    and remove


    ArchitectureGrid.addRow(gId++,getText(lblTrue64Bits)+','+true64bits+'');

    and remove


    ConditionsGrid.addRow(gId++,'getmshtaBits()=='+getmshtaBits());

    and remove


    ConditionsGrid.addRow(gId++,'getArch6432()=="'+getArch6432()+'"');

    In installer_log.js remove


    WriteLogLinePlain(" "+getText(lblSysArch6432)+"="+sysArch6432);

    and remove


    WriteLogLinePlain(" "+getText(lblTrue64Bits)+"="+true64bits);

    In core.js remove


    getArch6432();

    and


    getmshtaBits();

    In WMI.js remove


    function getArch6432()
    {
    position="wmi.js";
    whatfunc="getArch6432()";

    sysArch6432=WshShell.ExpandEnvironmentStrings("%PROCESSOR_ARCHITEW6432%");
    if (sysArch6432=="%PROCESSOR_ARCHITEW6432%" || sysArch6432=="%PROCESSOR_ARCHITECTURE%")
    sysArch6432="NOT_DEFINED";

    return sysArch6432;
    }

    and remove


    function getmshtaBits()
    {
    position="wmi.js";
    whatfunc="getmshtaBits()";

    return mshtaBits;
    }

    and replace


    function getBits()
    {
    position="wmi.js";
    whatfunc="getBits()";

    if (sysArch6432=="NOT_DEFINED")
    {
    if (sysArch=="AMD64" || sysArch=="IA64")
    { // True 64bit system
    true64bits=true;
    true32bits=false;
    mshtaBits=64;
    OSBits=64;
    }
    else
    { // True 32bit system
    true64bits=false;
    true32bits=true;
    mshtaBits=32;
    OSBits=32;
    }
    }
    else
    { // Running 32bit mshta on 64bit OS
    true64bits=false;
    true32bits=false;
    mshtaBits=32;
    OSBits=64;
    }

    return OSBits;
    }

    with


    function getBits()
    {
    position="wmi.js";
    whatfunc="getBits()";

    OSBits=(sysArch=="AMD64" || sysArch=="IA64") ? 64 : 32;

    return OSBits;
    }

    and replace


    if (true32bits)

    with


    if (OSBits == 32)

    In configwizard.js replace


    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 0, "architecture_getmshtaBits", "getmshtaBits()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 1, "architecture_getArch", "getArch()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 2, "architecture_getArch6432", "getArch6432()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 3, "architecture_getBits", "getBits()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 4, "architecture_getArchName", "getArchName()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 5, "architecture_getArchNameString", "getArchNameString()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 6, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 7, "architecture_getNumProcs", "getNumProcs()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 8, "architecture_getArchMHz", "getArchMHz()", false, "", "");

    with


    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 0, "architecture_getArch", "getArch()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 1, "architecture_getBits", "getBits()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 2, "architecture_getArchName", "getArchName()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 3, "architecture_getArchNameString", "getArchNameString()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 4, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 5, "architecture_getNumProcs", "getNumProcs()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 6, "architecture_getArchMHz", "getArchMHz()", false, "", "");

    and remove


    case 'architecture_getmshtaBits':
    HandleConditionsSelectionMenu(!InsertCondValues ? "getmshtaBits()" : 'getmshtaBits()=='+getmshtaBits());
    break;

    and remove


    case 'architecture_getArch6432':
    HandleConditionsSelectionMenu(!InsertCondValues ? "getArch6432()" : 'getArch6432()=="'+getArch6432()+'"');
    break;

  12. Fix

    In API.js replace


    function moveCaretToStart(control)
    {
    position="api.js";
    whatfunc="moveCaretToStart()";

    if (control.createTextRange)
    {
    var range=control.createTextRange();

    range.collapse(true);
    range.select();
    }
    else if (control.setSelectionRange)
    {
    control.focus();
    control.setSelectionRange(0,0);
    }
    }

    with


    function insertAtCaret(control, text)
    {
    position="api.js";
    whatfunc="insertAtCaret()";

    if (control.setSelectionRange)
    control.value = control.value.substring(0,control.selectionStart) + text + control.value.substring(control.selectionStart,control.selectionEnd) + control.value.substring(control.selectionEnd,control.value.length);
    else if (document.selection && document.selection.createRange) {
    control.focus();
    var range = document.selection.createRange();
    range.text = text + range.text;
    }
    }

    and


    function selectText(control,txt)
    {
    position="api.js";
    whatfunc="moveCaretToStart()";

    with


    function selectText(control,txt)
    {
    position="api.js";
    whatfunc="selectText()";

    In configwizard replace


    LayoutConditionsMenuBar();
    LayoutGrayedConditionsMenuBar();

    with


    SetUpConditionMenuBar("ConditionsMenuBar","cond", onClickHandlerConditions);
    SetUpConditionMenuBar("GrayedConditionsMenuBar","gcond",onClickHandlerGrayedConditions);

    and


    function LayoutConditionsMenuBar()
    {
    position="configwizard.js";
    whatfunc="LayoutConditionsMenuBar()";

    ConditionsMenuBar=new dhtmlXMenuObject("ConditionsMenuBar",dhxSkin,true);
    ConditionsMenuBar.setImagePath("../common/codebase/imgs/");
    ConditionsMenuBar.setOpenMode("win");
    ConditionsMenuBar.attachEvent("onClick",onClickHandlerConditions);
    ConditionsMenuBar.addNewSibling(null, "cond_filesystem", getText(lblFileSystem), false);
    ConditionsMenuBar.addNewChild("cond_filesystem", 0, "cond_filesystem_file", getText(lblFile), false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_file", 0, "filesystem_FileExists", "FileExists()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_file", 1, "filesystem_getFileSize", "getFileSize()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_file", 2, "filesystem_getFileType", "getFileType()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_file", 3, "filesystem_getFileVersion", "getFileVersion()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_file", 4, "filesystem_fileVersionGreaterThan", "fileVersionGreaterThan()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem", 1, "cond_filesystem_folder", getText(lblFolder), false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_folder", 0, "filesystem_FolderExists", "FolderExists()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_folder", 1, "filesystem_getFolderSize", "getFolderSize()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem", 2, "cond_filesystem_drive", getText(lblDrive), false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_drive", 0, "filesystem_DriveExists", "DriveExists()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_drive", 1, "filesystem_DriveType", "DriveType()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_drive", 2, "filesystem_DriveVolumeName", "DriveVolumeName()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_drive", 3, "filesystem_DriveShareName", "DriveShareName()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_drive", 4, "filesystem_DriveFileSystem", "DriveFileSystem()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_drive", 5, "filesystem_DriveAvailableSpace", "DriveAvailableSpace()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem_drive", 6, "filesystem_DriveTotalSize", "DriveTotalSize()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem", 3, "filesystem_getComSpec", "getComSpec()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_filesystem", 4, "filesystem_getEnvVar", "getEnvVar()", false, "", "");
    ConditionsMenuBar.addNewSibling("cond_filesystem", "cond_registry", getText(lblRegistry), false);
    ConditionsMenuBar.addNewChild("cond_registry", 0, "registry_RegKeyExists", "RegKeyExists()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_registry", 1, "registry_RegValueExists", "RegValueExists()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_registry", 2, "registry_RegKeyValue", "RegKeyValue()", false, "", "");
    ConditionsMenuBar.addNewSibling("cond_registry", "cond_architecture", getText(lblArchitecture), false);
    ConditionsMenuBar.addNewChild("cond_architecture", 0, "cond_architecture_os", getText(lblOperatingSystem), false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_os", 0, "architecture_getOSver", "getOSver()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_os", 1, "architecture_getOSvernum", "getOSvernum()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_os", 2, "architecture_getSPver", "getSPver()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_os", 3, "architecture_getOSlang", "getOSlang()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_os", 4, "architecture_getOSlocale", "getOSlocale()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture", 1, "cond_architecture_arch", getText(lblArchitecture), false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 0, "architecture_getmshtaBits", "getmshtaBits()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 1, "architecture_getArch", "getArch()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 2, "architecture_getArch6432", "getArch6432()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 3, "architecture_getBits", "getBits()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 4, "architecture_getArchName", "getArchName()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 5, "architecture_getArchNameString", "getArchNameString()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 6, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 7, "architecture_getNumProcs", "getNumProcs()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_arch", 8, "architecture_getArchMHz", "getArchMHz()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture", 2, "cond_architecture_hardware", getText(lblHardware), false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 0, "architecture_getBaseBoardManufacturer", "getBaseBoardManufacturer()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 1, "architecture_getBaseBoardModel", "getBaseBoardModel()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 2, "architecture_getVideoControllerID", "getVideoControllerID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 3, "architecture_getSoundDeviceID", "getSoundDeviceID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 4, "architecture_getNetworkAdapterID", "getNetworkAdapterID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 5, "architecture_getWirelessNetworkAdapterID", "getWirelessNetworkAdapterID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 6, "architecture_getModemID", "getModemID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 7, "architecture_getHDDControllerID", "getHDDControllerID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 8, "architecture_getCDROMID", "getCDROMID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 9, "architecture_getCDBurnerID", "getCDBurnerID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 10, "architecture_getCDBurnerName", "getCDBurnerName()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 11, "architecture_hasDVDROM", "hasDVDROM()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 12, "architecture_hasDVDBurner", "hasDVDBurner()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 13, "architecture_hasDVDDrive", "hasDVDDrive()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 14, "architecture_getKeyboardID", "getKeyboardID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 15, "architecture_getPointingDeviceID", "getPointngDeviceID()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_hardware", 99, "architecture_getSystemEnclosureType", "getSystemEnclosureType()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture", 3, "cond_architecture_system", getText(lblSystem), false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_system", 0, "architecture_getSysManufacturer", "getSysManufacturer()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_system", 1, "architecture_getSysModel", "getSysModel()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_system", 2, "architecture_getSysPCType", "getSysPCType()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_system", 3, "architecture_getSysType", "getSysType()", false, "", "");
    ConditionsMenuBar.addNewSeparator("architecture_getSysType", 4);
    ConditionsMenuBar.addNewChild("cond_architecture_system", 5, "architecture_getFreeRAM", "getFreeRAM()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_system", 6, "architecture_getTotalRAM", "getTotalRAM()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture", 4, "cond_architecture_bios", getText(lblBIOS), false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_bios", 0, "architecture_getBIOSManufacturer", "getBIOSManufacturer()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_bios", 1, "architecture_getBIOSVersion", "getBIOSVersion()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_bios", 2, "architecture_getSMBIOSVersion", "getSMBIOSVersion()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_architecture_bios", 3, "architecture_getBIOSCaption", "getBIOSCaption()", false, "", "");
    ConditionsMenuBar.addNewSibling("cond_architecture", "cond_security", getText(lblSecurity), false);
    ConditionsMenuBar.addNewChild("cond_security", 0, "security_isLogOnServer", "isLogOnServer()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_security", 1, "security_isUserDomain", "isUserDomain()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_security", 2, "security_isComputerName", "isComputerName()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_security", 3, "security_isUserName", "isUserName()", false, "", "");
    ConditionsMenuBar.addNewSeparator("security_isUserName", 4);
    ConditionsMenuBar.addNewChild("cond_security", 5, "security_getFirewallProduct", "getFirewallProduct()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_security", 6, "security_getAntiVirusProduct", "getAntiVirusProduct()", false, "", "");
    ConditionsMenuBar.addNewSibling("cond_security", "cond_other", getText(lblOther), false);
    ConditionsMenuBar.addNewChild("cond_other", 0, "other_ConnectedToInternet", "ConnectedToInternet()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_other", 1, "other_isInstalled", "isInstalled()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_other", 2, "other_getIEver", "getIEver()", false, "", "");
    ConditionsMenuBar.addNewChild("cond_other", 3, "other_isDesktopLoaded", "isDesktopLoaded()", false, "", "");
    ConditionsMenuBar.setOverflowHeight(6);
    }

    function LayoutGrayedConditionsMenuBar()
    {
    position="configwizard.js";
    whatfunc="LayoutGrayedConditionsMenuBar()";

    GrayedConditionsMenuBar=new dhtmlXMenuObject("GrayedConditionsMenuBar",dhxSkin,true);
    GrayedConditionsMenuBar.setImagePath("../common/codebase/imgs/");
    GrayedConditionsMenuBar.setOpenMode("win");
    GrayedConditionsMenuBar.attachEvent("onClick",onClickHandlerGrayedConditions);
    GrayedConditionsMenuBar.addNewSibling(null, "gcond_filesystem", getText(lblFileSystem), false);
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 0, "gcond_filesystem_file", getText(lblFile), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 0, "filesystem_FileExists", "FileExists()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 1, "filesystem_getFileSize", "getFileSize()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 2, "filesystem_getFileType", "getFileType()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 3, "filesystem_getFileVersion", "getFileVersion()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_file", 4, "filesystem_fileVersionGreaterThan", "fileVersionGreaterThan()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 1, "gcond_filesystem_folder", getText(lblFolder), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_folder", 0, "filesystem_FolderExists", "FolderExists()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_folder", 1, "filesystem_getFolderSize", "getFolderSize()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 2, "gcond_filesystem_drive", getText(lblDrive), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 0, "filesystem_DriveExists", "DriveExists()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 1, "filesystem_DriveType", "DriveType()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 2, "filesystem_DriveVolumeName", "DriveVolumeName()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 3, "filesystem_DriveShareName", "DriveShareName()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 4, "filesystem_DriveFileSystem", "DriveFileSystem()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 5, "filesystem_DriveAvailableSpace", "DriveAvailableSpace()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem_drive", 6, "filesystem_DriveTotalSize", "DriveTotalSize()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 3, "filesystem_getComSpec", "getComSpec()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_filesystem", 4, "filesystem_getEnvVar", "getEnvVar()", false, "", "");
    GrayedConditionsMenuBar.addNewSibling("gcond_filesystem", "gcond_registry", getText(lblRegistry), false);
    GrayedConditionsMenuBar.addNewChild("gcond_registry", 0, "registry_RegKeyExists", "RegKeyExists()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_registry", 1, "registry_RegValueExists", "RegValueExists()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_registry", 2, "registry_RegKeyValue", "RegKeyValue()", false, "", "");
    GrayedConditionsMenuBar.addNewSibling("gcond_registry", "gcond_architecture", getText(lblArchitecture), false);
    GrayedConditionsMenuBar.addNewChild("gcond_architecture", 0, "gcond_architecture_os", getText(lblOperatingSystem), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 0, "architecture_getOSver", "getOSver()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 1, "architecture_getOSvernum", "getOSvernum()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 2, "architecture_getSPver", "getSPver()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 3, "architecture_getOSlang", "getOSlang()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_os", 4, "architecture_getOSlocale", "getOSlocale()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture", 1, "gcond_architecture_arch", getText(lblArchitecture), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 0, "architecture_getmshtaBits", "getmshtaBits()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 1, "architecture_getArch", "getArch()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 2, "architecture_getArch6432", "getArch6432()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 3, "architecture_getBits", "getBits()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 4, "architecture_getArchName", "getArchName()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 5, "architecture_getArchNameString", "getArchNameString()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 6, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 7, "architecture_getNumProcs", "getNumProcs()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_arch", 8, "architecture_getArchMHz", "getArchMHz()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture", 2, "gcond_architecture_hardware", getText(lblHardware), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 0, "architecture_getBaseBoardManufacturer", "getBaseBoardManufacturer()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 1, "architecture_getBaseBoardModel", "getBaseBoardModel()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 2, "architecture_getVideoControllerID", "getVideoControllerID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 3, "architecture_getSoundDeviceID", "getSoundDeviceID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 4, "architecture_getNetworkAdapterID", "getNetworkAdapterID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 5, "architecture_getWirelessNetworkAdapterID", "getWirelessNetworkAdapterID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 6, "architecture_getModemID", "getModemID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 7, "architecture_getHDDControllerID", "getHDDControllerID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 8, "architecture_getCDROMID", "getCDROMID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 9, "architecture_getCDBurnerID", "getCDBurnerID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 10, "architecture_getCDBurnerName", "getCDBurnerName()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 11, "architecture_hasDVDROM", "hasDVDROM()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 12, "architecture_hasDVDBurner", "hasDVDBurner()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 13, "architecture_hasDVDDrive", "hasDVDDrive()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 14, "architecture_getKeyboardID", "getKeyboardID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 15, "architecture_getPointingDeviceID", "getPointingDeviceID()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_hardware", 99, "architecture_getSystemEnclosureType", "getSystemEnclosureType()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture", 3, "gcond_architecture_system", getText(lblSystem), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 0, "architecture_getSysManufacturer", "getSysManufacturer()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 1, "architecture_getSysModel", "getSysModel()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 2, "architecture_getSysPCType", "getSysPCType()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 3, "architecture_getSysType", "getSysType()", false, "", "");
    GrayedConditionsMenuBar.addNewSeparator("architecture_getSysType", 4);
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 5, "architecture_getFreeRAM", "getFreeRAM()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_system", 6, "architecture_getTotalRAM", "getTotalRAM()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture", 4, "gcond_architecture_bios", getText(lblBIOS), false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 0, "architecture_getBIOSManufacturer", "getBIOSManufacturer()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 1, "architecture_getBIOSVersion", "getBIOSVersion()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 2, "architecture_getSMBIOSVersion", "getSMBIOSVersion()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_architecture_bios", 3, "architecture_getBIOSCaption", "getBIOSCaption()", false, "", "");
    GrayedConditionsMenuBar.addNewSibling("gcond_architecture", "gcond_security", getText(lblSecurity), false);
    GrayedConditionsMenuBar.addNewChild("gcond_security", 0, "security_isLogOnServer", "isLogOnServer()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_security", 1, "security_isUserDomain", "isUserDomain()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_security", 2, "security_isComputerName", "isComputerName()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_security", 3, "security_isUserName", "isUserName()", false, "", "");
    GrayedConditionsMenuBar.addNewSeparator("security_isUserName", 4);
    GrayedConditionsMenuBar.addNewChild("gcond_security", 5, "security_getFirewallProduct", "getFirewallProduct()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_security", 6, "security_getAntiVirusProduct", "getAntiVirusProduct()", false, "", "");
    GrayedConditionsMenuBar.addNewSibling("gcond_security", "gcond_other", getText(lblOther), false);
    GrayedConditionsMenuBar.addNewChild("gcond_other", 0, "other_ConnectedToInternet", "ConnectedToInternet()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_other", 1, "other_isInstalled", "isInstalled()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_other", 2, "other_getIEver", "getIEver()", false, "", "");
    GrayedConditionsMenuBar.addNewChild("gcond_other", 3, "other_isDesktopLoaded", "isDesktopLoaded()", false, "", "");
    GrayedConditionsMenuBar.setOverflowHeight(6);
    }

    with


    function SetUpConditionMenuBar(menuId,whichCond,condHandler)
    {
    position="configwizard.js";
    whatfunc="SetUpConditionMenuBar()";

    var ConditionsMenuBar=new dhtmlXMenuObject(menuId,dhxSkin,true);
    ConditionsMenuBar.setImagePath("../common/codebase/imgs/");
    ConditionsMenuBar.setOpenMode("win");
    ConditionsMenuBar.attachEvent("onClick",condHandler);

    ConditionsMenuBar.addNewSibling(null, WhichCond + "_filesystem", getText(lblFileSystem), false);
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 0, WhichCond + "_filesystem_file", getText(lblFile), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 0, "filesystem_FileExists", "FileExists()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 1, "filesystem_getFileSize", "getFileSize()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 2, "filesystem_getFileType", "getFileType()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 3, "filesystem_getFileVersion", "getFileVersion()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_file", 4, "filesystem_fileVersionGreaterThan", "fileVersionGreaterThan()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 1, WhichCond + "_filesystem_folder", getText(lblFolder), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_folder", 0, "filesystem_FolderExists", "FolderExists()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_folder", 1, "filesystem_getFolderSize", "getFolderSize()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 2, WhichCond + "_filesystem_drive", getText(lblDrive), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 0, "filesystem_DriveExists", "DriveExists()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 1, "filesystem_DriveType", "DriveType()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 2, "filesystem_DriveVolumeName", "DriveVolumeName()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 3, "filesystem_DriveShareName", "DriveShareName()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 4, "filesystem_DriveFileSystem", "DriveFileSystem()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 5, "filesystem_DriveAvailableSpace", "DriveAvailableSpace()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem_drive", 6, "filesystem_DriveTotalSize", "DriveTotalSize()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 3, "filesystem_getComSpec", "getComSpec()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 4, "filesystem_getEnvVar", "getEnvVar()", false, "", "");
    ConditionsMenuBar.addNewSibling(WhichCond + "_filesystem", WhichCond + "_registry", getText(lblRegistry), false);
    ConditionsMenuBar.addNewChild(WhichCond + "_registry", 0, "registry_RegKeyExists", "RegKeyExists()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_registry", 1, "registry_RegValueExists", "RegValueExists()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_registry", 2, "registry_RegKeyValue", "RegKeyValue()", false, "", "");
    ConditionsMenuBar.addNewSibling(WhichCond + "_registry", WhichCond + "_architecture", getText(lblArchitecture), false);
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 0, WhichCond + "_architecture_os", getText(lblOperatingSystem), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 0, "architecture_getOSver", "getOSver()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 1, "architecture_getOSvernum", "getOSvernum()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 2, "architecture_getSPver", "getSPver()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 3, "architecture_getOSlang", "getOSlang()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_os", 4, "architecture_getOSlocale", "getOSlocale()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 1, WhichCond + "_architecture_arch", getText(lblArchitecture), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 0, "architecture_getmshtaBits", "getmshtaBits()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 1, "architecture_getArch", "getArch()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 2, "architecture_getArch6432", "getArch6432()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 3, "architecture_getBits", "getBits()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 4, "architecture_getArchName", "getArchName()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 5, "architecture_getArchNameString", "getArchNameString()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 6, "architecture_getArchIdentifier", "getArchIdentifier()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 7, "architecture_getNumProcs", "getNumProcs()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_arch", 8, "architecture_getArchMHz", "getArchMHz()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 2, WhichCond + "_architecture_hardware", getText(lblHardware), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 0, "architecture_getBaseBoardManufacturer", "getBaseBoardManufacturer()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 1, "architecture_getBaseBoardModel", "getBaseBoardModel()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 2, "architecture_getVideoControllerID", "getVideoControllerID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 3, "architecture_getSoundDeviceID", "getSoundDeviceID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 4, "architecture_getNetworkAdapterID", "getNetworkAdapterID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 5, "architecture_getWirelessNetworkAdapterID", "getWirelessNetworkAdapterID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 6, "architecture_getModemID", "getModemID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 7, "architecture_getHDDControllerID", "getHDDControllerID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 8, "architecture_getCDROMID", "getCDROMID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 9, "architecture_getCDBurnerID", "getCDBurnerID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 10, "architecture_getCDBurnerName", "getCDBurnerName()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 11, "architecture_hasDVDROM", "hasDVDROM()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 12, "architecture_hasDVDBurner", "hasDVDBurner()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 13, "architecture_hasDVDDrive", "hasDVDDrive()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 14, "architecture_getKeyboardID", "getKeyboardID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 15, "architecture_getPointingDeviceID", "getPointingDeviceID()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_hardware", 99, "architecture_getSystemEnclosureType", "getSystemEnclosureType()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 3, WhichCond + "_architecture_system", getText(lblSystem), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 0, "architecture_getSysManufacturer", "getSysManufacturer()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 1, "architecture_getSysModel", "getSysModel()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 2, "architecture_getSysPCType", "getSysPCType()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 3, "architecture_getSysType", "getSysType()", false, "", "");
    ConditionsMenuBar.addNewSeparator("architecture_getSysType", 4);
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 5, "architecture_getFreeRAM", "getFreeRAM()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_system", 6, "architecture_getTotalRAM", "getTotalRAM()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture", 4, WhichCond + "_architecture_bios", getText(lblBIOS), false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 0, "architecture_getBIOSManufacturer", "getBIOSManufacturer()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 1, "architecture_getBIOSVersion", "getBIOSVersion()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 2, "architecture_getSMBIOSVersion", "getSMBIOSVersion()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_architecture_bios", 3, "architecture_getBIOSCaption", "getBIOSCaption()", false, "", "");
    ConditionsMenuBar.addNewSibling(WhichCond + "_architecture", WhichCond + "_security", getText(lblSecurity), false);
    ConditionsMenuBar.addNewChild(WhichCond + "_security", 0, "security_isLogOnServer", "isLogOnServer()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_security", 1, "security_isUserDomain", "isUserDomain()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_security", 2, "security_isComputerName", "isComputerName()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_security", 3, "security_isUserName", "isUserName()", false, "", "");
    ConditionsMenuBar.addNewSeparator("security_isUserName", 4);
    ConditionsMenuBar.addNewChild(WhichCond + "_security", 5, "security_getFirewallProduct", "getFirewallProduct()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_security", 6, "security_getAntiVirusProduct", "getAntiVirusProduct()", false, "", "");
    ConditionsMenuBar.addNewSibling(WhichCond + "_security", WhichCond + "_other", getText(lblOther), false);
    ConditionsMenuBar.addNewChild(WhichCond + "_other", 0, "other_ConnectedToInternet", "ConnectedToInternet()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_other", 1, "other_isInstalled", "isInstalled()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_other", 2, "other_getIEver", "getIEver()", false, "", "");
    ConditionsMenuBar.addNewChild(WhichCond + "_other", 3, "other_isDesktopLoaded", "isDesktopLoaded()", false, "", "");
    ConditionsMenuBar.setOverflowHeight(6);
    }

    and replace


    function HandleConditionsSelectionMenu(val)
    {
    position="configwizard.js";
    whatfunc="HandleConditionsSelectionMenu()";

    var txt="";

    txt=document.getElementById(WhichCond).value;
    txt += val;
    document.getElementById(WhichCond).value=txt;

    ConfigUpdated();

    if (WhichCond=="cond")
    moveCaretToEnd(this.document.all.cond);
    else
    moveCaretToEnd(this.document.all.gcond);
    }

    with


    function HandleConditionsSelectionMenu(val)
    {
    position="configwizard.js";
    whatfunc="HandleConditionsSelectionMenu()";

    insertAtCaret(document.getElementById(WhichCond), val);

    ConfigUpdated();
    }



×
×
  • Create New...