IPB

Google Frontpage Forums Unattended CD/DVD Guide
4 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> 5.3 Bugs and issues
Kelsenellenelvia...
post Aug 8 2006, 09:05 PM
Post #1


WPI Guru
Group Icon

Group: Software Developers
Posts: 6077
Joined: 18-September 03
From: Pocatello, ID
Member No.: 6960
OS: Vista Ultimate x86
Country Flag


Please post them here.
Go to the top of the page
 
+Quote Post
Avneet
post Aug 9 2006, 01:18 AM
Post #2


Member
**

Group: Members
Posts: 194
Joined: 12-July 05
Member No.: 64154
Country Flag


if an app is marked as forced.. and when u click on exit it doesnt get installed. can anyone cum up wit a quic fix.. thx
Go to the top of the page
 
+Quote Post
g3o
post Aug 9 2006, 03:04 AM
Post #3





Group: Members
Posts: 3
Joined: 18-May 06
Member No.: 96651
Country Flag


The command line bug is still present unless fix 5 is applied from 5.2 buglist!
Go to the top of the page
 
+Quote Post
zorphnog
post Aug 9 2006, 09:18 AM
Post #4


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


QUOTE (Avneet @ Aug 9 2006, 03:18 AM) *
if an app is marked as forced.. and when u click on exit it doesnt get installed. can anyone cum up wit a quic fix.. thx


I haven't had a lot of time to look at it, but this should be a quick fix.

In check.js:
CODE
function remChecks()
{
    position="check.js";
    whatfunc="remChecks()";

    var elem;

    for(i = 1; prog[i] != null; i++)
    {
        elem = document.getElementById("chkbox"+i);
        if (elem==null)
            continue;
        if (forc[i]!=null && forc[i]=='yes')      //ADD THIS LINE
            continue;                             //ADD THIS LINE
        elem.checked=false;
    }
}
Go to the top of the page
 
+Quote Post
zorphnog
post Aug 9 2006, 09:38 AM
Post #5


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


After looking at the forced app on exit issue further, the fix I supplied works. However, in an effort to keep the code clean the following should also be applied to reduce redundant code.

In installer.js:
CODE
function InstallPrograms()
{    
    position="installer.js";
    whatfunc="InstallPrograms()";

    var i, j;

    for(i=1; prog[i] != null; i++)
    {        
        if (forc[i] != null && forc[i]=="yes" && ReallyForce)    //REMOVE THIS LINE
            setChecked(i);                                       //REMOVE THIS LINE
        
        if (document.getElementById("chkbox"+i) && document.getElementById("chkbox"+i).checked)
            programs[programs.length++] = new program(i);                    
    }

...
Go to the top of the page
 
+Quote Post
mritter
post Aug 9 2006, 11:48 AM
Post #6


WPI Co-Developer
Group Icon

Group: Software Developers
Posts: 654
Joined: 13-November 05
From: Bettendorf, IA
Member No.: 79628
OS: Vista Home Premium x64
Country Flag


The problem with Force is that some people want to be able to Exit without doing installs, like me when I am writing/tetsing code, while others always want it to be forced no matter what. That is fine when run from a UACD, but from desktop during testing.

This is an old topic that wasn't 100% decided upon, so I will implement what I suggested back then into 5.4:

Have these 2 check boxes:

* Always force installs when start installation

* Always force installs when exitting

You can then check either or both depending on what you are doing. Sound good?


-------------------------------------

@g3o That bug is still there. We know. The problem is that it partially fixes it, but 100%. Dje and I are still looking at it.

This post has been edited by mritter: Aug 9 2006, 11:48 AM
Go to the top of the page
 
+Quote Post
eagle47benny
post Aug 9 2006, 02:20 PM
Post #7





Group: Members
Posts: 7
Joined: 20-July 06
Member No.: 104803
Country Flag


I get the attached error when the timer runs out on an unattended install from DVD. If I ckick Ok it goes on and does the install just fine. If I catch it before the timer runs out and click begin install it runs just fine.
Attached File(s)
Attached File  WPI_error.bmp ( 112.69K ) Number of downloads: 66
 
Go to the top of the page
 
+Quote Post
Dynaletik
post Aug 9 2006, 02:46 PM
Post #8


vLite & WPI Junkie :>
****

Group: Members
Posts: 671
Joined: 18-September 04
From: Germany
Member No.: 31388
OS: Vista Ultimate x64
Country Flag


Hmm, I can't reproduce the error with the timer you get. I just tested from HDD and from DVD with 60 seconds and everything just goes fine. What delay do you use? How many seconds?
Go to the top of the page
 
+Quote Post
zorphnog
post Aug 9 2006, 03:30 PM
Post #9


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


QUOTE (mritter @ Aug 9 2006, 01:48 PM) *
The problem with Force is that some people want to be able to Exit without doing installs, like me when I am writing/tetsing code, while others always want it to be forced no matter what. That is fine when run from a UACD, but from desktop during testing.

This is an old topic that wasn't 100% decided upon, so I will implement what I suggested back then into 5.4:

Have these 2 check boxes:

* Always force installs when start installation

* Always force installs when exitting

You can then check either or both depending on what you are doing. Sound good?


I'm not sure I quite understand. If people want to exit without installs then wouldn't you just uncheck 'Force installs when exiting'? What exactly would a 'force installs when start installation' do? huh.gif
Go to the top of the page
 
+Quote Post
Kelsenellenelvia...
post Aug 10 2006, 02:44 AM
Post #10


WPI Guru
Group Icon

Group: Software Developers
Posts: 6077
Joined: 18-September 03
From: Pocatello, ID
Member No.: 6960
OS: Vista Ultimate x86
Country Flag


'force installs when start installation' <-- This would ensure that the program would still be installed when the instalation process is started whether or not you have selected that entry for installation or not.
Go to the top of the page
 
+Quote Post
larciel
post Aug 10 2006, 04:12 AM
Post #11


Advanced Member
***

Group: Members
Posts: 372
Joined: 6-December 03
Member No.: 10469



I have command error in Line 55, Char 2 of Installer.hta

happens at the last program is installing..

a quick look at WPI_log shows that every program has been installed fine. maybe this is because of Regional setting difference?

This post has been edited by larciel: Aug 10 2006, 04:25 AM
Go to the top of the page
 
+Quote Post
Kelsenellenelvia...
post Aug 10 2006, 04:15 AM
Post #12


WPI Guru
Group Icon

Group: Software Developers
Posts: 6077
Joined: 18-September 03
From: Pocatello, ID
Member No.: 6960
OS: Vista Ultimate x86
Country Flag


What is the config entry for the last program? I want to track down this error.
Go to the top of the page
 
+Quote Post
zorphnog
post Aug 10 2006, 06:41 AM
Post #13


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


QUOTE (Kelsenellenelvian @ Aug 10 2006, 04:44 AM) *
'force installs when start installation' <-- This would ensure that the program would still be installed when the instalation process is started whether or not you have selected that entry for installation or not.


Isn't this already implemented? Or are you saying that you want to be able to disable forced installs when starting installation? I guess for testing purposes it might be nice to be able to disable the forced installs on 'start installation'.
Go to the top of the page
 
+Quote Post
eagle47benny
post Aug 10 2006, 07:02 AM
Post #14





Group: Members
Posts: 7
Joined: 20-July 06
Member No.: 104803
Country Flag


Thanks Dynaletik,

The delay is 5 min (300 sec), and I've attached the useroptions and config scripts in case it's something there. They were created in v5.0, which still works with the same files. I get the error if it's started from RunOnceEx.cmd, or by running wpi.hta from within windows. If I copy the WPI folder to the desktop and run it from there I get the same error (with the URL modified apropriately). This was all done using VMWare Player 1.0.1 (with Deamon Tools 4.03 to mount the DVD image so I don't have to keep throwing away disks). That's probably way more info then you need, but hopefully some of it will be helpful.

Thanks again!
Attached File(s)
Attached File  useroptions.js ( 1.4K ) Number of downloads: 36
Attached File  config.js ( 8.44K ) Number of downloads: 31
 
Go to the top of the page
 
+Quote Post
Dynaletik
post Aug 10 2006, 08:32 AM
Post #15


vLite & WPI Junkie :>
****

Group: Members
Posts: 671
Joined: 18-September 04
From: Germany
Member No.: 31388
OS: Vista Ultimate x64
Country Flag


Ok, I can reproduce the bug with 300 seconds. Your useroptions.js is not the reason. It is definitely a bug in the timer, just tested with 60, 70 and 300 seconds, but with 300 seconds the error in timer.js line 54 function tTimer comes up when the timer runs out.

EDIT: Solved by zorphnog.

This post has been edited by Dynaletik: Aug 10 2006, 12:36 PM
Go to the top of the page
 
+Quote Post
zorphnog
post Aug 10 2006, 09:22 AM
Post #16


Advanced Member
***

Group: Members
Posts: 427
Joined: 25-July 06
From: Charleston, SC
Member No.: 105938
Country Flag


There is a rounding error in the timer.js file that is causing the Timer_bar element width to become negative.

In timer.js (Line 54) replace:
CODE
document.getElementById("Timer_bar").style.width=Math.round(TimerWidth-Math.round((passed/startSecs)*TimerWidth))+"px";
with
CODE
document.getElementById("Timer_bar").style.width=Math.abs(TimerWidth-Math.floor((passed/startSecs)*TimerWidth))+"px";


This post has been edited by zorphnog: Aug 10 2006, 09:33 AM
Go to the top of the page
 
+Quote Post
Dynaletik
post Aug 10 2006, 10:05 AM
Post #17


vLite & WPI Junkie :>
****

Group: Members
Posts: 671
Joined: 18-September 04
From: Germany
Member No.: 31388
OS: Vista Ultimate x64
Country Flag


Ok thanks zorphnog, this fixes our bug. thumbup.gif
Go to the top of the page
 
+Quote Post
udaydand
post Aug 10 2006, 10:19 AM
Post #18





Group: Members
Posts: 3
Joined: 2-November 05
Member No.: 78515
Country Flag


how the dircopy works i want to copy one folder from dvd to sys drive