AlBundy33 Posted November 28, 2008 Share Posted November 28, 2008 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 More sharing options...
mritter Posted November 29, 2008 Share Posted November 29, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now