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.

Default Button

Featured Replies

:blink: When i push the "Default Button" no Standard Software is selected. Why? Is there anything wrong in the script or is the mistake on my side?
  • Author

yeah. for example: i have 5 programs and 3 of this programs are set to default. but the "Default button" ignore the selection.

  • Author

hi. by the first start wpi selected the programs correct. when i push "none" and then "default" nothing is selected. at the moment i dont have a personal config.js with my programs because they are not useful if they have this bug. The example file ist the standard config.js with only 5 programs.

//---------------------------------------------------------------------------------------------
// Your programs here ...
//---------------------------------------------------------------------------------------------
pn=1;
prog[pn]=['.Net Framework 1.1']
uid[pn]=['DOTNETFW']
desc[pn]=['Installs Microsoft .NET Framework Redistributable Package 1.1. <i>Recommended</i>']
ordr[pn]=[1]
cmd1[pn]=['%cdrom%\\Install\\netfxsp1.exe']
dflt[pn]=['yes']
cat[pn]=['Microsoft Xtras']
pn++

prog[pn]=['.Net user Account Deletion']
uid[pn]=['DELETENETUSERACCOUNT']
deps[pn]=['DOTNETFW']
desc[pn]=['This will delete an account the .net framework creates during install.']
ordr[pn]=[2]
cmd1[pn]=['%CDROM%\\Install\\deluser.exe']
dflt[pn]=['yes']
cat[pn]=['Microsoft Xtras']
pn++

prog[pn]=['123 Renamer']
uid[pn]=['123RENAMER']
desc[pn]=['123 File Renamer help you rename files en masse with a number of possibilities.']
ordr[pn]=[5]
cmd1[pn]=['%CDROM%\\Install\\123renamersetup2.2.exe /VERYSILENT /SP-']
cat[pn]=['Office']
pn++

prog[pn]=['7-Zip 4.15b']
uid[pn]=['7ZIP']
desc[pn]=['7-Zip is a file archiver with high compression ratio.']
ordr[pn]=[10]
cmd1[pn]=['%CDROM%\\Install\\7zip.exe /S']
cat[pn]=['Utilities']
pn++

prog[pn]=['Add "Command Window" To Right Click']
uid[pn]=['ADDCOMMANDWINDOWTORIGHTCL']
ordr[pn]=[900]
cmd1[pn]=['regedit /s %CDROM%\\Install\\command.reg']
dflt[pn]=['yes']
cat[pn]=['Registry Tweaks']
pn++

//---------------------------------------------------------------------------------------------
// End of program definitions ...
//---------------------------------------------------------------------------------------------

  • Author

ok i download it again. No they are no files changed. we will see after the download what happend.

Yes, same problem here. And believe me, I think I've tried enough before posting a reply.

Key question: is wpi.cmd somehow relevant for the Default button to work?

The fact is that when I decompress the WPI_3.5.rar that I have downloaded from the WPI site and run WPI.hta without any modifications, the button doesn't work...

Any ideas? Of course I don't have that much JS knowledge to "search and destroy" the problem that easily...:(

There is a small mistake in wpi.htm (wpi\Themes\Default) of the default theme

<!-- The Defaults button. -->
 <a href=""
 onMouseDown="document.Defaultsbutton.src='./themes/Default/checkdown.gif';"
 onMouseOver="document.Defaultsbutton.src='./themes/Default/checkover.gif'; stm(getText(ttSelectDefaults),Style[0]);"
 onMouseOut="document.Defaultsbutton.src='./themes/Default/check.gif'; htm()"
 onClick="stopInterval(); startstop(); check('Default'); startstop();" >
 <img
   src="./themes/Default/check.gif"
   align="absmiddle"
   class="mainbtn"
   border="0"
   name="Defaultsbutton">
 </img><font class="side" ><b><script>document.write(getText(lblSelectDefaults));</script></b></font></a><br />

Should be:

<!-- The Defaults button. -->
 <a href=""
 onMouseDown="document.Defaultsbutton.src='./themes/Default/checkdown.gif';"
 onMouseOver="document.Defaultsbutton.src='./themes/Default/checkover.gif'; stm(getText(ttSelectDefaults),Style[0]);"
 onMouseOut="document.Defaultsbutton.src='./themes/Default/check.gif'; htm()"
 onClick="stopInterval(); startstop(); check('default'); startstop();" >
 <img
   src="./themes/Default/check.gif"
   align="absmiddle"
   class="mainbtn"
   border="0"
   name="Defaultsbutton">
 </img><font class="side" ><b><script>document.write(getText(lblSelectDefaults));</script></b></font></a><br />

Default should be spelled in lowercase, as in check.js, small but simple bugfix seems to work for me!

@Werkbouwtuig

Brilliant, thanks a lot, really! :yes:

Have you reported this to the authors? It's really important that they do not miss this one in the next release...

Best wishes B)

Hey, somehow, don't know why, I've used the Default theme for a couple days, and I sticked to it... I like it because it's so simple B) :D

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.