Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

WPI 8.6 and beyond bug\bugfix thread

- - - - -

  • This topic is locked This topic is locked
142 replies to this topic

#51
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).


How to remove advertisement from MSFN

#52
Whatsup

Whatsup

    Junior

  • Member
  • Pip
  • 53 posts
  • Joined 11-February 10

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

#53
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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
Spoiler


Enjoy!


Edited by myselfidem, 05 April 2013 - 01:10 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#54
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,800 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag
LOL I guess you didn't like my shortened version for some reason?

Cheers and Regards

Posted Image


#55
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag

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.
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#56
Whatsup

Whatsup

    Junior

  • Member
  • Pip
  • 53 posts
  • Joined 11-February 10
Hoi..

Thx for compleet Timer.hta myselfidem.
Also thanks bphlpt.

Grt Whatsup

#57
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,800 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag

Let Kels make a choice for the next release!


That's very appropriate. :)

Cheers and Regards

Posted Image


#58
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,845 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
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, 05 April 2013 - 11:47 PM.


#59
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
The two codes works fine, Kels. Tested!

Thanks and Regards
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#60
gilles_gros

gilles_gros

    Newbie

  • Member
  • 13 posts
  • Joined 25-August 06
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.

#61
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 09 May 2013 - 04:34 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#62
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 18 May 2013 - 07:01 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#63
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,845 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
Just a quick bookmark to show I have the changes up to here added in.

Thank you guys

#64
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 23 May 2013 - 06:13 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#65
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 19 May 2013 - 11:48 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#66
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#67
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 20 May 2013 - 06:54 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#68
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developer
  • 8,845 posts
  • Joined 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
Got those.

#69
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 20 May 2013 - 02:41 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#70
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 21 May 2013 - 01:56 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#71
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 21 May 2013 - 11:57 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#72
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
Inside configwizard.js

To display this option, is missing line 453:

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

Thanks and regards
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#73
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag

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, 23 May 2013 - 06:14 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#74
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
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, 07 June 2013 - 02:47 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#75
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag
I think we can change inside updatewizard.js on line 47:

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

Thanks and regards

Edited by myselfidem, 23 May 2013 - 11:19 PM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users