If a configuration wizard is closed and LoadDesktopBeforeInstall is enabled when starting the install WPI will just close and start after a reboot.
Cause
There is a bug in how WPI.hta parses the command line that triggers when the WPI window is refreshed after a wizard has been closed.
Solution
In WPI.HTA replace
var fullpath, regexpSearch, argLine, WPIcmdArgs;
fullpath=new String(unescape(document.location));
fullpath=fullpath.replace("file:///","").replace("file:","").replace(/\//g,"\\\\").replace(/\$/g,"\\$");
regexpSearch=new RegExp('^"'+fullpath+'"',"i");
argLine=new String(oWPI.commandLine.replace(regexpSearch,''));
with
var startQuotePos, endQuotePos, regexpSearch, argLine, WPIcmdArgs;
argLine = oWPI.commandLine;
if ((startQuotePos = argLine.indexOf('"')) == 0 && (endQuotePos = argLine.indexOf('"',startQuotePos+1)) > -1)
argLine=argLine.substring(endQuotePos+1);
This post has been edited by Francesco: 12 September 2011 - 02:41 AM



Help

Back to top









