Jump to content

WPI 6.1 making odd duplicate cmd entries


Recommended Posts

I took a config.js file under WPI 5.4 started using it under 6.0 and now under 6.1 The file works but many time when I open WPI cmd entires that weren't originally there under 6.0 there get created or recreated. I've removed them both from within WPI & manually with a text editor and they seem to reappear without reason. I've manually edited config.js to reorder entries under 5.4, 6.0 & 6.1 and hadn't seen the problem prior to 6.1.

When I click on the select file button on the right hand side of command #7 I get a javaScript error Report saying

Message: 'document.getElementById(...)' is null or not an object

Url: file:///D:/WPI/WPI.hta

File: configwizard.js

Function: clearcmd7Browse()

Line: 1094

3 Specific examples with the undeleting elements in red


prog[pn]=['Adobe Reader 8.1'];
ordr[pn]=[641];
desc[pn]=['Installs Acrobat Reader 8.1 English, Chinese Simplified & Tradition, Korean & Japenese Font packs. Removes Acrobat icon from desktop.'];
uid[pn]=['ADOBEREADER8'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
configs[pn]=['Apps'];
cmd1[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\AdbeRdr810_en_US.msi" /qb'];
cmd2[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\FontPack80_zh_CN.msi" /qb'];
cmd3[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\FontPack80_zh_TW.msi" /qb'];
cmd4[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\FontPack80_ko_KR.msi" /qb'];
cmd5[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\FontPack80_ja_JP.msi" /qb'];
cmd6[pn]=['DELETE "%ALLUSERSPROFILE%\\Desktop\\Adobe Reader 8.lnk"'];
[color="#FF0000"]cmd7[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\FontPack80_zh_TW.msi" /qb'];
cmd8[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\FontPack80_ko_KR.msi" /qb'];
cmd9[pn]=['msiexec.exe /i "%wpipath%\\Install\\AcrobatReader8.0English\\FontPack80_ja_JP.msi" /qb'];
cmd10[pn]=['DELETE "%ALLUSERSPROFILE%\\Desktop\\Adobe Reader 8.lnk"'];
[/color]pn++;

prog[pn]=['CCleaner'];
ordr[pn]=[701];
desc[pn]=['Version137, no toolbar'];
uid[pn]=['CCLEANER'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
configs[pn]=['Apps'];
cmd1[pn]=['"%wpipath%\\Install\\CCleaner\\ccsetup137_slim.exe" /S'];
cmd2[pn]=['DELETE "%USERSPROFILE%\\Desktop\\CCleaner.lnk"'];
cmd3[pn]=['DELETE "%ALLUSERSPROFILE%\\Desktop\\CCleaner.lnk"'];
[color="#FF0000"]cmd7[pn]=['DELETE "%ALLUSERSPROFILE%\\Desktop\\CCleaner.lnk"'];
[/color]pn++;

prog[pn]=['Skype'];
ordr[pn]=[702];
desc[pn]=['Version 3'];
uid[pn]=['SKYPE'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
configs[pn]=['Apps'];
cmd1[pn]=['"%wpipath%\\Install\\Skype\\SkypeSetup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'];
cmd2[pn]=['DELETE "%ALLUSERSPROFILE%\\Desktop\\Skype.lnk"'];
cmd3[pn]=['DELETE "%USERSPROFILE%\\Desktop\\Skype.lnk"'];
[color="#FF0000"]cmd7[pn]=['DELETE "%USERSPROFILE%\\Desktop\\Skype.lnk"'];
[/color]pn++;

Is this a WPI 6.1 bug or have I inadvertently put some character(s) in the config.js that are causing the issue?

Any thoughts, suggestions, or references to help files I've overlooked would be appreciated.

Ed

p.s. I'm very glad I've found WPI, it's going to shave a LOT of time off the installs I do for work. :thumbup so thanks to the team and contributers for all the hard work.

config.js

Edited by gt7599a
Link to comment
Share on other sites


I think I may have fixed the problem. One of my early program entries started with cmd2, going cmd2 - cmd4. Using a text editor I manually changed it to go cmd1 - cmd3, reordered the programs according to install order and now it seems to be working. Weird :blink:

Ed

Link to comment
Share on other sites

There is a bug in the SaveConfig() function of configwizard.js.

Change line 1982-1985:

WriteConfigValue(tf, "cmd7", configList[i].cmd3);
WriteConfigValue(tf, "cmd8", configList[i].cmd4);
WriteConfigValue(tf, "cmd9", configList[i].cmd5);
WriteConfigValue(tf, "cmd10", configList[i].cmd6);

to...

WriteConfigValue(tf, "cmd7", configList[i].cmd7);
WriteConfigValue(tf, "cmd8", configList[i].cmd8);
WriteConfigValue(tf, "cmd9", configList[i].cmd9);
WriteConfigValue(tf, "cmd10", configList[i].cmd10);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...