Jump to content

WPI v8.7.2-v8.7.3 Windows 10 support-modded


Recommended Posts

 

If someone want to test wpi on windows 10...here what you need to edit:

installer.js from WPIScripts, line 1400, replace with

   if (getOSver() == "Win7" || getOSver() == "Win8" || getOSver() == "Win8.1" || getOSver() == "Win10")

 

core.js, line 583, replace with

 

   if (getOSver() == "XP" || getOSver() == "Vista" || getOSver() == "Win7" || getOSver() == "Win8" || getOSver() == "Win8.1" || getOSver() == "Win10")

wmi.js

line 71, add this

        if      (Caption.indexOf("10")    != -1) { szOSVerCache = "Win10";  szEditionIDCache = getOSsku(OSSKU); }



and change

        if      (Caption.indexOf("8.1")    != -1) { szOSVerCache = "Win8.1";  szEditionIDCache = getOSsku(OSSKU); }

to

        else if (Caption.indexOf("8.1")   != -1) { szOSVerCache = "Win8.1"; szEditionIDCache = getOSsku(OSSKU); } 

configwizard.js

line 779, replace with

    HandleCommandsSelectionMenu("{OS=Win10 || Win8.1 || Win8 || Win7 || Vista || XP || 2K} "); 

 

Tips:

Because of the same OSSKU with another windows WPI will show Edition ID (Information-->My Computer) as:

- Pro Edition for Windows 10 PRO  (OSSKU 48)
- 8 Core Edition for Windows 10 Home (OSSKU 101)

Edited by condor
added v8.7.3
Link to comment
Share on other sites


  • 3 weeks later...
  • 1 month later...

The information is all in this thread. Granted, yes the info is for v8.7.2 not 8.7.3 but if you follow and read whats there and use your eyes to look for a line if the line number isn't right you'll get it.

Your hand can only be held so much and remember WPI does not officially and will not officially support win 10.

Link to comment
Share on other sites

  • 1 month later...

Unofficial WPI v8.7.2 with Windows 10 support

Download

- I added the above changes
- this line:

if      (Caption.indexOf("10")    != -1) { szOSVerCache = "Win10";  szEditionIDCache = getOSsku(OSSKU); }


was changed to:

if      (Caption.indexOf("10")    != -1) { szOSVerCache = "Win10";  szEditionIDCache = getXOSsku(OSSKU); }


- added new function to show correctly ID Caption for Windows 10.

Spoiler

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

   var OSSKU = "Not found";

   switch (sku)
   {
      case 0 :
         OSSKU = "Not found";
         break;

      case 4 :
         OSSKU = "Windows 10 Enterprise";
         break;

      case 27 :
         OSSKU = "Windows 10 Enterprise N";
         break;

      case 48 :
         OSSKU = "Windows 10 Pro";
         break;

      case 49 :
         OSSKU = "Windows 10 Pro N";
         break;

      case 98 :
         OSSKU = "Windows 10 Home N";
         break;

      case 100 :
         OSSKU = "Windows 10 Home Single Language";
         break;

      case 101 :
         OSSKU = "Windows 10 Home";
         break;

      case 121 :
         OSSKU = "Windows 10 Education";
         break;

      case 122 :
         OSSKU = "Windows 10 Education N";
         break;

      case 125 :
         OSSKU = "Windows 10 Enterprise 2016 LTSB";
         break;

      case 126 :
         OSSKU = "Windows 10 Enterprise N 2016 LTSB";
         break;         

   }

   return OSSKU;
}


PS:

- if @Kelsenellenelvian don`t want this modified version here, a mod can delete this post.
- happy testing.

Edited by condor
Link updated
Link to comment
Share on other sites

On 12/22/2016 at 9:26 AM, condor said:

Unofficial WPI v8.7.2 with Windows 10 support

Download

- I added the above changes
- this line:


if      (Caption.indexOf("10")    != -1) { szOSVerCache = "Win10";  szEditionIDCache = getOSsku(OSSKU); }


was changed to:


if      (Caption.indexOf("10")    != -1) { szOSVerCache = "Win10";  szEditionIDCache = getXOSsku(OSSKU); }


- added new function to show correctly ID Caption for Windows 10.

  Reveal hidden contents

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

   var OSSKU = "Not found";

   switch (sku)
   {
      case 0 :
         OSSKU = "Not found";
         break;

      case 4 :
         OSSKU = "Windows 10 Enterprise";
         break;

      case 27 :
         OSSKU = "Windows 10 Enterprise N";
         break;

      case 48 :
         OSSKU = "Windows 10 Pro";
         break;

      case 49 :
         OSSKU = "Windows 10 Pro N";
         break;

      case 98 :
         OSSKU = "Windows 10 Home N";
         break;

      case 100 :
         OSSKU = "Windows 10 Home Single Language";
         break;

      case 101 :
         OSSKU = "Windows 10 Home";
         break;

      case 121 :
         OSSKU = "Windows 10 Education";
         break;

      case 122 :
         OSSKU = "Windows 10 Education N";
         break;

      case 125 :
         OSSKU = "Windows 10 Enterprise 2016 LTSB";
         break;

      case 126 :
         OSSKU = "Windows 10 Enterprise N 2016 LTSB";
         break;         

   }

   return OSSKU;
}


PS:

- if @Kelsenellenelvian don`t want this modified version here, a mod can delete this post.
- happy testing.

The only request I have is that you post a modded version of 8.7.3 also please.

Link to comment
Share on other sites

I modded 8.7.2, because when I test to install some apps using 8.7.3 (on Win7) I waited too much, so I return to 8.7.2 :)

On 8.7.3 are only 3 files to do changes:  configwizard.js (line 779), core.js (line 582), wmi.js (line 72)

WPI 8.7.2 & WPI 8.7.3

Edited by condor
Link updated
Link to comment
Share on other sites

  • 3 years later...
  • 10 months later...
  • 9 months later...
  • 6 months later...
  • 3 months later...
On 2/19/2020 at 8:59 PM, ricktendo said:

Is it possible to mod WPIW to look better on high DPI resolutions?

I have had no luck trying to solve that either.  If you discover any solutions, please post them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...