Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WPI 6.1 making odd duplicate cmd entries

Featured Replies

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

  • Author

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

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);

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.