Help - Search - Members - Calendar
Full Version: WPI Runtime Errors - Javascript?
MSFN Forums > Member Contributed Projects > Windows Post-Install Wizard (WPI) > Bug tracker

   
Google Internet Forums Unattended CD/DVD Guide
Enzo
Ok, So I was working on a WPI install, putting it together that is. Today, I start it up and I get some run time errors. Screen goes to white, RunTime Error -> I click ok. There's like 3-4 errors one after another. The Background WPI images eventually load, and then there's a Javascript Report Box. I end up simply exiting it. I thought I had screwed up my WPI folder, So I Download a fresh rar file from the site. Was v6.4 just posted? Anyways, I extract, and it's the same thing. So obviously its my machine. I did run an upgrade yesterday, .Net 3.5 I believe. Could that have screwed something up? And how Do I fix it?

Oh, the first Runtime error states there isn't enough space on the disc? Something like that, which makes no sense.
Kelsenellenelvian
Did you nlite or xplite your install?

Do you have Nero7 installed?
Enzo
It wasn't during an install. It was just adding programs, compiling I guess you could say the WPI folder. Pretty sure that .Net update screwed something up. Again, sorry for the confusion, it was just on my main Desktop, MCE05, that It happened on, NOT during an install or anything. I use to have issues with .net 2.0, when I was having issues with Update Rollup 2. At the time I acquired this ".Net Verifier" and I ran it to check, It states that .Net 2.0 has failed. .Net 1.1/3.0, etc. Check out fine. So its on my end, It's not WPI's fault.
I'll see if re-installing .Net 3.5 fixes it... I'll Post back
zorphnog
Kel is talking about the machine you are trying to run WPI on not what you are trying to install via WPI. Was that machine built using nlite or xplite? Does that machine already have nero installed? Both of these are known to cause issues with WPI.
Enzo
I wasn't trying to install anything with WPI, I ran WPI fine before. In order to Add program to the WPI List. I was working on a UACD. I was then going to test it on a completely separate pc. The Computer which I was doing this on has a standard MCE05 installation, it was not slipstreamed or anything. Again, It was running WPI.HTA fine just 2 days ago, Now when I run it, I get several error. I'm Certain I screwed up my .Net framework. Fixing it, Is going to be a huge hassle onto itself. Oh, and it is running Nero 8 Lite, However irrelevant it is.
Kelsenellenelvian
Actually the version of nero is very RELEVANT. Nero 7 really messed with the whole html engine and caused WPI to have all sorts of errors.

What version of Internet explorer are you using?
Enzo
Well I went from running WPI fine one day. The next day I got errors. In between that time I installed .NET 3.5. And Now I'm trying to uninstall/repair .NET 2.0 and it's not going well. According to my ".NET Verifier" My 1.0, 1.1, 2.0 .NET can't be verified. Now I'm afraid I won't be able to fix it. I have IE7 installed, though I don't use it. Again, I believe my .NET framework has lost its integrity. And it was unintentionally my fault. I know .NET 2.0 is a requirement for WPI to run, right? Not sure where I saw that...
Anyways, Me trying to repair/uninstall .NET 2.0 led to making the problem worst.
Kelsenellenelvian
No .net is not needed for WPI. However it seems like you really borked your install somehow. Have you downloaded the full .net 3.5 and just gone ahead and installed it? (3.5 has all of .2, .3, .3.5 and all fixes for the 3...)

The only real requirement for WPI is IE6 up to date.

Not enough space to run WPI?? WPI isn't even configured to output that error. tongue.gif
Enzo
Odd, I know. It's a Runtime error. Does Nero 8 behave properly with WPI?
Kelsenellenelvian
Yeah it does.
lsrkin
I have Nero8 and IE7 installed on original WinXP-Pro Eng and have lots of runtime errors, WPI crashes when i try to add apps.

Here are some situations:
i use browse button and press "open" - CRASH;
more often it happens when i browse for an app that is in a subfolder (e.g. "%wpipath%\Install\Foxit Reader\FoxitReader23.exe") , if i write(paste) this string down it'll be fine, otherwise = CRASH;
when i press Save button(in Configuration tab, all crashes btw are in this tab) sometimes i get CRASH;
and finally..when i press exit button (not WPI exit but Conf tab exit) i get CRASH very often.


Ask any questions related to installed software or enabled\disabled services etc, just don't know if it's my system or WPI that causes problems sad.gif

BTW: not about crashes, just need some help:
I made WPI to run after 1st logon

i have "%wpipath%\Install\tweaks" folder that contains tweaks.cmd and hklm.reg

tweaks.cmd code
CODE
REGEDIT /S "hklm.reg"


CODE
ExecuteAfterEnabled=true;
ExecuteAfter=['"%wpipath%\\Install\\tweaks\\tweaks.cmd"'];

I run tweaks.cmd AFTER EVERYTING(set it in options tab)
and..tweaks just don't want to be applied :\ (i reboot after install, don't ask)


and i the i can't copy dir to a folder sad.gif
here's the string
CODE
DIRCOPY "%wpipath%\Install\Mozilla" "%APPDATA%\"


any help? smile.gif
thx in advance m8s smile.gif
Kelsenellenelvian
Have you modified any WPI files?

Did you nLite and remove anything from your disk?

Have you set another browser as default? (Prolly not an issue though)
lsrkin
Firefox 2.0.0.14 is default browser, didn't modify any wpi files...and i wrote that my XP is original, i didn't use nlite. I used nlite to the disk i'm making now..but i don't think that it can be responsible for crashes(for not applying *.reg files yes, but not for crashes).

What component can be important and i should not remove it with nlite?
Kelsenellenelvian
ie browser and ie core. DOO NOT remove these.

The reg files is a known bug with WPI setting double quotes for them. You simply need to remove the quotes from the regbefore\after section. (Fixed in the next release)

We all reboot at certain times "(i reboot after install, don't ask)" no need to ask tongue.gif

You can use execute after to execute the reg file alone! Just put the whole path in there like so = regedit /s %wpipath%\install\hklm.reg <-- that way no ugly command window biggrin.gif
lsrkin
Nonono, i'm not talking about before\after reg tweaks, i know this bug

QUOTE
i have "%wpipath%\Install\tweaks" folder that contains tweaks.cmd and hklm.reg

tweaks.cmd code
CODE
REGEDIT /S "hklm.reg"

i'm talking about this, i don't think that there's quotes bug here.., btw i haven't deleted IE, it's just not a default browser.
Kelsenellenelvian
You can use execute after to execute the reg file alone! Just put the whole path in there like so = regedit /s %wpipath%\install\hklm.reg <-- that way no ugly command windows

As long as the main interface shows and the installer starts with firefox set as your main browser then there shouldn't be any issue.

Do you have the install log? (It should be at the root of your main drive...)
lsrkin
Thx for log-file advice!!! Turned out those were simple syntax errors.

What libraries does WPI use? VC05, 08 maybe? Can't understand what i had missed, WPI.hta still crashes.
mritter
WPI doesn't use any libraries. It is pure JavaScript and HTML run via mshta.exe; that is why Internet Explorer can not be removed. It is essentially a "web page" designed to look like a stand-alone program.

Either you have some errors in your config file or you have modified some of the files, or if you used nLite you may have removed something required for IE. Try running it on a clean computer, or a friends, just to see if it works "as is". If it does, you know it is something with your custom Windows config. If it does not work, then more information from you is needed.

Post your config file here so we can take a look at it. Usually something simple.

Or wait until sometime this weekend for 6.5 to be released to see if it cures the problem.
lsrkin
Thx for an explanation!

I'll try it on clean XP on Vmware.

here's config.js:

CODE
//---------------------------------------------------------------------------------------------
// Reference ... prog[0] won't be used. It's just an example.
// Look in program.js to see explanation of these properties.
//---------------------------------------------------------------------------------------------  
// pn=0;    // start value for prog numbering
// prog[pn]=['ProgramName'];
// ordr[pn]=[0];
// desc[pn]=['Description'];
// uid[pn]=['APP1'];
// dflt[pn]=['no'];
// cat[pn]=['Application Category'];
// forc[pn]=['false'];
// configs[pn]=['List of configs to be auto checked. Comma seperated'];
// deps[pn]=[];
// excl[pn]=[];
// cond[pn]=['Javascript Conditional Statement'];
// gcond[pn]=['Javascript Conditional Statement to gray item'];
// regb[pn]=['Registry Key Path'];
// cmd1[pn]=['CommandLine 1'];
// cmd2[pn]=['CommandLine 2'];
// cmd3[pn]=['CommandLine 3'];
// cmd4[pn]=['CommandLine 4'];
// cmd5[pn]=['CommandLine 5'];
// cmd6[pn]=['CommandLine 6'];
// cmd7[pn]=['CommandLine 7'];
// cmd8[pn]=['CommandLine 8'];
// cmd9[pn]=['CommandLine 9'];
// cmd10[pn]=['CommandLine 10'];
// rega[pn]=['Registry Key Path'];
// picf[pn]=['Picture File'];
// picw[pn]=['Width'];
// pich[pn]=['Height'];
// textl[pn]=['Text Location'];
// pn++;

//---------------------------------------------------------------------------------------------
// Your programs here ...
//---------------------------------------------------------------------------------------------
pn=1;
prog[pn]=['Ahead Nero 8.3.2.1 Micro'];
uid[pn]=['AHEADNERO8321MICRO'];
dflt[pn]=['yes'];
cat[pn]=['Office'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\n83_21m_en_ru.exe" /verysilent /norestart /sp- /lang=russian'];
cmd2[pn]=['FILECOPY "%ALLUSERSPROFILE%\\Start Menu\\Programs\\Nero\\Nero Burning ROM.lnk" "%ALLUSERSPROFILE%\\Desktop\\"'];
pn++;

prog[pn]=['Defraggler v1.01.073 BETA'];
uid[pn]=['DEFRAGGLERV101073BETA'];
dflt[pn]=['yes'];
cat[pn]=['System'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\dfsetup101.exe" /S'];
pn++;

prog[pn]=['**** NFO Viewer 2.10.0032.RC3'];
uid[pn]=['DAMNNFOVIEWER2100032RC3'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\****.msi" /qn'];
pn++;

prog[pn]=['WinRaR 3.71'];
uid[pn]=['WINRAR371'];
dflt[pn]=['yes'];
cat[pn]=['Utilities'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\WinRAR 3.71 Russian.exe" /S'];
pn++;

prog[pn]=['Unlocker 1.8.7'];
uid[pn]=['UNLOCKER187'];
dflt[pn]=['yes'];
cat[pn]=['System'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\unlocker1.8.7.exe"'];
pn++;

prog[pn]=['WinDjView 0.5'];
uid[pn]=['WINDJVIEW05'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\WinDjView.exe" /VERYSILENT'];
pn++;

prog[pn]=['7-Zip 4.57'];
desc[pn]=['7-Zip is a open source file archiver with high compression ratio.'];
uid[pn]=['7Zip457'];
dflt[pn]=['yes'];
cat[pn]=['Utilities'];
forc[pn]=['no'];
configs[pn]=['yes'];
gcond[pn]=['FileExists(\'D:\\Apps\')'];
cmd1[pn]=['%wpipath%\\Install\\7z457.exe /S'];
pn++;

prog[pn]=['Hashtab 2.0.8'];
desc[pn]=['HashTab is a Windows shell extension which adds a tab called "File Hashes" to the Windows Explorer file properties. The tab contains the MD5, SHA1 and CRC-32 file hashes. These are common hashes that are used to verify the integrity and authenticity of files. Many download sites list the MD5 hash along with the download link. The HashTab makes it very simple for Windows users to check these hashes on any file on the system without using external tools.'];
uid[pn]=['Hashtab208'];
dflt[pn]=['yes'];
cat[pn]=['System'];
forc[pn]=['no'];
configs[pn]=['yes'];
gcond[pn]=['FileExists(\'D:\\Apps\')'];
cmd1[pn]=['%wpipath%\\Install\\hashtab.exe /S'];
pn++;

prog[pn]=['Your Uninstaller 2008'];
uid[pn]=['YOUR'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\YU2008\\yu2008setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'];
rega[pn]=['%wpipath%\\Install\\YU2008\\yu2008.reg'];
pn++;

prog[pn]=['WinRAR 3.71 Russian'];
uid[pn]=['WINRAR371RUSSIAN'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\WinRAR 3.71 Russian.exe" /s'];
pn++;

prog[pn]=['Total Commander 2.50 PowerPack'];
uid[pn]=['TOTALCOMMANDER250POWERPAC'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\Total Commander\\Total Commander 7.03 PowerPack 2.50 Rus.exe" /S'];
pn++;

prog[pn]=['Foxit PDF Reader 2.3.2923'];
uid[pn]=['FOXITPDFREADER232923'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\Foxit Reader\\FoxitReader23.exe"'];
pn++;

prog[pn]=['foobar2000 0.9.5.2 STALK:ER PACK'];
uid[pn]=['FOOBAR20000952STALKERPACK'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\foobar2000\\fb2k_0.9.5.2_STALK.ER_Pack.exe" /S'];
cmd2[pn]=['FILECOPY "%wpipath%\\Install\\foobar2000\\foobar2000.cfg" "%programfiles%\\foobar2000\\"'];
pn++;

prog[pn]=['ACDSee Pro 2.0.238'];
uid[pn]=['ACDSEEPRO20238'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\ACDSee_Pro2_2.0.238_RU.exe"'];
pn++;

prog[pn]=['Mozilla Firefox 2.0.0.14'];
uid[pn]=['MOZILLAFIREFOX20014'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\Mozilla Firefox\\FFox_ENU.exe"'];
cmd2[pn]=['DIRCOPY "%wpipath%\\Install\\Mozilla Firefox\\Mozilla" "%APPDATA%"'];
pn++;

prog[pn]=['RegWorks 1.3.3'];
uid[pn]=['REGWORKS133'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\RegWorks.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'];
pn++;

prog[pn]=['QIP 8060'];
uid[pn]=['QIP8060'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\qip8060.exe" /S'];
cmd2[pn]=['DIRCOPY "%wpipath%\\Install\\QIP" "%programfiles%"'];
pn++;

prog[pn]=['VLC 0.8.6f'];
uid[pn]=['VLC086F'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\vlc-0.8.6f-win32.exe" /S'];
cmd2[pn]=['FILECOPY "%wpipath%\\Install\\VLC\\vlc.bat" "%programfiles%\\VideoLAN\\VLC\\"'];
cmd3[pn]=['FILECOPY "%wpipath%\\Install\\VLC\\Pleylist.m3u" "%programfiles%\\VideoLAN\\VLC\\"'];
cmd4[pn]=['FILECOPY "%wpipath%\\Install\\VLC\\vlcrc." "%APPDATA%\\vlc\\"'];
cmd5[pn]=['FILECOPY "%wpipath%\\Install\\VLC\\VLC media player.lnk" "%ALLUSERSPROFILE%\\Desktop\\"'];
pn++;

prog[pn]=['Daemon Tools 4.12.3'];
uid[pn]=['DAEMONTOOLS4123'];
dflt[pn]=['yes'];
cat[pn]=['System'];
forc[pn]=['no'];
cmd2[pn]=['"%wpipath%\\Install\\daemontools-4123-lite.exe"'];
pn++;

prog[pn]=['nlite 1.4.5'];
uid[pn]=['NLITE145'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\nLite145.exe" /S'];
pn++;

prog[pn]=['Real Alternative Lite 1.80'];
uid[pn]=['REALALTERNATIVELITE180'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\RealAlternativeLite180.exe" /VERYSILENT /SP- /NORESTART'];
pn++;

prog[pn]=['QuickTime Alternative 2.50'];
uid[pn]=['QUICKTIMEALTERNATIVE2'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\QuickTimeAlternative.exe" -ai'];
pn++;

prog[pn]=['Microsoft Office Viewers'];
uid[pn]=['MICROSOFTOFFICEVIEWERS'];
dflt[pn]=['yes'];
cat[pn]=['Office'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\Office\\wordview_ru-ru.exe" /quiet'];
cmd2[pn]=['"%wpipath%\\Install\\Office\\ExcelViewer.exe" /quiet'];
cmd3[pn]=['"%wpipath%\\Install\\Office\\PowerPointViewer.exe" /quiet'];
pn++;

prog[pn]=['Paint.NET 3.31'];
uid[pn]=['PAINTNET331'];
dflt[pn]=['yes'];
cat[pn]=['MultiMedia'];
forc[pn]=['no'];
cmd1[pn]=['"%wpipath%\\Install\\PaintNET.exe"'];
pn++;

//---------------------------------------------------------------------------------------------
// End of program definitions ...
//---------------------------------------------------------------------------------------------
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.