Jump to content

Bug in InstallOne or FileExists


Recommended Posts

With this from code.js no batch-files with arguments (e.g. "drive:\a\folder\test.cmd" MyArgument) will be found:

	if (cmd.toUpperCase().indexOf(".CMD") != -1 || cmd.toUpperCase().indexOf(".BAT") != -1)
{
if (!FileExists(cmdLine))
{
NumFailed++;
result=getText(InstallFail);
SuccessFail=false;
WriteLogLine(cmdName+' '+getText(FailFileDoesNotExist)+': '+cmdLine);

return false;
}
}

Al

Link to comment
Share on other sites


Good catch, Al.

	if (cmdLine.toUpperCase().indexOf(".CMD") != -1 || cmdLine.toUpperCase().indexOf(".BAT") != -1)
{
var splits=[];

if (cmdLine.substr(0,1)=='"')
{
splits=cmdLine.split('" ');
splits[0]+='"';
}
else
splits=cmdLine.split(' ');
if (!FileExists(splits[0]))
{
NumFailed++;
result=getText(InstallFail);
SuccessFail=false;
WriteLogLine(cmdName+' '+getText(FailFileDoesNotExist)+': '+cmdLine);

return false;
}
}

Will also be updated in main download archive.

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