• 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

WPI 8.6 and beyond bug\bugfix thread

143 posts in this topic

Inside WPI.hta I see this registry key isn't written inside the registry:

WriteRegKey("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Download\\RunInvalidSignatures","dword:00000001","REG_DWORD");

1 - The value must be changed inside WPI.hta to (line 116):

WriteRegKey("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Download\\RunInvalidSignatures",1,"REG_DWORD");

2 - And to restore the default value, add inside core.js (line 563):

WriteRegKey("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Download\\RunInvalidSignatures",0,"REG_DWORD");

Regards

0

Share this post


Link to post
Share on other sites

I use this workaround to display the timer inside Installer.hta:

Inside timers.js

Replace function ins_iTimer() with:

Tested and works fine for me! Thanks to share your result!

*Edit: I spent days and days to find this workaround!

Wow thx..yes it works..did small test,and timer running nice en smooth.

I search oc to...but ****@#&%$#^^ nothing seems to help.(i'm no scripter).

but you did it!!!!

Very nice found men.thx

Grt Whatsup

0

Share this post


Link to post
Share on other sites

Thanks Watsup! ;)

Some help found here:

http://inst.eecs.ber...su02/hw/js5.htm

Test: we can save the file as HTA and launch it!

Timer.hta


<HTML>
<HEAD>
<TITLE>JavaScript Timer</TITLE>

<script LANGUAGE="JavaScript">
<!-- Beginning of JavaScript --------

var timerID=null;
var startDate;
var startSecs;

function startclock()
{
startDate=new Date();
startSecs=(startDate.getHours()*60*60) + (startDate.getMinutes()*60) + startDate.getSeconds();
showtime();
}
/* -------------------------------------------------
showtime()
Puts the amount of time that has passed since
loading the page into the field named timerField in
the form named timeForm
------------------------------------------------ */
function showtime()
{
// this doesn't work correctly at midnight...

var now=new Date();
var nowSecs=(now.getHours()*60*60) + (now.getMinutes()*60) + now.getSeconds();
var elapsedSecs=nowSecs - startSecs;

var hours=Math.floor(elapsedSecs/3600);
elapsedSecs=elapsedSecs - (hours*3600);

var minutes=Math.floor(elapsedSecs/60);
elapsedSecs=elapsedSecs - (minutes*60);

var seconds=elapsedSecs;

var timeValue="" + hours;
timeValue +=((minutes < 10) ? ":0" : ":") + minutes;
timeValue +=((seconds < 10) ? ":0" : ":") + seconds;

// Update display
document.timerForm.timerField.value=timeValue;
timerID = setTimeout("showtime()",1000);
}
// -- End of JavaScript code -------------- -->
</SCRIPT>
<META HTTP-EQUIV="Refresh" CONTENT="3600; URL=AA.html">
</HEAD>
<BODY onLoad="startclock()" BGCOLOR="#cccccc" TEXT="#000000"
LINK="#336699" VLINK="#666666" ALINK="#FF9933">

<FORM NAME="timerForm">
<FONT FACE="Arial,Helvetica" SIZE="-1"><B>You have a total of 60 minutes to complete this test. Time spent so far: </FONT>
<INPUT TYPE="text" NAME="timerField" SIZE=10 VALUE ="">
</FORM>

</HTML>

Enjoy!

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

LOL I guess you didn't like my shortened version for some reason?

Cheers and Regards

0

Share this post


Link to post
Share on other sites

LOL I guess you didn't like my shortened version for some reason?

Cheers and Regards

Thanks bphlpt for your input! :)

Let Kels make a choice for the next release!

Cheers and regards.

0

Share this post


Link to post
Share on other sites

Hoi..

Thx for compleet Timer.hta myselfidem.

Also thanks bphlpt.

Grt Whatsup

0

Share this post


Link to post
Share on other sites
Let Kels make a choice for the next release!

That's very appropriate. :)

Cheers and Regards

0

Share this post


Link to post
Share on other sites

I am fine with either if the code works on both.

Personally I would go with the cleaner version.

@ myselfidem thank you for your fix and mod

@ bphlpt thank you for cleaning myselfidem's code up a bit.

Edited by Kelsenellenelvian
0

Share this post


Link to post
Share on other sites

The two codes works fine, Kels. Tested!

Thanks and Regards

0

Share this post


Link to post
Share on other sites

Hi all,

After posting on wincert a fix for my usage, I propose you the following change.

I was willing to use an IF statement as a cmd iun WPI. And it did not work.

cmds[pn]=[' "%wpipath%\\PathToExe\\MainExe.exe" /s /v/qn',
'{CMD} IF EXIST "%wpipath%\\PathToExe\\ExeFile.exe" start "Title" /WAIT "%wpipath%\\PathToExe\\ExeFile.exe" /s /v/qn'];
cond[pn]=['FileExists("%wpipath%\\PathToExe\\MainExe.exe")'];

I track done a change in installer.js (on line 1080 WPI 8.6.3)

case 'CMD': 
cmd="CMD /C " + cmd;
fsoCmd=true;
break;

As added by myselfidem, to add the possibility to choose the CMD command in WPI menu, the following changes are needed in configwizard.js

on line 363:

CommandsMenuBar.addNewChild("cmd_dos2", 11, "dos_cmd", "Cmd", false, "", "");

on line 632:

case 'dos_cmd':
HandleCommandsSelectionMenu("{CMD} ");
break;

Regards.

0

Share this post


Link to post
Share on other sites

Thanks gilles_gros !

Inside configwizard.js we can add OS 2K:


case 'cmd_cond_operatingsystem':
HandleCommandsSelectionMenu("{OS=Win8,Win7,Vista,XP,2K} ");
break;

Cheers and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

It seems there is a little typo error inside optionswizard.js (on line: 1966)

tf.WriteLine("ExecuteBeforebit4="+ExecuteBeforebit64+";");

Change to:

tf.WriteLine("ExecuteBeforebit64="+ExecuteBeforebit64+";");

Regards

*Edit: Maybe we can change also inside optionswizard.js (lines: 1895 and 2038)

tf.WriteLine("// WPI Options 8.0.0");

Change to:

tf.WriteLine("// WPI Options 8.1.0");

*Edit2: We can change also inside configwizard.js (on line: 3118)

Change to:

tf.WriteLine("// WPI Config 8.1.0");

Inside networkwizard.js (on line: 2087)

Change to:

tf.WriteLine("// WPI Config 8.1.0");

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Just a quick bookmark to show I have the changes up to here added in.

Thank you guys

0

Share this post


Link to post
Share on other sites

Thanks Kels!

Inside installer.js (on line: 1382)

The registry value need to be changed:

WriteRegKey("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoLogonCount",Count,"REG_SZ");

Change to:

WriteRegKey("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoLogonCount",Count,"REG_DWORD");

Thanks and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Inside globals.js we can read (on line 444):

// alert.js

var alertSound="%wpipath%\\Audio\\SoundsScheme\\Windows Exclamation.wav";

But the sound is missing inside WPI_v8.6.6, and we can find this one on previous WPI_v7.5.0

Or we can change the path to an existing sound inside globals.js:

var alertSound="%wpipath%\\Audio\\SoundsScheme\\Warning.wav";

Thanks and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Inside jscript.js little typo errors on lines: 350 to 353; 370 and 371:

HKEY_LOCAL_MACHIBE

Key for AutoAdminLogon on line 353 and line 371:

WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoAdminLogon",1,"REG_SZ");

WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoAdminLogon",0,"REG_SZ");

Thanks and regards

0

Share this post


Link to post
Share on other sites

Inside installer.js it seems it's missing some values:

Line 1252:

function ClearProgressBar()
{
position="installer.js";
whatfunc="ClearProgressBar()";

Line 1265:

function UpdateProgressBar(value)
{
position="installer.js";
whatfunc="UpdateProgressBar()";

Thanks to check if it's OK.

Thanks and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Inside installer.js it seems is missing this function (like written on previous WPI_v8.2.0):

function CheckPendingFileRenameOperations()

Thanks and regards

*Edit: Oops...Sorry, I see this function is already in wmi.js ! :)

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Inside core.js, I think we can remove: function getProductKey()

Because this one is already inside wmi.js

Thanks to check if it's OK.

Regards

*Edit: Inside WPI.hta (on line: 117), a little typo error

.cmd is witten twice:

WriteRegKey("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Associations\\LowRiskFileTypes", .....

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Inside installer_log.js are missing :

// Sounds tab


WriteLogLinePlain(" SndInstallWarningCB=" + SndInstallWarningCB);
WriteLogLinePlain(" SndInstallWarning=['" + SndInstallWarning + "'];");
WriteLogLinePlain(" SndWPIExitCB=" + SndWPIExitCB);
WriteLogLinePlain(" SndWPIExit=['" + SndWPIExit + "'];");

Inside globals.js we can remove the lines; because the file update.js no longer exits:


// update.js
var UpdateVersion, UpdateLink, UpdateMD5, UpdateTitle, UpdateNotes;
var UpdateAvailable;

Thanks and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

Inside configwizard.js

To display this option, is missing line 453:

ConditionsMenuBar.addNewChild(WhichCond + "_filesystem", 5, "filesystem_setEnvVar", "setEnvVar()", false, "", ""); 

Thanks and regards

0

Share this post


Link to post
Share on other sites

Thanks Kels!

Inside installer.js (on line: 1382)

The registry value need to be changed:

WriteRegKey("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoLogonCount",Count,"REG_SZ");

Change to:

WriteRegKey("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoLogonCount",Count,"REG_DWORD");

Inside wmi.js it's also needed to change the registry key on line: 1640 to:

WriteRegKey("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\AutoLogonCount",count,"REG_DWORD");

Thanks to check if it's OK!

Regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

About Fonts, I think we can remove this function inside registry_dos.js:

function installFontsFromFile(filename)

And remove the line 594:

if (thisFile.name != fontList)

And inside globals.js change the line (188) to:


// registry_dos.js
...
var fontDir;

Works fine for me!

Thanks to check if it's OK!

Regards

*Edit: It seems that solved a strange creation file on: C:\Windows.

See the image here:

Image Strange File Created

Edited by myselfidem
0

Share this post


Link to post
Share on other sites

I think we can change inside updatewizard.js on line 47:

tf.WriteLine("// WPI Config 8.1.0");

Thanks and regards

Edited by myselfidem
0

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.