Jump to content

[BUG+FIX] WPI update ignores minor versions


Recommended Posts

Fix

In aboutupdate.js replace


function CheckForUpdate()
{
position="aboutupdate.js";
whatfunc="CheckForUpdate()";

var iVersion, lVersion;

UpdateAvailable=false;
ShowUpdate();

// if (!loadXMLDoc("http://www.internetepicenter.com/wpi.xml",ExtractUpdateInfo))
if (!loadXMLDoc("http://www.wpiw.net/downloads/wpi.xml",ExtractUpdateInfo))
{
alert(getText(txtUpdateError));
HideUpdate();

return;
}

Pause(2,0);

iVersion=ShortVersion.split(".");
lVersion=UpdateVersion.split(".");

if (lVersion[0]>iVersion[0])
UpdateAvailable=true;
else if (lVersion[0]==iVersion[0] && lVersion[1]>iVersion[1])
UpdateAvailable=true;
else if (lVersion[0]==iVersion[0] && lVersion[1]==iVersion[1] && lVersion[2]>iVersion[2])
UpdateAvailable=true;
else
UpdateAvailable=false;

FillInUpdate();
document.getElementById("Btn_DownloadUpdate").disabled=!UpdateAvailable; // The opposite
}

with


function CheckForUpdate()
{
position="aboutupdate.js";
whatfunc="CheckForUpdate()";

UpdateAvailable=false;
ShowUpdate();

if (!loadXMLDoc("http://www.wpiw.net/downloads/wpi.xml",ExtractUpdateInfo))
{
alert(getText(txtUpdateError));
HideUpdate();

return;
}

Pause(2,0);

UpdateAvailable=fileVersionGreaterThan(UpdateVersion,ShortVersion);

FillInUpdate();
document.getElementById("Btn_DownloadUpdate").disabled=!UpdateAvailable; // The opposite
}

Link to comment
Share on other sites


Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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