Francesco Posted September 12, 2011 Share Posted September 12, 2011 (edited) DescriptionIf a configuration wizard is closed and LoadDesktopBeforeInstall is enabled when starting the install WPI will just close and start after a reboot.CauseThere 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.SolutionIn 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); Edited September 12, 2011 by Francesco Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted September 12, 2011 Share Posted September 12, 2011 done 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