MSFN Forum: WPI v8.1.0 Bug Report Thread - MSFN Forum

Jump to content


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

WPI v8.1.0 Bug Report Thread Rate Topic: -----

#1 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,322
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 August 2010 - 11:56 PM

Please paste them here!


#2 User is offline   1to1 

  • Junior
  • Pip
  • Group: Members
  • Posts: 76
  • Joined: 22-February 05

Posted 25 August 2010 - 09:24 AM

Hi Kels.

I tried to download the new version but my internet security (kis) warn me there is Trojans in the file,
can you check it out.

thanks.

#3 User is online   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,322
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 August 2010 - 05:57 PM

It is a false report.

http://www.virustota...ed99-1282783791

See the virus total report.

This post has been edited by Kelsenellenelvian: 25 August 2010 - 06:51 PM


#4 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 August 2010 - 12:24 PM

Hi.

I am noticing that ExecuteCommandIfFailure does not always run.

From useroptions.js (and also indicated in the log file):

AbortInstallIfFailure=true;
ExecuteCommandIfFailure=['"%wpipath%\\Install\\MyApplication.exe" param1 "%wpipath%\\Install\\MyLibrary.dll" param2 param3 "param4" "" "" "param5" "admin@domain.com" "param 6 param-param-param" "param 7 param-param-param" "param8"'];
ContinueWhereFailed=true;

From wpi log:

-----

Friday, August 27, 2010 1:24:11 AM
Program: My Program Name
Unique ID: MyProgramName
Order: 900042
Category: Applications
Friday, August 27, 2010 1:24:13 AM - cmd1 *** Fail *** (returned code 1): cmd /c d:\WPI\install\MyApplication.exe param1 "d:\WPI\install\MyLibrary.dll" param2.param.param param3 "param4" "param5"


*** Install aborted because of failure ***

-----

Number of failed installations: 1

Install process finished at: Friday, August 27, 2010 1:24:13 AM


I am thinking we should include the ExecuteCommandIfFailure command in the log file when it is run so that we can diagnose any issues that may arise.

Thank you.

#5 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,090
  • Joined: 13-November 05

Posted 29 August 2010 - 06:37 PM

@icnocop: I will add it to the next version. I don't know why I didn't do it in the first place.

#6 User is offline   document 

  • Group: Members
  • Posts: 1
  • Joined: 08-September 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 September 2010 - 03:15 PM

I think you should pay attention to the correctness of the mapping the themes in the main window, namely, his left side, where there is a menu configuration and setup, I do not know for what but in this new version 8.1.0 when you hover the mouse - they (the labels and pictures) all flash, disappear and appear - it did not bearable, I think you should not be hard fix up couple of scripts. Thanks, really waiting to a stable version. P.S. - such as that

#7 User is offline   DJPro 

  • Member
  • PipPip
  • Group: Members
  • Posts: 115
  • Joined: 15-June 05

Posted 08 September 2010 - 04:30 PM

@ Document

We are aware about this flashing issue!

Link

If you have a solution we d' like to hear it.

We're searching, Greetz

This post has been edited by DJPro: 08 September 2010 - 04:31 PM


#8 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 September 2010 - 12:19 AM

Hello again,

I am noticing that wpi v8.1.0 will sometimes skip the first command from the cmds array.

section from config.js:

pn++;
prog[pn]=['Program Name'];
shortdesc[pn]=[''];
uid[pn]=['ProgramName'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
rebootcode[pn]=[3010];
repeatcommand[pn]=['yes'];
cmds[pn]=['cmd /c %wpipath%\\install\\MyApplication.exe param1 "%wpipath%\\install\\MyLibrary.dll" param2 param3 "param4" "param5"','{reboot}'];
desc[pn]=['Program Name'];
picf[pn]=['%wpipath%\\Graphics\\InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Right'];


section from wpi_log:

-----

Friday, September 17, 2010 9:28:38 PM
Program: Program Name
Unique ID: ProgramName
Order: 900007
Category: Applications
Friday, September 17, 2010 9:31:37 PM - cmd2 Success (returned code 0): "C:\Windows\System32\shutdown.exe" /r /f /t 0
Friday, September 17, 2010 9:33:16 PM - Finished installation.

-----

Notice that cmd1 was not run.

Any ideas?

This is on Windows 7 x64 with UAC turned off.

Thank you.

#9 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,090
  • Joined: 13-November 05

Posted 18 September 2010 - 11:12 AM

I have never had that problem and no else has mentioned it. Will keep an eye on it.

#10 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 September 2010 - 07:53 PM

I did some more testing\debugging and it seems that wpi will sometimes continue running the next command when it should have waited for the previous reboot request to completely finish.

section from config.js:

pn++;
prog[pn]=['Program Name 1'];
shortdesc[pn]=[''];
uid[pn]=['ProgramName1'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
rebootcode[pn]=[3010];
repeatcommand[pn]=['yes'];
cmds[pn]=['%wpipath%\\install\\ProgramName1.exe params','{reboot}'];
desc[pn]=['Program Name 1'];
picf[pn]=['%wpipath%\\Graphics\\InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Right'];
pn++;
prog[pn]=['Program Name 2'];
shortdesc[pn]=[''];
uid[pn]=['ProgramName2'];
dflt[pn]=['yes'];
forc[pn]=['no'];
bit64[pn]=['no'];
cat[pn]=['Applications'];
rebootcode[pn]=[3010];
repeatcommand[pn]=['yes'];
cmds[pn]=['%wpipath%\\install\\ProgramName2.exe params','{reboot}'];
desc[pn]=['Program Name 2'];
picf[pn]=['%wpipath%\\Graphics\\InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Right'];

section from wpi_log (after modifying installer.js to output some debug information):

-----

Monday, September 20, 2010 3:25:06 PM
Program: Program Name 1
Unique ID: ProgramName1
Order: 900006
Category: Applications
Monday, September 20, 2010 3:25:06 PM - j starts as 1
Monday, September 20, 2010 3:25:06 PM - commands length 3
Monday, September 20, 2010 3:25:06 PM - command 1
Monday, September 20, 2010 4:05:59 PM - cmd1 Success (returned code 0): d:\WPI\install\ProgramName1.exe params
Monday, September 20, 2010 4:06:00 PM - command 2
Monday, September 20, 2010 4:06:04 PM - cmd2 Success (returned code 0): "C:\Windows\System32\shutdown.exe" /r /f /t 0
Monday, September 20, 2010 4:06:10 PM - Finished installation.

-----

Monday, September 20, 2010 4:06:10 PM
Program: Program Name 2
Unique ID: ProgramName2
Order: 900007
Category: Applications
Monday, September 20, 2010 4:06:11 PM - j starts as 1
Monday, September 20, 2010 4:06:11 PM - commands length 3
Monday, September 20, 2010 4:06:11 PM - command 1
Monday, September 20, 2010 4:06:11 PM - cmd1 *** Fail *** (returned code -1073741502): d:\WPI\install\ProgramName2.exe params
Monday, September 20, 2010 4:09:16 PM - j starts as 2
Monday, September 20, 2010 4:09:16 PM - commands length 3
Monday, September 20, 2010 4:09:16 PM - command 2
Monday, September 20, 2010 4:09:17 PM - cmd2 Success (returned code 0): "C:\Windows\System32\shutdown.exe" /r /f /t 0
Monday, September 20, 2010 4:10:43 PM - j starts as 3
Monday, September 20, 2010 4:10:43 PM - commands length 3
Monday, September 20, 2010 4:10:43 PM - Finished installation.

-----

Notice the date and time stamps between ProgramName1.cmd2 and ProgramName2.cmd1 - wpi did not properly wait for the previous reboot request to finish before moving to the next command.

Notice the returned code -1073741502, 0xC0000142, STATUS_DLL_INIT_FAILED, "{DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally.".

I am thinking that windows blocked the running of .\wpi\Tools\Sleep.exe because there is a shutdown request, and this caused wpi to continue processing the next command without properly waiting.

This would also explain the return code -1073741502 and could also explain the previous wpi log file contents where it skipped cmd1 because windows probably killed mshta.exe before wpi could write to the log file, but after wpi tried to run the command.

I am thinking that this issue can be resolved by using a native javascript method to sleep rather than launching an executable for example.

Windows 7 x64.

What do you think?

Thank you.

#11 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,090
  • Joined: 13-November 05

Posted 21 September 2010 - 10:18 AM

There is no JavaScript sleep command. That is why I have to use Sleep.exe.

Your results make sense. Now the real question is: how do I fix it?

#12 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 September 2010 - 11:06 PM

Can jquery 1.4 be used?
http://api.jquery.com/delay/

Or JavaScript's setTimeout?
https://developer.mo...ndow.setTimeout

Or a while loop like this (from http://www.geekpedia...(sleep-or-delay).html):
function wait(msecs)
{
var start = new Date().getTime();
var cur = start
while(cur - start < msecs)
{
cur = new Date().getTime();
}
}

to use:

alert(\"Will wait for one second\");
wait(1000);
alert(\"Finished waiting\");

#13 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 September 2010 - 03:20 PM

See also,
WScript.Sleep
http://msdn.microsof...28VS.85%29.aspx

Edit: Sorry, actually the WScript object is not available because hta's are run from mshta.exe and not from wscript.exe (See http://www.eggheadca...criptsleep.aspx)

This post has been edited by icnocop: 22 September 2010 - 03:26 PM


#14 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 September 2010 - 03:28 PM

Maybe this will help:
"Two Javascript synchronous sleep functions which won't freeze browser"
http://sejq.blogspot...nous-sleep.html
The first work-around is for ie and so that may work.

#15 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 September 2010 - 04:24 PM

Another option is to use an ActiveX control, similar to the Java Applet/Flash example here:
http://www.devcheater.com/

#16 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 September 2010 - 04:16 PM

Ok, I found a great post here:
http://www.ureader.c...sg/1675551.aspx

It mentions using Sleep methods in the following free ActiveX components:
ScriptX from Meadroid
AutoItX from AutoIt

But most importantly, it also links to a hack detailed here:
http://forum.script-...id=29243#p29243

I have actually test the hack and it works great and is my best recommendation so wpi doesn't have to register any com dlls and use another third party utility.

:))

This post has been edited by icnocop: 26 September 2010 - 04:16 PM


#17 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,090
  • Joined: 13-November 05

Posted 27 September 2010 - 11:36 AM

I did a quick test (maybe too quick) but all I get is an open hta window. Send me what you use. Maybe it was something in the translation that got "lost" in my text editor.

#18 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 September 2010 - 12:27 PM

Attached sample hta sleep test.

Attached File(s)



#19 User is offline   mondojose 

  • Group: Members
  • Posts: 4
  • Joined: 03-September 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 September 2010 - 08:45 PM

Hello everyone! I have a problem with W.P.I. v8.1.0, the keys start installation, configuration, options, have problems when you go over with the mouse, they can not seem to recognize the presence of the pointer. There is a solution to this problem? Using the theme 7Matrix, I changed a few pictures, but the problem is the same. I suggest that "space control" is smaller than the image of the button, but I have not found solution to this. Thank you all for the work you do. Forgive my English, I use a web translator.

Thanks

#20 User is offline   mondojose 

  • Group: Members
  • Posts: 4
  • Joined: 03-September 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 29 September 2010 - 09:57 AM

Up!! Sorry! I can not help anyone?

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy