Jump to content

Recommended Posts


Posted

ok when you first open WPI are your defaults checked??

Try clicking select none and then select defaults.

If this is still happening post your config.js file for me to see please.

Remember to delete any serials.

Posted

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 ...
//---------------------------------------------------------------------------------------------

Posted

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...:(

Posted

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!

Posted

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

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...