• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Kelsenellenelvian

Languages, Themes, Manuals & Mods

185 posts in this topic

Coul you add inside globals.js (was on previous version):


// wmi.js
var OSProps, winMgts;

Because these variables are inside WPI_DiscChanger.htm (line 78)

Regards

*Edit: And could also change inside WPI_DiscChanger.htm the lines like Installer.hta and WPI.hta on top ?

from line 13


<script type="text/javascript">
document.write('<HTA:APPLICATION ID="oWPIDiscChanger"' +
' application="yes"' +
' singleInstance="yes"' +
' applicationName="Windows Post-Install Wizard Disc Changer"' +
' version="1.0"' +
' icon=""' +
' border="dialog"' +
' borderStyle="normal"' +
' innerBorder="no"' +
' caption="yes"' +
' sysMenu="no"' +
' contextMenu="no"' +
' minimizeButton="no"' +
' maximizeButton="no"' +
' navigable="yes"' +
' scroll="no"' +
' scrollFlat="no"' +
' selection="no"' +
' showInTaskBar="no"' +
' windowState="normal"' +
' />');
</script>

Thanks to check if it's OK!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

About Fonts, there was a script inside previous version inside WPI.hta: (example WPI 7.5.0 on line 387)


<script type="text/javascript">
var args="";

if (InstallFonts)
{
installFontsFromFolder(fontDir);
}
</script>

Regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Edited by jinkazama

Edited by jinkazama
0

Share this post


Link to post
Share on other sites

......................

Edited by Kelsenellenelvian
0

Share this post


Link to post
Share on other sites

This solution works only on older versions, in 8.6.3 WPI.hta no longer exists...

0

Share this post


Link to post
Share on other sites

Look inside .\WPI\Common\WPI.hta ! ;)

The method of execution is different, but there is still wpi.hta !

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Many thanks Kels for the new release WPI v8.6.4

To display properly the slider (on the right of the window) inside the tab changelog, it's needed to change inside ChangeLog.txt (on line 15) <nobr> with 'nobr' (for example).

Also inside aboutwpi_changelog.htm

On line 9 missing: </div>

Inside aboutwpitemplate_links.htm

On line 9 missing: </div>

Inside aboutwpitemplate_version.htm

On lines 35 and 60 are missing: </div>

Inside updatewpi.htm

On line 90 is missing: </a>

Inside informationtemplate_readme.htm

On line 9 missing: </div>

Thanks and regards

*Edit:

Seems missing inside configwizardtemplate_createshortcut.htm

On line 21: </td>

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Could we add inside the Manual:


Comparison operators

=== Identical (equal and of the same type)

We can see this one inside (for example): json_parse.js (from line 114)

Regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

French Manual updated:

Regards

*Edit: given

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

I see a strange behaviour using Theme\Tooltips !

This was already the case before and it's not an issue!

Sometimes the right pane move to the left when we select a path to choose an image (or using other options) inside the window.

I think this happens when we make changes using some font size !

Regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Fontinstaller is now fixed and there is a ton of internal fixes for the next release. (Still supporter only)

0

Share this post


Link to post
Share on other sites

Very nice! :)

The trouble about the slight leftward movement of the window seems solved writing all lines inside lang_fr.js like lang_en.js !

(line numbers strictly similar and text corresponding (order))

lang_fr.js file updated:

Thanks and regards

*Edit: given

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

However, it seems to solve the little slight leftward movement it's needed also to change inside:

themewizardtemplate_tooltips.htm

Move </div> to line 503 and </div> to line 525 like this:

<div id="TextPaddingValue" class="opTxt" style="width:3em;"></div>

<div id="TransparencyValue" class="opTxt" style="width:3em;"></div>

Thanks and regards

*Edit:

Move </div> to line 10 inside aboutwpitemplate_changelog.htm

<div id="ChangeLog" class="opTxt" style="width:100%; height:225px; overflow:auto;"></div>

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

About icon inside WPI Installer, I suggest as test to try to change inside the file, to display the wpi.ico:

Installer.hta change:


<script type="text/javascript">
document.write('<script type="text/javascript"' +
('<HTA:APPLICATION ID="oWPI_Installer"' +
' application="yes"' +
' singleInstance="yes"' +
' applicationName="Windows Post-Install Wizard Installer"' +
' version="'+ShortVersion+'"' +
' icon=""' +
' border="dialog"' +
' borderStyle="normal"' +
' innerBorder="no"' +
' caption="yes"' +
' sysMenu="no"' +
' contextMenu="no"' +
' minimizeButton="no"' +
' maximizeButton="no"' +
' navigable="yes"' +
' scroll="no"' +
' scrollFlat="no"' +
' selection="no"' +
' showInTaskBar="yes"' +
' windowState="normal"' +
' />') +
' </' + 'script>');
</script>

Icon used downloading the Avatar.png on the web site (changing to WPI.ico with GIMP):

Installer window

Tested and works fine!

The icon will be fixed inside Installer and it seems start is faster !

Thanks to check if it's OK.

Regards

WPI Installer icon

*Edit: french manual updated (added Comparison operator ===)

http://www.mediafire.com/#6696bficr91ar

*Edit: script updated

*Edit2: However, the window Installer can be resized using the script above!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Had the language file been updated? Send me please English lang file in PM and i'll update Ukrainian one.

0

Share this post


Link to post
Share on other sites

I would suggest to add "function getProductKey" inside WPI to know the Windows key!

I found the code here (at the bottom of the web page):

JS/VB Product Key Viewer (THANK YOU RPGFAN!)

1 - Adding inside wmi.js (from line 349); [or maybe inside core.js and wmi.js ?] :


function getProductKey()
{
position="wmi.js";
whatfunc="getProductKey()"; // Thanks to TheTeenScripter

var shell = new ActiveXObject("WScript.shell");
var DigiProdId = shell.RegRead("HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion\\DigitalProductId");
DigiProdId = DigiProdId.toArray();

var binaryKey = new Array();
for(i=52;i<67;i++)
{
binaryKey[binaryKey.length] = DigiProdId[i];
}
var digits = new Array('B','C','D','F','G','H','J','K','M','P','Q','R','T','V','W','X','Y','2','3','4','6','7','8','9');
var decodedKey = new Array(); // Will be 25 characters at the end

for (var i = 24; i >= 0; i--) {
var k = 0;
for (var j = binaryKey.length - 1; j >= 0; j--) {
k = (k << 8) + binaryKey[j];
binaryKey[j] = (k / 24) & 255; //The "& 255" converts the
k %= 24; //value to a byte.
}
decodedKey.unshift(digits[k]);
}
var ProductKey = "";
for(i=0;i<decodedKey.length;i++)
{
ProductKey += decodedKey[i];
if(Math.floor((i+1)/5) == (i+1)/5 && i != decodedKey.length-1)
{
ProductKey += "-";
}
}
return ProductKey;
}

2 - Inside information.js (line 119):

MyComputerGrid.addRow(gId++,getText(lblProductKey)+','+getProductKey()+'');

3 - Inside global_lang.js (line 321):

var lblProductKey=[];

4 - Inside global.js (line 198):

var SystemEnclosureType, ProductKey;

5 - Inside lang_en.js (at the bottom: line 1102)

lblProductKey[lang]              = ['Product Key'];

On line 1100 inside lang_en.js (missing ; at last):

lblNumberOfCores[lang]          = ['Number Of Cores']; 

Tested and works fine!

Thanks and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

As previously made by Francesco, we can fix a bug using Dependencies (adding a blank line):

http://www.msfn.org/...mmand-selected/

Adding inside configwizard.js on line 833:


if ((document.getElementById("uid").disabled) || (document.getElementById("cmd1").disabled))
Alert("",getText(txtMustAddCommand),"",3,-1,0,0);;

The alert box will appear now (and no more text on the top-left window !)

Tested and works fine! Thanks to check if it's OK.

Regards

Alert Box Dependencies Image

Maybe it would be useful to change also the message box and add (for example):

lang_en.js (line 972):

txtMustAddCommand[lang] = ['You must add a program name (UID) and also a command entry through the \'Add\' button before being able to perform this opreation'];

Regards

*Edit: post updated

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Bug Fix about Downloading files with WPI using Windows 7 or Windows 8:

Manage BITS (Background Intelligent Transfer Service) with Windows PowerShell

Using Windows PowerShell to Create BITS Transfer Jobs (Windows)

Previous versions of Windows provided command-line management of BITS using the BITSAdmin.exe tool. In Windows 7, BITSAdmin.exe is deprecated. Instead, you should use the Windows PowerShell cmdlets.

To download successfully ({DOWNLOAD}) a file from Internet using Windows 7 or Windows 8, we must add some changes inside installer.js:

From line 1338 we can add:


if (getOSver()=="Win7" || getOSver()=="Win8")
cmdLine='Powershell Start-BitsTransfer -Source '+URL+' -Destination "%TEMP%\\'+Filename+'" -TransferType Download';
fsoCmd=true;

if (getOSver()=="2K" || getOSver()=="XP" || getOSver()=="Vista")

Tested successfully:

http://www.msfn.org/...ost__p__1028736

Thanks and regards

*Edit: post and command updated!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

@Kels

What do you think about adding some useful infos inside wpi.css to customize Theme, like this:

wpi.css (partial infos):



.navTxt /* text icons on the left: Options, Configuration... */
{
font-family: tahoma;
font-weight: bold;
color: #ffffff;
font-size: 16pt;
}

.timerHeader /* text over the counter */
{
font-family: arial;
color: #ffffff;
font-weight: bold;
font-style: normal;
font-size: 10pt;
}

.timer /* digital counter */
{
font-family: arial;
color: #ffffff;
font-weight: bold;
font-style: normal;
font-size: 24pt;
}

Thanks and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

line 173 replaced with its true meaning.. also I began to translate manual for Turkish, hope I translate it as soon as possible.

lang_tr.js

0

Share this post


Link to post
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.